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@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@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@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@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@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.
Comment out bindaddr. That did it for me. Something to do with SIP and DNS resolution, which is a problem if your PBX is on a private network and has no DNS entry.... HTH, Chris. On Tue, 6 Apr 2004, Roger wrote:> 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@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@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@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@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@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@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 >-- chris maresca senior partner - www.olliancegroup.com linux, up 1 days
> 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=102Ok, I figured out the problem w/ registration - wrong username and password on my part. The password and username the phone sends is setup in the SIP<mac>.conf file. Now I've registered the phones properly. Weee! Now I have another problem. I pickup, I can dial 2002 from 2001, handset rings, the phone 2002 does not, then I get this... -- Executing Dial("SIP/2001-d312", "SIP/2002|30|tr") in new stack -- Called 2002 -- Got SIP response 488 "Not Acceptable Here" back from 192.168.22.3 == No one is available to answer at this time Apr 6 16:04:52 WARNING[1200884528]: pbx.c:1836 ast_pbx_run: Timeout, but no rule 't' in context 'office' -- Executing Hangup("SIP/2001-d312", "") in new stack == Spawn extension (office, h, 1) exited non-zero on 'SIP/2001-d312' So I'm now looking at how to correct a "error 488". Office is now the context in extensions.conf [office] include => 2000 include => 2001 include => 2002 exten => h,1,Hangup [2000] exten => 2000,1,Dial(SIP/2000,30,tr) [2001] exten => 2001,1,Dial(SIP/2001,30,tr) [2002] exten => 2002,1,Dial(SIP/2002,30,tr) 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=office ; 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=office 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=office mailbox=102 I've poked around looking in various conf files and havn't found anything that really stands out as to what is blocking calls from said context. Also if its a astericks problem or a phone problem Any suggestions?
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@rockriver.net] Sent: Tuesday, April 06, 2004 3:20 PM To: asterisk-users@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@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@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@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@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@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@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
You need these entries in your SIP<mac-address>.cnf files # SIP Configuration Phone Specific File # Line 1 appearance line1_name: 2000 # Line 1 Registration Authentication line1_authname: "2000" # Line 1 Registration Password line1_password: "cisco" And make sure this is in your SIPDefault.cnf # Proxy Registration (0-disable (default), 1-enable) proxy_register: 1 Simon Brown -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Roger Sent: Wednesday, 7 April 2004 6:20 To: asterisk-users@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@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@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@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@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@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@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 ----- This mail was content checked for malicious code and viruses by GFI MailSecurity.
Simon Brown wrote:>You need these entries in your SIP<mac-address>.cnf files > ># SIP Configuration Phone Specific File ># Line 1 appearance >line1_name: 2000 ># Line 1 Registration Authentication >line1_authname: "2000" ># Line 1 Registration Password >line1_password: "cisco" > >And make sure this is in your SIPDefault.cnf ># Proxy Registration (0-disable (default), 1-enable) >proxy_register: 1 > >Simon Brown > >Thanks Simon - I evenutally figured that out. I also put the username/passwords in the SIP<mac>.cnf file. That solved the registration problem but not the 488 error. -- Rock River Internet Roger Grunkemeyer 202 W. State St, 8th Floor grunky@rockriver.net Rockford, IL 61101 815-968-3888