[Asterisk-Users] A room full of Cisco 7960s behind NAT

Ed Greenberg edg at greenberg.org
Tue Feb 28 15:29:54 MST 2006


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:3115552368 at 64.169.xx.yyy: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:8115552368 at ev01b.networkpts.com' 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
 



More information about the asterisk-users mailing list