Merged revisions 45049 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 13 Oct 2006 16:20:26 +0000 (16:20 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 13 Oct 2006 16:20:26 +0000 (16:20 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r45049 | kpfleming | 2006-10-13 11:19:35 -0500 (Fri, 13 Oct 2006) | 10 lines

Merged revisions 45048 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r45048 | kpfleming | 2006-10-13 11:18:08 -0500 (Fri, 13 Oct 2006) | 2 lines

when sending a call to a peer, use the proper socket if we have multiple bindings (reported on asterisk-dev)

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45050 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 3e188f3..f71a32a 100644 (file)
@@ -2881,6 +2881,9 @@ static int iax2_call(struct ast_channel *c, char *dest, int timeout)
                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);