Cisco 7941G and Asterisk 1.4

Hi all

I’m attempting to get an Cisco 7941G to register with Asterisk 1.4. The Cisco is behind a Linksys RV042 performing NAT.

I’ve loaded the SIP firmware 8.3-1S, and the unit registers fine to a local asterisk server (no NAT).

However when it needs to connect to a remote asterisk server through NAT, it will not register. I’ve tried toggling nat=no/yes in the extentsions.conf but that didn’t do any good. I see it connect, and then it gets the 401 Unauthorized, but does not try to authenticate.

Does anyone have any ideas?

Thanks

Hi,

try the nat in the xml file:

...... <natEnabled>0</natEnabled> <natAddress></natAddress> ......
and change them accordingly

good luck, and keeps us in touch please.

Thanks I have tried that, specified natAddress as the external IP, etc.

Toggled nat=yes/no in sip.conf for the extentsion, and also tried 1/0 for natEnabled, but I still get:

debug log below, any thoughts?

<--- SIP read from $EXTERNALIP:52222 --->
REGISTER sip:$ASTERISKSERVER SIP/2.0
Via: SIP/2.0/UDP $INTERNALIP:52060;branch=z9hG4bK2ec340df
From: <sip:9901@$ASTERISKSERVER>;tag=0023049c12a90003112556d1-9c4e139b
To: <sip:9901@$ASTERISKSERVER>
Call-ID: 0023049c-12a90002-cd93fca6-bf2fefc1@$INTERNALIP
Max-Forwards: 70
Date: Sat, 27 Dec 2008 15:18:31 GMT
CSeq: 102 REGISTER
User-Agent: Cisco-CP7941G/8.3.0
Contact: <sip:9901@$INTERNALIP:52060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-0023049c12a9>";+u.sip!model.ccm.cisco.com="115"
Supported: (null),X-cisco-xsi-6.0.1
Content-Length: 0
Reason: SIP;cause=200;text="cisco-alarm:20 Name=SEP0023049C12A9 Load=SIP41.8-3-1S Last=Phone-Keypad"
Expires: 3600


<------------->
--- (14 headers 0 lines) ---
Using latest REGISTER request as basis request
Sending to $EXTERNALIP : 52222 (NAT)

<--- Transmitting (NAT) to $EXTERNALIP:52222 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP $INTERNALIP:52060;branch=z9hG4bK2ec340df;received=$EXTERNALIP
From: <sip:9901@$ASTERISKSERVER>;tag=0023049c12a90003112556d1-9c4e139b
To: <sip:9901@$ASTERISKSERVER>
Call-ID: 0023049c-12a90002-cd93fca6-bf2fefc1@$INTERNALIP
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:9901@$ASTERISKIP:52060>
Content-Length: 0


<------------>

<--- Transmitting (NAT) to $EXTERNALIP:52222 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP $INTERNALIP:52060;branch=z9hG4bK2ec340df;received=$EXTERNALIP
From: <sip:9901@$ASTERISKSERVER>;tag=0023049c12a90003112556d1-9c4e139b
To: <sip:9901@$ASTERISKSERVER>;tag=as0b45803f
Call-ID: 0023049c-12a90002-cd93fca6-bf2fefc1@$INTERNALIP
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="570ff43a"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '0023049c-12a90002-cd93fca6-bf2fefc1@$INTERNALIP' in 32000 ms (Method: REGISTER)
offsite01*CLI>