Why don't you explain the problem you want to solve?
Maybe that to modify contact in this way is not the right solution.

s


Il 05/10/2010 18:34, David Santiago ha scritto:
> Hi all,
>
> I need to modify the host part of a contact header. I'm trying something like:
>
> if ( subst('/^Contact:<sip:([0-9]+)@(.*)$/Contact:
> <sip:\...@new_ip_address_here>/ig') ) {
>                  xlog("contact modified!");
>          };
>
> but the resulting Contact header is wrong and cannot be processed.
>
> Having a look at the header with wireshark shows that the "Contact
> Binding" entry is missing the ending ">", but the "Contact", "URI" or
> "SIP contact address" have the">" at the end  :L
>
> May be this is not the right way to modify a Contact header...
>
>
> Thanks in advance,
> David
>
> _______________________________________________
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to