[Asterisk-code-review] manager sipnotify and sip cli notify have different logic w.... (asterisk[master])
Stefan Engström
asteriskteam at digium.com
Fri Jan 29 07:51:22 CST 2016
Stefan Engström has uploaded a new change for review.
https://gerrit.asterisk.org/2126
Change subject: manager_sipnotify and sip_cli_notify have different logic w.r.t setting own ip
......................................................................
manager_sipnotify and sip_cli_notify have different logic w.r.t setting own ip
Change-Id: I86af5e209db64aab82c25417de6c768fb645f476
---
M channels/chan_sip.c
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/2126/1
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a3c6fb2..10b0d23 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -15160,6 +15160,12 @@
}
}
+ /* 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.");
--
To view, visit https://gerrit.asterisk.org/2126
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86af5e209db64aab82c25417de6c768fb645f476
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Stefan Engström <stefanen at kth.se>
Gerrit-Reviewer: Stefan Engström <stefanen at kth.se>
More information about the asterisk-code-review
mailing list