]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: SipNotify on Chan_Sip vi AMI behave different to CLI
authorpk16208 <peter.katzmann@edag.de>
Tue, 18 Sep 2018 13:01:02 +0000 (15:01 +0200)
committerSean Bright <sean.bright@gmail.com>
Tue, 18 Sep 2018 14:35:26 +0000 (09:35 -0500)
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

channels/chan_sip.c

index ebfcfeb18bd9c9fd703dc3d68e7e7d9e614e08c8..34299a8ca3287ebf9c82da949ca40c750864eaef 100644 (file)
@@ -15572,7 +15572,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" );