[OpenSIPS-Users] Proxy question

Travis Manson-Drake travism at simplybits.com
Thu Oct 15 18:41:10 CEST 2015


Hello All,

Hope you're doing well!

I seem to be drawing a blank on this one, and I'm hoping someone out there may have an idea.

So here it is:

Essentially what's happening:

I have a phone in a remote location that's outside of my network

The phone is pointed to my opensips proxy

Once the request comes in the proxy does some sql queries to find out what PBX the phone should register to

Once the phone has registered with the correct Asterisk PBX everything works great.

However, I seem to be having an issure in which after its registered with Asterisk the Ip address asterisk has on record when I do a "sip show peer 7001XXXXX" is the public IP of the firewall the Sip proxy is behind. And not the ip address of the FW the phone is behind.

This is a bit of a problem as we use the Public IP to determine Location of Phones etc etc.

I was thinking of doing something with $si and $avp variables, but nowhere in my logic do I handle registration request's I simply Middle man the traffic and relay the request's to the right PBX.

Does anyone have any suggestions on how I might force the source IP of where the UAC is registering into the packet asterisk receives as a Reg from address?

Any input is greatly appreciated!

As always thank you all for your time!



Travis Manson-Drake
Voice Systems Analyst L1
Simply Bits, LLC
Now You're Thinkin' Smart!
5225 N. Sabino Canyon Road
Tucson, AZ 85750
Phone: 520-545-0311
Fax: 520-545-7252
Support Hotline: 5205450333
www.simplybits.com<http://www.simplybits.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151015/7f86d2e5/attachment.htm>


More information about the Users mailing list