There is already a thread about this. Search for NOTIFY in the subject.
Basically you just need to set: the tag:
NUTAG_APPL_METHOD("NOTIFY")

When you create the NUA agent.
But you have to handle the handles for unsubscribed NOTIFY different than a subscribed NOTIFY in the callback.

Colin..



Sluschny, Thomas wrote:
Hi,
 
i have a SIP device which sends me NOTIFY messages, but i cannot get these messages because i have to subscribe before get NOTIFYs (in the clean SIP way).
Is it possible to get these NOTIFYs (with nua callback) without subscription?
 
Here an example NOTIFY and answer:
 
recv 489 bytes from udp/[192.168.1.1]:5060 at 14:29:51.073734:
   ------------------------------------------------------------------------
   NOTIFY sip:[EMAIL PROTECTED] SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK1993237025
   From: <sip:[EMAIL PROTECTED]>;tag=3460141187
   To: <sip:[EMAIL PROTECTED]>
   Call-ID: [EMAIL PROTECTED]
   CSeq: 1 NOTIFY
   Contact: <sip:[EMAIL PROTECTED]>
   Max-Forwards: 70
   User-Agent: oSIP/NRE-0.9.6
   Event: SIPa
   Content-Type: application/sdp
   Content-Length: 131 
  
   v=0
   o=1 3179949743 3179949743 IN IP4 192.168.1.1
   s=SIPa Session
   c=IN IP4 192.168.1.1
   t=0 0
   a=X-SIPaMnt:rstf/ECD EAPP-0039-12
   ------------------------------------------------------------------------
send 257 bytes to udp/[192.168.1.1]:5060 at 14:29:51.073734:
   ------------------------------------------------------------------------
   SIP/2.0 481 Subscription Does Not Exist
   Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK1993237025
   From: <sip:[EMAIL PROTECTED]>;tag=3460141187
   To: <sip:[EMAIL PROTECTED]>;tag=NgtF6g5QK7QXg
   Call-ID: [EMAIL PROTECTED]
   CSeq: 1 NOTIFY
   Content-Length: 0
  
   ------------------------------------------------------------------------
Here a nua callback with NOTIFY content would be very nice :)
 
Thanks in advance,
Thomas

------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to