My Cisco 7905 can't register with Asterisk (1.0.7-BRIstuffed-0.2.0-RC7k 
on Debian stable).  It could, however, register with another 
installation of Asterisk and the settings on the phone (apart from the 
SIP proxy address) haven't changed since then.
On the new Asterisk box my sip.conf contains this:
[jeremy]
type=friend
regexten=801
allow=g729
host=dynamic
secret=PASSWORD
nat=yes
qualify=yes
canreinvite=no
callerid="Jeremy Malcolm" <9213 0801>
mailbox=1000
sip show peers shows this:
jeremy    (Unspecified)    D   N      255.255.255.255  0        UNKNOWN
sip debug shows this:
Sip read:
REGISTER sip:tardis.malcolm.id.au SIP/2.0
Via: SIP/2.0/UDP 192.168.0.104:5060
From: sip:jeremy@tardis.malcolm.id.au;tag=1655991738
To: sip:jeremy@tardis.malcolm.id.au
Call-ID: 3098322049@192.168.0.104
CSeq: 1 REGISTER
Contact: Jeremy Malcolm 
<sip:jeremy@192.168.0.104:5060;transport=udp>;expires=3600
User-Agent: Cisco-CP7905/1.01-030807A
Allow: ACK, BYE, CANCEL, INVITE, NOTIFY, OPTIONS, REFER, REGISTER
Content-Length: 0
10 headers, 0 lines
Using latest request as basis request
Sending to 192.168.0.104 : 5060 (NAT)
Transmitting (NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.104:5060;received=220.238.97.78;rport=50048
From: sip:jeremy@tardis.malcolm.id.au;tag=1655991738
To: sip:jeremy@tardis.malcolm.id.au;tag=as779edf52
Call-ID: 3098322049@192.168.0.104
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:jeremy@203.25.143.177>
Content-Length: 0
  to 220.238.97.78:50048
Transmitting (NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.104:5060;received=220.238.97.78;rport=50048
From: sip:jeremy@tardis.malcolm.id.au;tag=1655991738
To: sip:jeremy@tardis.malcolm.id.au;tag=as779edf52
Call-ID: 3098322049@192.168.0.104
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:jeremy@203.25.143.177>
WWW-Authenticate: Digest realm="asterisk", nonce="52e7665f"
Content-Length: 0
  to 220.238.97.78:50048
Scheduling destruction of call '3098322049@192.168.0.104' in 15000 ms
Can anyone offer any advice?
TIA
-- 
JEREMY MALCOLM <Jeremy@Malcolm.id.au> - lawyer, IT consultant and actor.
Internet and Open Source specialist. Web site: http://www.malcolm.id.au.
host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org |awk '{print substr($7,6)}'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3256 bytes
Desc: S/MIME Cryptographic Signature
Url :
http://lists.digium.com/pipermail/asterisk-users/attachments/20060219/0bd94594/smime.bin
>My Cisco 7905 can't register with Asterisk (1.0.7-BRIstuffed-0.2.0-RC7k >on Debian stable). It could, however, register with another >installation of Asterisk and the settings on the phone (apart from the >SIP proxy address) haven't changed since then. > >... > >Can anyone offer any advice? > >TIA > >-- >JEREMY MALCOLM <Jeremy@Malcolm.id.au> - lawyer, IT consultant and actor. >Internet and Open Source specialist. Web site: http://www.malcolm.id.au. >host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org |awk '{print substr($7,6)}'I was having this very problem last week; perhaps you've got the same issue. You should make sure if you're behind NAT that your SIPDefault.cnf has the 2 NAT settings enabled. I didn't figure it out right away, because I was focusing on the 401 unauthorized message, which doesn't really indicate a NAT problem. I can't remember what the 2 settings are offhand, but they're in the documentation. Michael Newton
Mike Newton wrote:>>My Cisco 7905 can't register with Asterisk (1.0.7-BRIstuffed-0.2.0-RC7k >>on Debian stable). It could, however, register with another >>installation of Asterisk and the settings on the phone (apart from the >>SIP proxy address) haven't changed since then. > > I was having this very problem last week; perhaps you've got the same issue. > You should make sure if you're behind NAT that your SIPDefault.cnf has the 2 > NAT settings enabled. I didn't figure it out right away, because I was > focusing on the 401 unauthorized message, which doesn't really indicate a > NAT problem. I can't remember what the 2 settings are offhand, but they're > in the documentation.I should be able to do this using the Web interface too, right, if I disable TFTP downloading of the configuration? We have: UID jeremy PWD SECRET Proxy tardis.malcolm.id.au AltProxyTimeOut 0 UseLoginID 1 LoginID jeremy SIPRegInterval 3600 MaxRedirect 5 SIPRegOn 1 NATIP 0.0.0.0 SIPPort 5060 MediaPort 16384 OutBoundProxy 0 NatServer 0 NatTimer 0x00000000 DialPlan *St4-|#St4-|911|1>#t8.r9t2-|0>#t811.rat4-|^1t4>#.- IPDialPlan 1 But these are the same settings it had when it was registering to a different Asterisk server...? -- JEREMY MALCOLM <Jeremy@Malcolm.id.au> - lawyer, IT consultant and actor. Internet and Open Source specialist. Web site: http://www.malcolm.id.au. host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org |awk '{print substr($7,6)}' -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3256 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060219/9b91598e/smime.bin
David Ankers wrote:> Try this: > > Use login ID: 0 > Clear the Login ID Field so it's blankThanks but no, already tried that and no difference. I also tried three other different versions of Asterisk: 1.2.1, 1.2.4 and on a whim downgrading to 1.0.2, and tried the conf files from the old installation of Asterisk with which I could successfully register, none of which helped. I'm running it on a UML (User Mode Linux) machine. Would that make any difference? I still get: <-- SIP read from 220.238.251.245:50205: REGISTER sip:tardis.malcolm.id.au SIP/2.0 Via: SIP/2.0/UDP 192.168.0.104:5060 From: sip:jeremy@tardis.malcolm.id.au;tag=2558233792 To: sip:jeremy@tardis.malcolm.id.au Call-ID: 3381989487@192.168.0.104 CSeq: 1 REGISTER Contact: Jeremy Malcolm <sip:jeremy@192.168.0.104:5060;transport=udp>;expires=3600 User-Agent: Cisco-CP7905/1.01-030807A Allow: ACK, BYE, CANCEL, INVITE, NOTIFY, OPTIONS, REFER, REGISTER Content-Length: 0 --- (10 headers 0 lines)--- Using latest REGISTER request as basis request Sending to 192.168.0.104 : 5060 (NAT) Transmitting (NAT) to 220.238.251.245:50205: SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.0.104:5060;received=220.238.251.245 From: sip:jeremy@tardis.malcolm.id.au;tag=2558233792 To: sip:jeremy@tardis.malcolm.id.au Call-ID: 3381989487@192.168.0.104 CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Max-Forwards: 70 Contact: <sip:jeremy@203.25.143.179> Content-Length: 0 --- Transmitting (NAT) to 220.238.251.245:50205: SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.0.104:5060;received=220.238.251.245 From: sip:jeremy@tardis.malcolm.id.au;tag=2558233792 To: sip:jeremy@tardis.malcolm.id.au;tag=as34ca76e7 Call-ID: 3381989487@192.168.0.104 CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Max-Forwards: 70 Contact: <sip:jeremy@203.25.143.179> WWW-Authenticate: Digest realm="malcolm.id.au", nonce="2bfd861a" Content-Length: 0 TIA -- JEREMY MALCOLM <Jeremy@Malcolm.id.au> - lawyer, IT consultant and actor. Internet and Open Source specialist. Web site: http://www.malcolm.id.au. host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org |awk '{print substr($7,6)}' -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3256 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060219/74de9a76/smime.bin
Apparently Analagous Threads
- Unable to load module chan_zap.so
- asterisk-addons compilation "error: dereferencing pointer to incomplete type"
- app_rxfax produces "RTP: Received packet with bad UDP checksum"
- RFC: Constructing StringRefs at compile time
- should `data` respect default.stringsAsFactors()?