2007/11/22, Fabio Margarido <[EMAIL PROTECTED]>:
> I'd like to know if there is a way for me to tell if a response my
> callback gets came from a remote host or was generated by the
> underlying stack layer. For instance, if I send an INVITE and get an
> ICMP, Sofia automatically generates a 503 response and passes that to
> my callback. How can I tell this 503 apart from a 503 generated by a
> remote host?

The nta_is_internal_msg(msg) returns true if the response was
internally generated.

You can get response message with nta_outgoing_getresponse() (but you
have to free the reference to it with msg_destroy(), too).

I added nta_sip_is_internal() to the nta API in darcs you can pass the
sip_t pointer directly.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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