[OpenSIPS-Users] Adding param to contact header / rewriting contact header

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jul 29 22:57:46 CEST 2010


Hi Brad,

could you detail a bit the call flow? is the 302 received or locally 
generated? in what route are you trying to replace the contact. Maybe a 
snip of your script will help.

Regards,
Bogdan

Brad Bendy wrote:
> Hi List,
>
> Im trying to send a 302 but with a different contact header, the 302 
> sends correctly, but I cannot get the format correct. I know im 
> breaking loose routing and im sure other things but for this purpose 
> we need to have the Contact header in a specified format with more 
> then the normal header.
>
> Ive tried add_uri_param() and used a AVP for the data but it literally 
> outputs $avp(s:foo) instead of the contents.
>
> Ive also tried remove_hf() and then append_hf()  (in the route block) 
> before sending the 302 and the contact header is still there, just in 
> it's normal format.
>
> Basically, im trying to forward a 302 that I get to another IP address 
> (the original 302 I get has the correct Contact header already).
>
> Any ideals?
>
> Thanks!
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list