I’m unable to make outbound calls through the sip trunk.
Here’s the output of “sip show peers”:
Name/username Host Dyn Forcerport ACL Port Status Description
siptrunk/416xxxxxxx 208.82.xx.xx a 5060 OK (20 ms)
1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
Here’s my sip.conf:
[general]
context=incoming
allowguest=no
srvlookup=yes
allow=ulaw
allow=alaw
allow=gsm
register => 416xxxxxxx:password@broadconnect.ca
[siptrunk]
type=friend
secret=password
username=416xxxxxxx
host=broadconnect.ca
dtmfmode=auto
fromdomain=broadconnect.ca
context=incoming
qualify=yes
My call file is as follows:
Channel: SIP/siptrunk/xxxxxxxxxx
Application: Playback
Data: hello-world
Here’s the error message in asterisk log:
[Oct 17 16:44:59] VERBOSE[9983] pbx_spool.c: – Attempting call on SIP/siptrunk/xxxxxxxxxx for s@test-call:1 (Retry 1)
[Oct 17 16:44:59] VERBOSE[9983][C-00000003] netsock2.c: == Using SIP RTP CoS mark 5
[Oct 17 16:44:59] WARNING[9498][C-00000003] chan_sip.c: Received response: “Forbidden” from ‘“asterisk” sip:asterisk@broadconnect.ca;tag=as77becaed’
[Oct 17 16:44:59] NOTICE[9983] pbx_spool.c: Call failed to go through, reason (1) Hangup
[Oct 17 16:44:59] NOTICE[9983] pbx_spool.c: Queued call to SIP/siptrunk/xxxxxxxxxx expired without completion after 0 attempts
What am I missing?
Thanks for the help.