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:[email protected]]
*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

    [email protected]  <mailto:[email protected]>

    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to