Try nat=yes and qualify=yes in sip.conf.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ed
Greenberg
Sent: Tuesday, February 28, 2006 3:30 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] A room full of Cisco 7960s behind NAT

I need to set up an office full of Cisco 7960 phones behind NAT with the

server out in Colo.

The first test phone registers fine, but the second one does not
register.



The first phone's registration looks like so:
/SIP/Registry/3115552368
        
:64.169.xx.yyy:38836:3600:3115552368:sip:[EMAIL PROTECTED]:5060

When the second phone tries to register, it gets back a 404 not found.
Not 
a 401, Authentication Required.

The error in the full log is:Feb 28 14:26:27 NOTICE[4888] chan_sip.c: 
Registration from 'sip:[EMAIL PROTECTED]' failed
 for '64.169.xx.yyy' - Username/auth name mismatch

What's the right way to do this. Shown below are my configuration files:

</edg>

-----SIPDefault and SIPMacAddr -----

image_version: P0S3-07-4-00
tftp_cfg_dir: ""                ; Example:  ./sip_phone/
proxy_register: 1
timer_register_expires: 3600
dial_template: dialplan
messages_uri: 3688
telnet_level: 2
phone_label: "Nat One"
line1_name: 3115552368
line1_shortname: 3115552368
line1_authname: 3115552368
line1_password: 3115552368
line1_displayname: "Nat One"
logo_url: "http://192.168.1.45/pts.bmp";
nat_address: 64.169.xx.xxx
nat_enable: 1
nat_received_processing: 1
proxy1_address: myserver.outthere.com

My NatTwo phone is similar. The only difference is the name/password
using 
8115552368.

----sip.conf-------------
[3115552368]
type=friend
host=dynamic
username=3115552368
secret=3115552368
nat=1
context=wholesale9
disallow=all
allow=ulaw
accountcode=testing
canreinvite=no

[8115552368]
type=friend
host=dynamic
username=8115552368
secret=8115552368
nat=1
context=wholesale9
disallow=all
allow=ulaw
accountcode=testing
canreinvite=no
 
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to