[Asterisk-Users] registration failure
Roger
grunky at rockriver.net
Tue Apr 6 14:51:50 MST 2004
> 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
Ok, 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?
More information about the asterisk-users
mailing list