[asterisk-users] Portech MV-374 does not register behind NAT
Jonas Kellens
jonas.kellens at telenet.be
Sun May 2 03:54:47 CDT 2010
Jared,
the Portech SIMbox is registering to a DNS name. The firewall is off and
the NAT is a Zyxel NBG-419 router.
No mather what port I set, It is not working :
<--- SIP read from my_public_ip:5070 --->
REGISTER sip:sip.sipserver.tld SIP/2.0
Via: SIP/2.0/UDP 192.168.1.25:5070;branch=z9hG4bK4465928ede
From: "SIM 1-1" <sip:simsim1 at sip.sipserver.tld>;tag=6672a4c3
To: "SIM 1-1" <sip:simsim1 at sip.sipserver.tld>
Call-ID: 277210db31b0ae184675c3245d5e949f at 192.168.1.25
Contact: <sip:simsim1 at 192.168.1.25:5070>
CSeq: 56 REGISTER
Max-Forwards: 70
Expires: 60
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE,UPDATE
User-Agent: Mv-37x (904290)
Content-Length: 0
<------------->
[May 2 10:38:51] --- (12 headers 0 lines) ---
[May 2 10:38:51] Using latest REGISTER request as basis request
[May 2 10:38:51] Sending to 192.168.1.25 : 5070 (no NAT)
[May 2 10:38:51]
<--- Transmitting (NAT) to my_public_ip:5070 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
192.168.1.25:5070;branch=z9hG4bK4465928ede;received=my_public_ip
From: "SIM 1-1" <sip:simsim1 at sip.sipserver.tld>;tag=6672a4c3
To: "SIM 1-1" <sip:simsim1 at sip.sipserver.tld>
Call-ID: 277210db31b0ae184675c3245d5e949f at 192.168.1.25
CSeq: 56 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
<------------>
[May 2 10:38:51]
<--- Transmitting (NAT) to my_public_ip:5070 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.25:5070;branch=z9hG4bK4465928ede;received=my_public_ip
From: "SIM 1-1" <sip:simsim1 at sip.sipserver.tld>;tag=6672a4c3
To: "SIM 1-1" <sip:simsim1 at sip.sipserver.tld>;tag=as12309a5f
Call-ID: 277210db31b0ae184675c3245d5e949f at 192.168.1.25
CSeq: 56 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="103001vc", nonce="7c2508cc"
Content-Length: 0
Is it normal that there is a Via-header sent from the SIMbox with its
local IP-address in it ??
Is it normal that "SIP read from my_public_ip:5070" has the same port
number as the SIP-account (simsim1) 192.168.1.25:5070 ??
Could it be that NAT is not working correctly in my router ??
Jonas.
On 04/22/2010 05:53 PM, Jared Smith wrote:
> Is the device registering to an IP address, or do a DNS name? What type
> of NAT firewall are you using?
>
> This reminds me of a problem I had years ago with a Cisco PIX firewall,
> where it would rewrite IP addresses in the SIP Request URI, causing the
> authentication to fail. One solution was to have it register to a
> fully-qualified domain name instead of an IP address, so that the
> Request URI wouldn't get overwritten.
>
> It's certainly worth a shot...
>
> --
> Jared Smith
> Digium, Inc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100502/e49e9ee0/attachment.htm
More information about the asterisk-users
mailing list