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 <[email protected]
<mailto:[email protected]>> 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
[email protected]
<javascript:_e(%7B%7D,'cvml','[email protected]');>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
*
Bien cordialement,
Best Regards,
**Kevin MATHY* |**Ingénieur VoIP
*
*
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users