[asterisk-commits] file: branch 1.4 r85057 - /branches/1.4/main/rtp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 8 15:06:34 CDT 2007
Author: file
Date: Mon Oct 8 15:06:33 2007
New Revision: 85057
URL: http://svn.digium.com/view/asterisk?view=rev&rev=85057
Log:
Only update codec information if the channel has a technology private structure.
(issue #10915)
Reported by: ramonpeek
Modified:
branches/1.4/main/rtp.c
Modified: branches/1.4/main/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/rtp.c?view=diff&rev=85057&r1=85056&r2=85057
==============================================================================
--- branches/1.4/main/rtp.c (original)
+++ branches/1.4/main/rtp.c Mon Oct 8 15:06:33 2007
@@ -2950,9 +2950,9 @@
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);
More information about the asterisk-commits
mailing list