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

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Aug 17 17:07:02 CEST 2015


Søren, makes no sense to change username in Contact hdr as itis useless 
information. The Contact hdr is exclusively used to provide network 
coordinates (IP, port, proto) of a SIP party.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 17.08.2015 18:03, Søren Andersen wrote:
>
> Cool, J
>
> 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/b5be94db/attachment-0001.htm>


More information about the Users mailing list