[svn-commits] dvossel: branch 1.6.2 r282576 - /branches/1.6.2/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 17 16:35:22 CDT 2010


Author: dvossel
Date: Tue Aug 17 16:35:17 2010
New Revision: 282576

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=282576
Log:
fixes no default transport for temp peer creation in chan_sip

(closes issue #17829)
Reported by: falves11
Patches:
      issue_17829.rev1.txt uploaded by russell (license 2)
      issue_17829.diff uploaded by dvossel (license 671)
Tested by: falves11

Modified:
    branches/1.6.2/channels/chan_sip.c

Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=282576&r1=282575&r2=282576
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Tue Aug 17 16:35:17 2010
@@ -23776,6 +23776,8 @@
 	peer->timer_t1 = global_t1;
 	peer->timer_b = global_timer_b;
 	clear_peer_mailboxes(peer);
+	peer->transports = default_transports;
+	peer->default_outbound_transport = default_primary_transport;
 }
 
 /*! \brief Create temporary peer (used in autocreatepeer mode) */
@@ -23918,6 +23920,7 @@
 	/* If we have realm authentication information, remove them (reload) */
 	clear_realm_authentication(peer->auth);
 	peer->auth = NULL;
+	/* clear the transport information.  We will detect if a default value is required after parsing the config */
 	peer->default_outbound_transport = 0;
 	peer->transports = 0;
 




More information about the svn-commits mailing list