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
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








