diff options
author | Mark Michelson <mmichelson@digium.com> | 2016-02-02 15:58:49 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-02-02 15:58:50 -0600 |
commit | d89f0b09defa7611df97cbf350d499605b7c565b (patch) | |
tree | 1b735a2a245f866689b49db56adeb9dfc7d38b87 | |
parent | c9a5f98ef431f73cca05206be12f63d80c69f925 (diff) | |
parent | 55a7367ad4d3c45856554b4be32d2fd0f70c0dda (diff) |
Merge "chan_sip.c: AMI & CLI notify methods get different values of asterisk's own ip."
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a3c6fb296..10b0d23f2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15160,6 +15160,12 @@ static int manager_sipnotify(struct mansession *s, const struct message *m) } } + /* Now that we have the peer's address, set our ip and change callid */ + ast_sip_ouraddrfor(&p->sa, &p->ourip, p); + build_via(p); + + change_callid_pvt(p, NULL); + sip_scheddestroy(p, SIP_TRANS_TIMEOUT); transmit_invite(p, SIP_NOTIFY, 0, 2, NULL); dialog_unref(p, "bump down the count of p since we're done with it."); |