[OpenSIPS-Users] Proxy question

Flavio Goncalves flavio at voffice.com.br
Mon Oct 19 14:30:16 CEST 2015


Hi Travis,

If I understood correctly, you want to balance registrations between
Asterisk PBXs. In the latest versions, Asterisk has support for Path
(RFC3327). By using this on your Asterisk and also on OpenSIPS you can send
the address from where the request was received. Also check if your
firewall does not have ALG (Application Layer Gateway) enabled, it can be
changing your SIP headers, that's why you receive the firewall address
instead of the source address.

Flavio E. Goncalves


2015-10-15 13:41 GMT-03:00 Travis Manson-Drake <travism at simplybits.com>:

> 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
>
>
>
> _______________________________________________
> Users mailing list
> 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/20151019/d7d21d21/attachment.htm>


More information about the Users mailing list