aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-08 20:06:33 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-08 20:06:33 +0000
commitd09da6764d0dae40dd47ab543e5d0a6e2e4dd151 (patch)
tree6cda2b2536f9cbe10dc58994a5089b540d8b9549 /main/rtp.c
parent9abc91502e22aa5d90b3177207b72b3cf8940a63 (diff)
Only update codec information if the channel has a technology private structure.
(issue #10915) Reported by: ramonpeek git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85057 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r--main/rtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/rtp.c b/main/rtp.c
index 0ef22fcb2..fae40b229 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -2950,9 +2950,9 @@ static enum ast_bridge_result bridge_native_loop(struct ast_channel *c0, struct
ast_rtp_get_peer(p1, &t1);
memcpy(&ac1, &t1, sizeof(ac1));
/* Update codec information */
- if (pr0->get_codec)
+ if (pr0->get_codec && c0->tech_pvt)
oldcodec0 = codec0 = pr0->get_codec(c0);
- if (pr1->get_codec)
+ if (pr1->get_codec && c1->tech_pvt)
oldcodec1 = codec1 = pr1->get_codec(c1);
ast_indicate_data(other, fr->subclass, fr->data, fr->datalen);
ast_frfree(fr);