[Asterisk-Users] registration failure

Sean Cheesman scheesman at macarthur-group.com
Tue Apr 6 14:55:08 MST 2004


looks like a problem with your extensions.conf.  You need to have all of
the exten=>200x lines in the [from-sip] context.  Right now you have
each one in it's own [200x] context.  Try this:

[from-sip]
exten => 2000,1,Dial(SIP/2000,20)
exten => 2001,1,Dial(SIP/2001,20)
exten => 2002,1,Dial(SIP/2002,20)

-----Original Message-----
From: Roger [mailto:grunky at rockriver.net] 
Sent: Tuesday, April 06, 2004 3:20 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] registration failure


I feel I'm on the verge of setting up a pbx for handling internal calls 
only...

The last problem - I think - I've run into is w/ the phone registration

running

asterisk -vvvc

I get a bunch of messages looking like so

Apr  6 14:46:05 NOTICE[1116957488]: chan_sip.c:5623 handle_request: 
Registration from 'sip:2001 at 192.168.22.254' failed for '192.168.22.1'
Apr  6 14:46:34 NOTICE[1116957488]: chan_sip.c:5623 handle_request: 
Registration from 'sip:2001 at 192.168.22.254' failed for '192.168.22.2'
Apr  6 14:46:50 NOTICE[1116957488]: chan_sip.c:5623 handle_request: 
Registration from 'sip:2000 at 192.168.22.254' failed for '192.168.22.1'

The ips in the 22.1 and 22.2 are 2 Cisco 7940 phones running SIP image 
6.3. The host 22.254 is the dhcp/tftp server/asterisk box

When I attempt to dial extension 2000 from ext 2001 I get the
following...

Apr  6 14:51:57 NOTICE[1116957488]: chan_sip.c:5337 handle_request: 
Failed to authenticate user "2001" 
<sip:2001 at 192.168.22.254>;tag=000a8a490a3d00056f69e7bc-18df5ff6
Apr  6 14:52:04 WARNING[1116957488]: chan_sip.c:497 retrans_pkt: Maximum

retries exceeded on call 
000a8a49-0a3d0006-037076d3-3bb34592 at 192.168.22.2 for seqno 102
(Response)



sip.conf
------------------------
[general]

port = 5060           ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0      ; Address to bind to (all addresses on machine)
;bindaddr = 192.168.22.254    ; Address to bind to (all addresses on 
machine)
allow=all             ; Allow all codecs
context = bogon-calls ; Send SIP callers that we don't know about here

[2000]
type=friend           ; This device takes and makes calls
username=2000         ; Username on device
secret=cisco            ; Password for device
;host=192.168.22.1   ; This host is not on the same IP addr every time
host=dynamic
context=from-sip      ; Inbound calls from this host go here
mailbox=100           ; Activate the message waiting light if this
                      ; voicemailbox has messages in it

[2001]                ; Duplicate of 2000, except with different auth
data
type=friend
username=2001
secret=cisco
host=dynamic
;host=192.168.22.2
context=from-sip
mailbox=101

[2002]                ; Duplicate of 2000, except with different auth
data
type=friend
username=2002
secret=cisco
;host=192.168.22.3
host=dynamic
context=from-sip
mailbox=102


extensions.conf
[2000]
exten => 2000,1,Dial(SIP/2000,20)
[2001]
exten => 2001,1,Dial(SIP/2001,20)
[2002]
exten => 2002,1,Dial(SIP/2002,20)


*CLI> sip show users
Username         Secret           Authen           Def.Context      A/C
2002             cisco            md5,plaintext    from-sip         No
2001             cisco            md5,plaintext    from-sip         No
2000             cisco            md5,plaintext    from-sip         No

*CLI> sip show peers
Name/username    Host                 Mask             Port     Status
2002/2002        (Unspecified)   (D)  255.255.255.255  0
Unmonitored
2001/2001        (Unspecified)   (D)  255.255.255.255  0
Unmonitored
2000/2000        (Unspecified)   (D)  255.255.255.255  0
Unmonitored

And from the SIP<mac>.cnf

I have

####### New Parameters added in Release 3.0 ######

# Phone Prompt (The prompt that will be displayed on console and telnet)
phone_prompt:   "SIP Phone"      ; Limited to 15 characters (Default - 
SIP Phone)

# Phone Password (Password to be used for console or telnet login)
phone_password: "cisco" ; Limited to 31 characters (Default - cisco)

# User classifcation used when Registering [ none(default), phone, ip ]
user_info: 2001

I really really I'm close - just stuck on this last problem. 

Any suggestions would be appreciated.
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list