>> I need to make SIP message forwarding in a stateful NTA, but not sure
>> which is the correct way to do it. I receive the incoming transaction
>> in the default leg, but how do I forward the SIP message to another
>> user? Do I need to create an outgoing transaction with
>> nta_outgoing_tcreate() to perform the forwarding? That seems
>> complicated, as I would need to put the same input headers in the new
>> outgoing transaction...
>
> You should make a copy of your msg_t (w/ msg_copy() and call
> nta_outgoing_mcreate() with the copy.
>

Thanks, that worked perfectly.

Cheers,
-Aleksander

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to