[OpenSIPS-Users] Feature request - pseudo-variable for destination IP address

Robert Dyck rob.dyck at telus.net
Fri Jun 28 19:23:02 EDT 2019


Thank you Yuri Ritvin <yuri.ritvin at gmail.com>

{ip.resolve} transform works for me. The example given in the documentation is 
misleading. You can't use a literal string. You need to put into a var of some 
sort and then transform it.

On Thursday, June 27, 2019 3:35:37 P.M. PDT rob.dyck at telus.net wrote:
> On second thought it probably isn't poosible to do in any direct way because
> the information is lost in the router. The only possible way is a DNS
> query.
> 
> ----- Original Message -----
> From: "rob dyck" <rob.dyck at telus.net>
> To: users at lists.opensips.org
> Sent: Thursday, June 27, 2019 3:21:59 PM
> Subject: Feature request - pseudo-variable for destination IP address
> 
> I was looking for something similar to the $si PV but for the destination IP
> address. Either it doesn't exist or I am blind. I can't find things in the
> refrigerator either.
> 
> The motivation.
> 
> I have a working instance of Opensips with a basic residential
> configuration. I extended it to allow calling UAs on the LAN from the
> outside. It is a typical residential LAN without a fixed IP address.
> Dynamic DNS is working for me. I read the tutorial about Opensips behind
> NAT. Following the recommendations there I was able to setup rtpproxy, the
> advertised address and an alias for my Opensips. Initial testing using a
> softphone on a laptop using either WiFi or a mobile phone tethered to the
> laptop worked well. However it seems that some UAs will not accept a domain
> name in the SDP connection. The UAs that failed could be made to work by
> coding in an IP address. This is not a satisfactory solution because the
> router's address may chaange. There is probably some convoluted way to
> import the needed address into the script.  A pseudo-variable representing
> the destination IP address of the received INVITE or 200 OK could then be
> passed as the advertised address to the rtpproxy module.
> 
> Thank you for having a look.
> Rob
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users







More information about the Users mailing list