[asterisk-commits] mnicholson: trunk r278461 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 21 10:51:27 CDT 2010


Author: mnicholson
Date: Wed Jul 21 10:51:24 2010
New Revision: 278461

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=278461
Log:
Properly set the port number for UDPTL media sessions.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=278461&r1=278460&r2=278461
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Jul 21 10:51:24 2010
@@ -8266,8 +8266,7 @@
 	/* Setup image address and port */
 	if (p->udptl) {
 		if (udptlportno > 0) {
-			isin.sin_family = AF_INET;
-			isin.sin_port = htons(udptlportno);
+			ast_sockaddr_set_port(isa, udptlportno);
 			if (ast_test_flag(&p->flags[1], SIP_PAGE2_SYMMETRICRTP) && ast_test_flag(&p->flags[1], SIP_PAGE2_UDPTL_DESTINATION)) {
 				struct sockaddr_in remote_address = { 0, };
 				struct ast_sockaddr remote_address_tmp;




More information about the asterisk-commits mailing list