List Info

Thread: Duplicate Via Header and Multiple 183 messages




Duplicate Via Header and Multiple 183 messages
user name
2008-03-02 10:55:18
Hi,

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)

Please suggest how to stop duplicate via and multiple 183 messages

Thanks and regards,
Rajat



Re: Duplicate Via Header and Multiple 183 messages
user name
2008-03-03 04:31:43
2008/3/2, Rajat Dudeja <rajat.dudejagmail.com>:
> 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-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-s
ip-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )