aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-13 17:02:15 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-13 17:02:15 +0000
commit86018830978239c8149c0e3bed0474e531f35b61 (patch)
tree6e51dea91ee95c7f46cb05bc0be5046a6437439a /channels
parent74f1c4d017d152210c0e5fa819686f2a9b51ef5a (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@45065 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 701e21e35..5e4648f37 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -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);