freepbx 2.5.2 and Asterisk 1.6.0.15 here, new setup trying to add Callcentric DID and coming up short.
I’m not sure exactly where it’s failing, if it’s my end or callcentric’s.
Used this page:
To set up my trunk.
Outgoing Settings:
Trunk Name: callcentric
PEER Details:
username=1777xxxxxxx
type=peer
secret=PASSWORD
qualify=yes
nat=no
insecure=very
host=callcentric.com
fromuser=1777xxxxxxx
fromdomain=callcentric.com
dtmfmode=rfc2833
disallow=all
context=custom-get-did-from-sip
canreinvite=yes
allow=ulaw
Register String:
1777xxxxxxx:[email protected]/1777xxxxxxx
Also have some dial rules in there. Everything else is blank or default.
This works for outbound with an outbound route I have.
In /etc/asterisk/extensions_custom.conf I have:
[custom-get-did-from-sip]
exten => _.,1,Goto(from-trunk,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)
Then in Inbound Routes
Description: Callcentric DID
DID Number: 1513xxxxxxx (my DID)
Signal Ringing: On (I’ve tried this both ways)
Destination: Doesn’t matter, right now it’s set to voicemail for extension 502.
What happens is, watching asterisk logs I make an incoming call to my DID. I see it trigger, I see the correct DID in the logs, I see it routing how I have it set, voicemail, ringing an extension whatever.
When I set it to ring an extension (a copy of X-Lite Beta) it rings. I answer. The dialing phone keeps on ringing.
When I set it to voicemail the logs show:
-- <SIP/callcentric-b67045b0> Playing 'vm-theperson.gsm' (language 'en')
-- <SIP/callcentric-b67045b0> Playing 'digits/5.gsm' (language 'en')
-- <SIP/callcentric-b67045b0> Playing 'digits/0.gsm' (language 'en')
-- <SIP/callcentric-b67045b0> Playing 'digits/2.gsm' (language 'en')
-- <SIP/callcentric-b67045b0> Playing 'vm-isonphone.gsm' (language 'en')
but the dialing phone keeps on ringing. Immediately after that bit of log I get:
== Spawn extension (macro-vm, s-BUSY, 3) exited non-zero on ‘SIP/callcentric-b67045b0’ in macro ‘vm’
== Spawn extension (ext-local, vmb502, 1) exited non-zero on ‘SIP/callcentric-b67045b0’
I’m stumped. No matter what I do the dialing phone never hears an answer, and just keeps ringing.
Where the heck do I even start?