[OpenSIPS-Users] NOTIFY nat_keepalive - Bad Event

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Feb 27 14:57:33 CET 2009


Hi Carlo,

I think the problem is with the phone as they do not understand the 
"keep-alive" event sent in NOTIFY.

It is nothing you can do about this (in is not on the proxy side). Maybe 
in the future we can add a module parameter for removing the Event 
header from the REQUEST and make the dummy phone happy.

Anyhow, as best practice , the OPTIONS method is more appropriate for 
nat pinging.

Regards,
Bogdan

Carlo Dimaggio wrote:
> Hi all,
>
> I'm using nat_traversal and the nat_keepalive function. For phones- 
> compatibility I have to use the "NOTIFY" method but all my registered  
> phones reply to opensips with "Bad Request / Bad Event" (with OPTIONS  
> method some phones reply with "200 OK"). What I am wrong?
>
> Can you help me?
>
> Thanks,
> Carlo Dimaggio
>
>
>
> ---- Opensips.cfg
>
> modparam("nat_traversal", "keepalive_interval", 90)
> modparam("nat_traversal", "keepalive_method", "NOTIFY")
> modparam("nat_traversal", "keepalive_state_file", "/var/run/opensips/ 
> keepalive_state")
> [...]
>
> if ((method=="REGISTER" || (method=="INVITE" && !has_totag())) &&  
> client_nat_test("3"))
>      {
>          nat_keepalive();
>      }
>
> ----
>
> ---- Trace with "NOTIFY"
>
> #
> U <IP_OPENSIPS>:5060 -> 10.0.8.183:5060
> NOTIFY sip:10.0.8.183:5060 SIP/2.0.
> Via: SIP/2.0/UDP <IP_OPENSIPS>:5060;branch=0.
> From: sip:keepalive@<IP_OPENSIPS>;tag=4c2a2dbf.
> To: sip:10.0.8.183:5060.
> Call-ID: 2fe80f67-6c647fe7-27@<IP_OPENSIPS>.
> CSeq: 1 NOTIFY.
> Event: keep-alive.
> Content-Length: 0.
> .
>
> #
> U 10.0.8.183:5060 -> <IP_OPENSIPS>:5060
> SIP/2.0 489 Bad Event.
> Via: SIP/2.0/UDP <IP_OPENSIPS>:5060;branch=0.
> From: sip:keepalive@<IP_OPENSIPS>;tag=4c2a2dbf.
> To: <sip:10.0.8.183:5060>;tag=224300607.
> Call-ID: 2fe80f67-6c647fe7-27@<IP_OPENSIPS>.
> CSeq: 1 NOTIFY.
> Contact: <sip:10.0.8.183:5060>.
> Server: Aastra 55i/2.3.1.26.
> Content-Length: 0.
> .
>
> -----
>
> ---- Trace with "OPTIONS"
>
> #
> U <IP_OPENSIPS>:5060 -> 10.0.8.183:5060
> OPTIONS sip:10.0.8.183:5060 SIP/2.0.
> Via: SIP/2.0/UDP <IP_OPENSIPS>:5060;branch=0.
> From: sip:keepalive@<IP_OPENSIPS>;tag=6386f398.
> To: sip:10.0.8.183:5060.
> Call-ID: 406b0979-64c6436a-27@<IP_OPENSIPS>.
> CSeq: 1 OPTIONS.
> Content-Length: 0.
> .
>
> #
> U 10.0.8.183:5060 -> <IP_OPENSIPS>:5060
> SIP/2.0 200 OK.
> Via: SIP/2.0/UDP <IP_OPENSIPS>:5060;branch=0.
> From: sip:keepalive@<IP_OPENSIPS>;tag=6386f398.
> To: <sip:10.0.8.183:5060>;tag=85691902.
> Call-ID: 406b0979-64c6436a-27@<IP_OPENSIPS>.
> CSeq: 1 OPTIONS.
> Allow:  INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, UPDATE,  
> PRACK, SUBSCRIBE, INFO.
> Server: Aastra 55i/2.3.1.26.
> Content-Length: 0.
> .
>
> -----
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list