[OpenSIPS-Users] Rewriting refer-to
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu May 22 19:16:16 CEST 2014
Hello Rik,
The simplest approach is :
1) get into a variable the body of the Refer-To hdr
2) run a subst over the variable to make the change
3) remove the Refer-To hdr
4) add a new one with the body from the variable
:)
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 13.05.2014 15:41, Rik Broers wrote:
>
> Hi,
>
> I'm working on a setup with opensips+rtpproxy as a Lan-Wan bridge.
>
> The basic scenario's work but I keep having trouble with a refer
> (transfer).
>
> Refer is initiated on the Lan side, and relayed to a public Asterisk
> machine. Asterisk is then having trouble sending out the invite to the
> transfertarget. (this never happens)
>
> After looking around in asterisk I think I have it narrowed down to
> the Refer-To header containing a LAN-IP. (seems obvious J)
>
> This header contains a lot of other stuff.. Refer-To:
> \"CTI+\"<sip:114 at 172.17.170.3;user=phone?Replaces=x-ippbx-transferid%3Bto-tag%3D144%3Bfrom-tag%3D144>
>
> How should I rewrite this header? Replacing the IP but keep all the
> other information.
>
> Vriendelijke groet,
>
> *Rik Broers*
> Voice Engineer
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140522/a3936dc9/attachment.htm>
More information about the Users
mailing list