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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 10 11:48:30 CST 2009


Author: file
Date: Tue Feb 10 11:48:29 2009
New Revision: 174580

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174580
Log:
Set the type for the peer structure to be a peer as the default.
(closes issue #14447)
Reported by: triccyx

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=174580&r1=174579&r2=174580
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Feb 10 11:48:29 2009
@@ -22304,6 +22304,7 @@
 		peer->socket.type = SIP_TRANSPORT_UDP;
 		peer->socket.fd = -1;
 	}
+	peer->type = SIP_TYPE_PEER;
 	ast_copy_flags(&peer->flags[0], &global_flags[0], SIP_FLAGS_TO_COPY);
 	ast_copy_flags(&peer->flags[1], &global_flags[1], SIP_PAGE2_FLAGS_TO_COPY);
 	ast_string_field_set(peer, context, sip_cfg.default_context);




More information about the asterisk-commits mailing list