[asterisk-commits] file: trunk r186653 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 6 12:03:10 CDT 2009


Author: file
Date: Mon Apr  6 12:03:07 2009
New Revision: 186653

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=186653
Log:
Fix problem when authenticating a non-RTP dialog.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=186653&r1=186652&r2=186653
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Apr  6 12:03:07 2009
@@ -13458,8 +13458,10 @@
 		if (p->t38.peercapability)
 			p->t38.jointcapability &= p->t38.peercapability;
 		if (!dialog_initialize_rtp(p)) {
-			ast_rtp_codecs_packetization_set(ast_rtp_instance_get_codecs(p->rtp), p->rtp, &peer->prefs);
-			p->autoframing = peer->autoframing;
+			if (p->rtp) {
+				ast_rtp_codecs_packetization_set(ast_rtp_instance_get_codecs(p->rtp), p->rtp, &peer->prefs);
+				p->autoframing = peer->autoframing;
+			}
 		} else {
 			res = AUTH_RTP_FAILED;
 		}




More information about the asterisk-commits mailing list