[asterisk-commits] kpfleming: branch 1.2 r45048 - /branches/1.2/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Oct 13 09:18:09 MST 2006


Author: kpfleming
Date: Fri Oct 13 11:18:08 2006
New Revision: 45048

URL: http://svn.digium.com/view/asterisk?rev=45048&view=rev
Log:
when sending a call to a peer, use the proper socket if we have multiple bindings (reported on asterisk-dev)

Modified:
    branches/1.2/channels/chan_iax2.c

Modified: branches/1.2/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_iax2.c?rev=45048&r1=45047&r2=45048&view=diff
==============================================================================
--- branches/1.2/channels/chan_iax2.c (original)
+++ branches/1.2/channels/chan_iax2.c Fri Oct 13 11:18:08 2006
@@ -3080,6 +3080,9 @@
 		iaxs[callno]->pingtime = autokill / 2;
 		iaxs[callno]->initid = ast_sched_add(sched, autokill * 2, auto_congest, CALLNO_TO_PTR(callno));
 	}
+
+	/* send the command using the appropriate socket for this peer */
+	iaxs[callno]->sockfd = cai.sockfd;
 
 	/* Transmit the string in a "NEW" request */
 	send_command(iaxs[callno], AST_FRAME_IAX, IAX_COMMAND_NEW, 0, ied.buf, ied.pos, -1);



More information about the asterisk-commits mailing list