This Question is Answered

2 "helpful" answers available (1 pts)
6 Replies Last post: Jan 1, 2009 7:01 PM by mpicher  
Click to view mpicher's profile   40 posts since
Dec 28, 2008

Jan 1, 2009 1:38 PM

Phone registration from behind NAT to sipX behind NAT

Ok, since I got everything else working today (with a help from Joegen), I figured I'd go for the last piece I really care about... far-end NAT traversal.

I have been referring to Raymond's excellent work over on the sipX Wiki ( [SipXecs-OpenSBC Setup Guide|http://sipx-wiki.calivia.com/index.php/SipXecs-OpenSBC_Setup_Guide_for_Different_Call_Scenario] ).

It is my understanding that the Upper Registration page should be able to mangle/rewrite the registration requests forward in towards my PBX (which has a different domain name inside than what I have outside).

So all calls / registrations in to *@sipxecs.info should be rewritten to be *@xyzcompany.com.

I believe the remote registrations would be working now if my internal domain was the same judging by the log below.

2009/01/01 18:23:02.239 INF: [CID=0x4ee4b71e] <<< REGISTER sip:sipxecs.info SIP/2.0 Method(REGISTER) SRC: 72.12.80.199:11649:UDP enc=0 bytes=563
2009/01/01 18:23:02.241 PWL: [CID=0x00000000] *** DNSSRV *** _sip._udp.sipxecs.info -> 76.178.252.229:5060
2009/01/01 18:23:02.241 INF: [CID=0x4ee4b71e] *** LOCAL REG *** sip:200 at sipxecs dot info
2009/01/01 18:23:02.244 INF: [CID=0x4ee4b71e] >>> SIP/2.0 401 Unauthorized Method(REGISTER) DST: 72.12.80.199:11649:UDP SRC=76.178.252.229:5061 enc=0 bytes=488
2009/01/01 18:23:03.166 INF: [CID=0x4ee4b71e] <<< REGISTER sip:sipxecs.info SIP/2.0 Method(REGISTER) SRC: 72.12.80.199:11649:UDP enc=0 bytes=786
2009/01/01 18:23:03.168 PWL: [CID=0x00000000] *** DNSSRV *** _sip._udp.sipxecs.info -> 76.178.252.229:5060
2009/01/01 18:23:03.168 INF: [CID=0x4ee4b71e] *** LOCAL REG *** sip:200 at sipxecs dot info
2009/01/01 18:23:03.170 INF: [CID=0x4ee4b71e] >>> SIP/2.0 403 Forbidden Method(REGISTER) DST: 72.12.80.199:11649:UDP SRC=76.178.252.229:5061 enc=0 bytes=338

Here's my ini file...

[Solegy]
RTTS-Client-Address=76.178.252.229

[OpenSBC-General-Parameters]
SIP-Log-Level=1
PTRACE-Log-Level=1
Log-File-Prefix=b2bua
SBC-Application-Mode=B2BUpperReg Mode
Interface-Address Array Size=0
Enable-Backdoor-Port=True
Enable-Trunk-Port=True
Enable-Calea-Port=True
RTP-Min-Port=30000
RTP-Max-Port=35000
Enable-Local-Refer=False
Max-Forwards=70
Encryption-Mode=XOR
Encryption-Key=GS
Transaction-Thread-Count=10
Session-Thread-Count=10
Alerting-Timeout=30000
Seize-Timeout=60000
SIP-Timer-B=Default
SIP-Timer-H=Default
Session-Keep-Alive=1800
Session-Max-Life-Span=10800
Max-Concurrent-Session=100
Max-Call-Rate-Per-Second=10

[Upper-Registration]
Enable-Stateful-Reg=True
Rewrite-TO-Domain=True
Rewrite-FROM-Domain=True
Route-List Array Size=1
Route-List 1=[sip:*@sipxecs.info] sip:xyzcompany.com;domain=xyzcompany.com

[Internal-DNS-Mapping]
Internal-DNS-Map Array Size=0

[Proxy-Relay-Routes]
Drop-Routes-On-Ping-Timeout=False
Proxy-Resolve-To-URI=True
Route-List Array Size=0

[B2BUA-Routes]
Enable-Route-Scripting=False
Route-Script=b2bua-route.cscript
Route-List Array Size=0
Route-List 1=[sip:sipxecs.info] sip:xyzcompany.com
Insert-Route-Header=True
Rewrite-TO-URI=True
Prepend-ISUP-OLI=False
Route-By-Request-URI=False
Route-By-To-URI=False
Drop-Routes-On-Ping-Timeout=False
Use-External-XML=False
External-XML-File=b2bua-route.xml

[Media-Server]
Enable-Media-Server=False
Media-Server-Number=5000
Codec-List Array Size=0
No-RTP-Proxy-On-All-Transfers=False
Enable-Announcement-Service=False
4xx-Error-Map=prompts/basic/cant_complete.wav
5xx-Error-Map=prompts/basic/cant_complete.wav
6xx-Error-Map=prompts/basic/cant_complete.wav
Announcement-Error-Map Array Size=0

[Outbound-Proxies]
Outbound-Proxies Array Size=0

[Local-Domain-Accounts]
Accept-All-Registration=False
Account-List Array Size=0

Thanks guys,
Mike

Click to view ehernaez's profile   67 posts since
Aug 28, 2007
1. Jan 1, 2009 2:16 PM in response to: mpicher
Re: Phone registration from behind NAT to sipX behind NAT

Mike,

In the Local-Domain-Accounts section, try changing Accept-All-Registration to =TRUE.

Also, there is no need to enter anything in the Solegy section. These parameters are useful only to Solegy customers.


Regards,

~Eric

Click to view ehernaez's profile   67 posts since
Aug 28, 2007
3. Jan 1, 2009 3:01 PM in response to: mpicher
Re: Phone registration from behind NAT to sipX behind NAT
Seems like its not recognizing your static route in the B2BUA route section. I would expect to see the Route-List Array Size=1 instead of:

Route-List Array Size=0
Route-List 1=sip:sipxecs.info sip:xyzcompany.com

Try deleting this route and then re-entering it.
Click to view ehernaez's profile   67 posts since
Aug 28, 2007
5. Jan 1, 2009 3:27 PM in response to: mpicher
Re: Phone registration from behind NAT to sipX behind NAT
Try this:

B2BUA-Routes
Enable-Route-Scripting=False
Route-Script=b2bua-route.cscript
Route-List Array Size=1
Route-List 1=[ sip:*@sipxecs.info ] sip:xyzcompany.com
Insert-Route-Header=True
Rewrite-TO-URI=True
Prepend-ISUP-OLI=False
Route-By-Request-URI=True
Route-By-To-URI=False
Drop-Routes-On-Ping-Timeout=False
Use-External-XML=False
External-XML-File=b2bua-route.xml