[OpenSIPS-Users] best way to append prefix (areacode)

Søren Andersen SOAN at stofa.dk
Mon Aug 17 15:37:49 CEST 2015


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/78a9252d/attachment.htm>


More information about the Users mailing list