summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtp.c')
-rw-r--r--rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index e161529f6..87e8d129f 100644
--- a/rtp.c
+++ b/rtp.c
@@ -742,7 +742,7 @@ static struct ast_rtp_protocol *get_proto(struct ast_channel *chan)
AST_LIST_LOCK(&protos);
AST_LIST_TRAVERSE(&protos, cur, list) {
- if (cur->type == chan->type)
+ if (cur->type == chan->tech->type)
break;
}
AST_LIST_UNLOCK(&protos);