I’ve set up a FreePBX instance, and I’m testing it with the SIPStation trunk free trial.
I am able to connect SIP phones to it and they seem to register correctly.
I am able to successfully call a SIP phone from the PSTN, so inbound calling is working.
But I am not able to make outbound calls. I am getting an “All circuits are busy” message when I try to call from a SIP phone.
There isn’t much in /var/log/asterisk/full, but /var/log/asterisk/core-fastagi_out.log shows some errors (below).
Any suggestions on how to debug this?
2020-10-14 00:19 +00:00: [54532] Asterisk connection opened
[54532] Launching ./sangomacrm.agi with args:
2020-10-14 00:19 +00:00: [54532][1602634767.9] >>> agi_network: yes
[54532][1602634767.9] >>> agi_network_script: sangomacrm.agi
[54532][1602634767.9] >>> agi_request: agi
[54532][1602634767.9] >>> agi_channel: PJSIP/3-00000003
[54532][1602634767.9] >>> agi_language: en
[54532][1602634767.9] >>> agi_type: PJSIP
[54532][1602634767.9] >>> agi_uniqueid: 1602634767.9
[54532][1602634767.9] >>> agi_version: 16.11.1
[54532][1602634767.9] >>> agi_callerid: 6666
[54532][1602634767.9] >>> agi_calleridname: unknown
[54532][1602634767.9] >>> agi_callingpres: 0
[54532][1602634767.9] >>> agi_callingani2: 0
[54532][1602634767.9] >>> agi_callington: 0
[54532][1602634767.9] >>> agi_callingtns: 0
[54532][1602634767.9] >>> agi_dnid: 16502454652
[54532][1602634767.9] >>> agi_rdnis: unknown
[54532][1602634767.9] >>> agi_context: macro-dialout-trunk
[54532][1602634767.9] >>> agi_extension: s
[54532][1602634767.9] >>> agi_priority: 24
[54532][1602634767.9] >>> agi_enhanced: 0.0
[54532][1602634767.9] >>> agi_accountcode:
[54532][1602634767.9] >>> agi_threadid: 140682880235264
[54532][1602634767.9] >>> agi_ASTAGIDIR: /var/lib/asterisk/agi-bin
[54532][1602634767.9] >>> agi_port: 54532
[54532][1602634767.9] >>>
2020-10-14 00:19 +00:00: [54532][1602634767.9] >>> {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}
2020-10-14 00:19 +00:00: [54532] Script ended with code 1 and signal null
2020-10-14 00:19 +00:00: [54532][1602634767.9] >>TRIED TO SEND TO DEAD AGI>> HANGUP
2020-10-14 00:19 +00:00: [54532] Asterisk connection closed
2020-10-14 00:19 +00:00: [54540] Asterisk connection opened
2020-10-14 00:19 +00:00: [54540] Launching ./sangomacrm.agi with args:
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_network: yes
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_network_script: sangomacrm.agi
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_request: agi
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_channel: PJSIP/3-00000003
[54540][1602634767.9] >>> agi_language: en
[54540][1602634767.9] >>> agi_type: PJSIP
[54540][1602634767.9] >>> agi_uniqueid: 1602634767.9
[54540][1602634767.9] >>> agi_version: 16.11.1
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_callerid: 3
[54540][1602634767.9] >>> agi_calleridname: unknown
[54540][1602634767.9] >>> agi_callingpres: 0
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_callingani2: 0
[54540][1602634767.9] >>> agi_callington: 0
[54540][1602634767.9] >>> agi_callingtns: 0
[54540][1602634767.9] >>> agi_dnid: 16502454652
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_rdnis: unknown
[54540][1602634767.9] >>> agi_context: crm-hangup
[54540][1602634767.9] >>> agi_extension: s
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_priority: 7
[54540][1602634767.9] >>> agi_enhanced: 0.0
[54540][1602634767.9] >>> agi_accountcode:
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_threadid: 140682880235264
[54540][1602634767.9] >>> agi_ASTAGIDIR: /var/lib/asterisk/agi-bin
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> agi_port: 54540
[54540][1602634767.9] >>>
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>> {“code”:“ECONNRESET”,“errno”:“ECONNRESET”,“syscall”:“read”}
2020-10-14 00:19 +00:00: [54540] Script ended with code 1 and signal null
2020-10-14 00:19 +00:00: [54540][1602634767.9] >>TRIED TO SEND TO DEAD AGI>> HANGUP
2020-10-14 00:19 +00:00: [54540] Asterisk connection closed