[OpenSIPS-Users] best way to append prefix (areacode)
Søren Andersen
SOAN at stofa.dk
Mon Aug 17 17:03:59 CEST 2015
Cool, :)
I also have to append the prefix to the contact field.. If I use the subst the topology hiding won't replace my rfc1918 ip address with my server address. Should I use another function instead?
/Søren
Fra: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
Sendt: 17. august 2015 16:40
Til: Søren Andersen <SOAN at stofa.dk>; OpenSIPS users mailling list <users at lists.opensips.org>
Emne: Re: SV: [OpenSIPS-Users] best way to append prefix (areacode)
Yes Søren, that is the correct way to do it.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 17.08.2015 16:37, Søren Andersen wrote:
Hi Bogdan,
Yup. Currently I'm using:
prefix("+areacode");
uac_replace_from("\"+areacode$fU\"","sip:+areacode$fU@$rd");
uac_replace_to("$ruri");
But I don't know if that is the best way?
/Søren
Fra: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
Sendt: 17. august 2015 15:27
Til: OpenSIPS users mailling list; Søren Andersen
Emne: Re: [OpenSIPS-Users] best way to append prefix (areacode)
Hi Søren,
Do you have to add this prefix to the RURI or to the TO URI too ?
For RURI is simple: $rU = "my_prefix" + $rU ;
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 17.08.2015 15:07, Søren Andersen wrote:
Hello Guys,
What is the best way to append prefix (areacode) in OpenSIPS? - I need to append my areacode when I pass the call to my upstream provider, and then stip the prefix off when I receive a call.
Is the best way to use uac_replace then I receive/making a call?
/Søren
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto: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/20150817/120c3a83/attachment.htm>
More information about the Users
mailing list