From: pk16208 Date: Tue, 18 Sep 2018 13:01:02 +0000 (+0200) Subject: chan_sip: SipNotify on Chan_Sip vi AMI behave different to CLI X-Git-Tag: 15.7.0-rc1~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3539d1d07e84057c404eb8eddb17bfdb468758b;p=thirdparty%2Fasterisk.git chan_sip: SipNotify on Chan_Sip vi AMI behave different to CLI With tls and udp enabled asterisk generates a warning about sending message via udp instead of tls. sip notify command via cli works as expected and without warning. asterisk has to set the connection information accordingly to connection and not on presumption ASTERISK-28057 #close Change-Id: Ib43315aba1f2c14ba077b52d8c5b00be0006656e --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 519efa1dc0..fe2ae1e983 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15597,7 +15597,7 @@ static int manager_sipnotify(struct mansession *s, const struct message *m) return 0; } - if (create_addr(p, channame, NULL, 0)) { + if (create_addr(p, channame, NULL, 1)) { /* Maybe they're not registered, etc. */ dialog_unlink_all(p); dialog_unref(p, "unref dialog inside for loop" );