2008/3/2, Rajat Dudeja <[EMAIL PROTECTED]>: > I'm trying to add "received" parameter to Via message in outgoing 183 > Session Progress message. > Though I manage to do it some how, however, as a side effect I'm seeing > duplicate Vias in outgoing 183 messages and also seeing multiple 183 > messages.
> To tell you, how I did it is: > 1. First, I copied via to some global via variable in the incoming INVITE > message in ssc_i_invite() > 2. Then, I did a call to sip_via_copy() to copy the contents of received Via > to global Via variable > 3. I then added the parameter received to the global via message > 4. Finally, I added my new via header to nua_respond() with SIPTAG_VIA(via) If you see multiple 183 messages it is probably because a proxy is routing them based on the Via headers, that were duplicated. The contents of the SIPTAG_VIA() are inserted before the Via headers copied from the request. I guess you can replace the Via headers with two SIPTAG_VIA() tags, like SIPTAG_VIA((void *)-1), SIPTAG_VIA(via). --Pekka -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- 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