Author |
Message |
BrekekeUserGermany Brekeke Member
Joined: 12 Apr 2018 Posts: 12
|
Posted: Thu Apr 12, 2018 12:30 am Post subject: Change IP in Contact Header in Register |
|
|
1. Brekeke Product Name and Version:
Brekeke PBX, Version 3.8.3.4, Pro
2. Java version:
openjdk version "1.8.0_162"
3. OS type and the version:
Linux 4.9.0-4-amd64 x86_64
4. UA (phone), gateway or other hardware/software involved:
-
5. Your problem:
Hi everyone,
we are registering our Brekeke PBX to an external Serviceprovider.
Our PBX has 2 Interfaces, one with internal IP (10.72.XX.X), one with external IP (212.160.XXX.XXX)
The incoming calls should go through the external IP.
In the register from Brekeke PBX to the SIP Provider the PBX always send the internal IP 10.72.XX.X as contact and then the provicer tries to send all incoming calls to this IP.
Example:
Contact: <__sip:0049XXXXXXXX@10.72.XX.X:5060>;expires=3600;q=1.0
The register is successfull, but the calls are being send to the wrong IP.
Why does the PBX use this IP in the contact?
Is there a way to configure the PBX to use the external IP 217.160.XXX.XXX?
Thanks for your help & best regards |
|
Back to top |
|
BrekekeUserGermany Brekeke Member
Joined: 12 Apr 2018 Posts: 12
|
Posted: Thu Apr 12, 2018 3:50 am Post subject: |
|
|
I found a matching problem in in another Thread:
http://www.brekeke-sip.com/bbs/viewtopic.php?t=7566&highlight=contact
The solution to change the IP in th Contact is the following:
Matching Patterns | To = sip:0049XXXXXXXX@XXX.sip $request = ^REGISTER
| Deploy Patterns | $ifdst = 217.160.XXX.XXX
|
Best Regards |
|
Back to top |
|
Mike Support Team
Joined: 07 Mar 2005 Posts: 733
Location: Sunny San Mateo
|
Posted: Fri Apr 20, 2018 11:06 pm Post subject: |
|
|
Hi
Your DialPlan rule may work but it doesn't store the registration record in the internal database listed under [Registered Clients].
To avoid the issue, please use "&net.registrar.thru.if" instead of "$ifdst".
The recommended DialPlan rule is like this.
Matching Patterns | $request = ^REGISTER To = sip:0049XXXXXXXX@XXX.sip
| Deploy Patterns | &net.registrar.thru.if = 192.168.217.160 $action = register
|
|
|
Back to top |
|
|