]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
when sending a call to a peer, use the proper socket if we have multiple bindings...
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 13 Oct 2006 16:18:08 +0000 (16:18 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 13 Oct 2006 16:18:08 +0000 (16:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45048 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 701e21e35a16eef12aa3178ff4720b1e3ad58e3b..5e4648f377fba2e59db1727102c5f4634115a577 100644 (file)
@@ -3081,6 +3081,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);