Problem while sending SIP NOTIFY via AMI in 1.8.10-rc2

Home » Asterisk Users » Problem while sending SIP NOTIFY via AMI in 1.8.10-rc2
Asterisk Users 1 Comment


while testing asterisk 1.8.10-rc2 I stumbled across a weird behavior. I
want to notify a snom phone to reload its configuration. For this to
happen, I use the NOTIFY mechanism. I started the notify via AMI
command. Asterisk is bound to udp 25060, because all phones are
registered with a local opensips proxy which uses 5060. The expected
behavior would be:
asterisk send SIP NOTIFY to the proxy, the proxy sends it to the phone.

Actually asterisk sends the packet to the proxy, but the contact header
contains something invalid (IMHO):

On Manager Interface:
T -> [AP]
Action: SIPnotify.
Channel: SIP/max.
Variable: Event=check-sync;reboot=false.

Leads to:
U ->
NOTIFY sip:max@ SIP/2.0.
Via: SIP/2.0/UDP;branch=z9hG4bK1dff6efe.
Max-Forwards: 70.
From: “asterisk” ;tag=as66766c2a.
To: .
Contact: .
Call-ID: 412a8eff76bd7ac56ac06831256fd6aa@
CSeq: 102 NOTIFY.
Subscription-State: terminated.
Event: check-sync;reboot=false.
Content-Length: 0.

The weird thing is the port number 0 in the contact header.

Is this a bug or do I something wrong?



One thought on - Problem while sending SIP NOTIFY via AMI in 1.8.10-rc2

  • Hi,

    a little extension to my previous post: The phone sends “200 OK” for the
    NOTIFY via proxy to asterisk, but asterisk seems to ignore this. About
    500 ms later, the NOTIFY is repeated by asterisk. This continues up to
    the final timeout (with the typical log message).