[OpenSIPS-Users] RURI Modification for NATed endpoints after en ENUM Request

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Mar 28 09:37:34 CET 2014


Hello Kevin,

Simply do in your script (after the ENUM lookup):

$rd = "foo.com";  # see 
http://www.opensips.org/Documentation/Script-CoreVar-1-10#toc65
$rp = 1234;  # see 
http://www.opensips.org/Documentation/Script-CoreVar-1-10#toc70

Regards,

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

On 28.03.2014 00:28, Kevin Mathy wrote:
> Hi Bogdan,
>
> I'd like to modify only the hostname (and port) part of the RURI, to 
> put inside informations taken from the location table.
>
> I've made it this afternoon, using a homemade perl script (which I'll 
> be able to share tomorrow if needed), and it works well, but for the 
> process to be perfect, I prefer if I can avoid the perl method, and 
> only use Opensips's integrated methods ;-)
>
> Thanks,
>
> Best regards,
>
> Kevin
>
>
> Le jeudi 27 mars 2014, Bogdan-Andrei Iancu <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>> a écrit :
>
>     Hi Kevin,
>
>     Nothing is normal here, everything is strange, so..... :)
>
>     You can modify any parts of the RURI, no problem - what exactly
>     part of it you want to change ?
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>     OpenSIPS Founder and Developer
>     http://www.opensips-solutions.com
>
>     On 27.03.2014 12:31, Kevin Mathy wrote:
>>     Hi List,
>>
>>     What I'm trying to do may be "strange" for some people, but here
>>     is the situation :
>>     I've got an OpenSIPS server, which do some ENUM requests to route
>>     Incoming calls (from me, the provider, to the customers).
>>     It works well when my customer's endpoints are configured with a
>>     public IP, without any NAT.
>>
>>     But, when those endpoints connect to my server through a NAT
>>     router, I face a problem for incoming calls, as the port used by
>>     endpoint isn't the same as the classical 5060.
>>
>>     So, my question is : is there a way to simply modify the
>>     Request-URI obtained after an ENUM query, with the informations
>>     inserted in the location table ?
>>
>>     I've got an idea on how to make it with a perl script, but I
>>     prefer to not use this method, and to use only existant modules
>>     of methods.
>>
>>     Thanks for your ideas
>>
>>     Kevin
>>
>>
>>     *
>>     Bien cordialement,
>>     Best Regards,
>>
>>     **Kevin MATHY* |**Ingénieur VoIP
>>     *
>>     *
>>
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org  <javascript:_e(%7B%7D,'cvml','Users at lists.opensips.org');>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> -- 
> *
> Bien cordialement,
> Best Regards,
>
> **Kevin MATHY* |**Ingénieur VoIP
> *
> *
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140328/9d53197a/attachment-0001.htm>


More information about the Users mailing list