Forums Read-only archive

Need Help Please - contact

8 posts · Brekeke SIP Server Forum

gmcnitt Original post
1. Brekeke Product Name and Version:
Sip Server
3.2.4.3/367
2. Java version:
1.7.0_45
3. OS type and the version:
Windows Server 2008 R2
6.1
4. UA (phone), gateway or other hardware/software involved:
Proprietary system
5. Your problem:
Hello, I am trying to use your sip server to simply take what I send it from my proprietary platform and change the sip info to connect to a sip provider. Currently I am trying to change the contact in the sip message from the local ip to a public ip but have not figured out how to make that work. I have a simple Matching Pattern of $request=^INVITE, and in the Deploy pattern I have Contact=sip12345@public_ip:5060, but it continues having contact=sip1234@private_ip:5060. thanks..
Harold
Is the SIP server behind NAT?
Can you see a public_ip in the [Status] page ?
gmcnitt
yes, behind a cisco firewall. On the status page everything only shows the local ips. I can use xten soft client direct and it works fine. Thanks...
hope
create dial plan rule for this user register

Matching patterns
$request = ^REGISTER
To=sip:1234@

Deploy Patterns
$continue = true
&register.contact.remote = true

1234 is the sip id of registered user which need global IP as contact
gmcnitt
i have no registration for any of my sip access......all does not require authorization.
Harold
If the SIP server is behind NAT, you need to let the server knows the public IP address.

Set the public IP address in
[Configuration] > [System] > [Network]>[Interface Address].

See this page.
http://wiki.brekeke.com/wiki/Set-port-forwarding

Furthermore, you don't have to have any Dialplan rule to replace Contact header. It will be replaced automatically.
gmcnitt
I have added the public ip in interface address, yet the contact still has the local lan ip. ?? It does show up in server now.
Harold
Can you see a public_ip in the [Status] page ?
Do you have any dialplan rules ?
Where did you define the destinations's IP address (provider's IP)?