I support both subscribed and non-subscribed NOTIFY.
If the NOTIFY is subscribed, i.e. the handle is the same as my SUBSCRIBE handle, you do not need to respond.

If the NOTIFY is a non-subscribed I respond with:
    nua_respond( nh, SIP_200_OK, NUTAG_WITH_THIS(nua_agent), TAG_END() );
    nua_handle_destroy( nh );

nua_agent is your nua_t * from nua_create().
I also use SIP_481_NO_CALL if the NOTIFY is something I do not want.

Colin..

Jerry Richards wrote:
Okay, I added NUTAG_APPL_METHOD("NOTIFY") and the callback function is getting invoked for the incoming NOTIFY message with an nua_i_notify 100 Trying event.  However, when I call nua_respond(nh, 200, "OK"), sofia-sip does not generate any outgoing 200 OK response.
 
What does your nua_respond() parameters look like?
 
Best Regards,
Jerry


From: Colin Whittaker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2008 1:45 PM
To: Jerry Richards
Cc: sofia-sip-devel@lists.sourceforge.net
Subject: Re: [Sofia-sip-devel] Accepting Unsolicited NOTIFY Messages

I use:

NUTAG_APPL_METHOD("NOTIFY")

In my :
nua_set_params()
call.e

Colin..


Jerry Richards wrote:
Hello All,

Is there a way to accept inbound NOTIFY messages that were not previously
subscribed to via nua_subscribe()?  I have a server that wants to send
unsolicited message-summary events.

Right now, sofia-sip will reply to the unsolicited NOTIFY messages with 481
Subscription Does Not Exist.

Best Regards,
Jerry


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
  
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to