summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2016-02-02 15:58:59 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-02-02 15:59:00 -0600
commit389a94eda2f68baba7c2ea3d2759238b2eb62a94 (patch)
tree9da615c312814e8c1d44dcbc36a97f177be5e07e
parentf6551868be4443da8ecf81d91b9407a834db281d (diff)
parentaa9348ab9aa0069e5992be38321f7849697206f1 (diff)
Merge "chan_sip.c: AMI & CLI notify methods get different values of asterisk's own ip." into 13
-rw-r--r--channels/chan_sip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 684431740..60ff451c1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -15159,6 +15159,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.");