I’m stuck on what I think is a registration issue with an Asterisk<->MiTel setup that I’m working on for a client at the moment and could use some help.
This is an Asterisk 11 install on Ubuntu 14.04 talking to a MiTel 3300. The Asterisk Server is able to register & authenticate successfully to the MiTel, but all my calls are getting a “404 - Not Found” response.
Connected to Asterisk 11.7.0~dfsg-1ubuntu1 currently running on astsrvr (pid = 23571)
astsrvr*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status Description
1234 10.123.45.67 5060 OK (21 ms)
1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
astsrvr*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
10.123.45.67:5060 N 1234 285 Registered Mon, 26 Jan 2015 00:40:50
1 SIP registrations.
astsrvr*CLI>
I am able to place calls through the MiTel using the same username,extension,secret, etc. from X-Lite with the “Register with Domain” box checked. (If I uncheck that, I get a 404 error again).
X-Lite includes the proper Auth header in the INVITE response to the 401 challenge from the MiTel, but I can’t seem to figure out how to get Asterisk to do the same thing when sending calls even though the two servers successfully complete a REGISTER conversation.
I’m kicking off the calls on the Asterisk server with a call file that looks like this:
Channel: SIP/5678@10.0.123.45
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: wakeup
Extension: 1234
via this sip.conf context:
[code]
[1234]
type=peer
regexten=1234
secret=1234
fromuser=1234
callerid=“wakeup” <1234>
host=10.0.123.45
port=5060
directomedia=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw
mailbox=1234@default
;nat=yes
nat=no
qualify=yes
registertrying=yes
context=default
register => 1234:1234@10.0.123.45
The “wakeup” context is:
[1234]
type=peer
regexten=1234
secret=1234
fromuser=1234
callerid=“wakeup” <1234>
host=10.0.123.45
port=5060
directomedia=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw
mailbox=1234@default
;nat=yes
nat=no
qualify=yes
registertrying=yes
context=default
register => 1234:1234@10.0.123.45
[wakeup]
exten => s,1,Answer()
exten => s,n,Wait(2)
exten => s,n,Playback(helloworld)
exten => s,n,Wait(2)
exten => s,n,Hangup()
Thanks for any help or hints you can provide. I feel like this should be pretty simple and I’m probably a config option or two away from getting this to work, but I’m pretty stumped right now.