[svn-commits] mmichelson: branch mmichelson/udptl-v6 r278578 - /team/mmichelson/udptl-v6/ch...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 21 17:15:36 CDT 2010


Author: mmichelson
Date: Wed Jul 21 17:15:32 2010
New Revision: 278578

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=278578
Log:
Set port number on the UDPTL ast_sockaddr after the check for whether to use the RTP address.


Modified:
    team/mmichelson/udptl-v6/channels/chan_sip.c

Modified: team/mmichelson/udptl-v6/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/udptl-v6/channels/chan_sip.c?view=diff&rev=278578&r1=278577&r2=278578
==============================================================================
--- team/mmichelson/udptl-v6/channels/chan_sip.c (original)
+++ team/mmichelson/udptl-v6/channels/chan_sip.c Wed Jul 21 17:15:32 2010
@@ -8259,7 +8259,6 @@
 	/* Setup image address and port */
 	if (p->udptl) {
 		if (udptlportno > 0) {
-			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)) {
 				ast_rtp_instance_get_remote_address(p->rtp, isa);
 				if (!ast_sockaddr_isnull(isa)) {
@@ -8268,6 +8267,7 @@
 					}
 				}
 			}
+			ast_sockaddr_set_port(isa, udptlportno);
 			ast_udptl_set_peer(p->udptl, isa);
 			if (debug)
 				ast_debug(1,"Peer T.38 UDPTL is at port %s\n", ast_sockaddr_stringify(isa));




More information about the svn-commits mailing list