file : extensions_custom.conf
[pgv-out-common]
exten => _X.,1,NoOp(*1*)
exten => _X.,n,System(gvoice -b -e ${ACCTUSER} -p ${ACCTPASS} call ${EXTEN} ${RINGBACK} 1)
exten => _X.,n,NoOp(*2*)
The above snippet repeatedly fails when the system is first booted or following a reboot:
-- Executing [15622620000@pgv-out-common:1] NoOp("Local/15622620000@pgv-out-norwalk-00000000;2", "*1*") in new stack
-- Executing [15622620000@pgv-out-common:2] System("Local/15622620000@pgv-out-norwalk-00000000;2", "gvoice -b -e [email protected] -p password call 15622620000 16313809999 1") in new stack
== Spawn extension (pgv-out-common, 15622620000, 2) exited non-zero on 'Local/15622620000@pgv-out-norwalk-00000000;2'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:31] NoOp("SIP/10-00000000", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack
Following an "amportal restart", the same snippet then reliably executes until the next boot/reboot:
-- Executing [15622620000@pgv-out-common:1] NoOp("Local/15622620000@pgv-out-norwalk-00000001;2", "*1*") in new stack
-- Executing [15622620000@pgv-out-common:2] System("Local/15622620000@pgv-out-norwalk-00000001;2", "gvoice -b -e [email protected] -p password call 15622620000 16313809999 1") in new stack
-- Executing [15622620000@pgv-out-common:3] NoOp("Local/15622620000@pgv-out-norwalk-00000001;2", "*2*") in new stack
I don't know if it's related, but there is also an anomaly with "amportal restart":
root@incrediblepbx:~# amportal restart
Please wait...
STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...
Asterisk Stopped
SETTING FILE PERMISSIONS
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed
STARTING ASTERISK
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Asterisk Started
root@incrediblepbx:~#
The same snippet executes 100% reliably without requiring an "amportal restart" following a boot/reboot with RasPBX/IncrediblePBX 4.11.4.
There is also no "Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)" with RasPBX/IncrediblePBX 4.11.4.
[pgv-out-common]
exten => _X.,1,NoOp(*1*)
exten => _X.,n,System(gvoice -b -e ${ACCTUSER} -p ${ACCTPASS} call ${EXTEN} ${RINGBACK} 1)
exten => _X.,n,NoOp(*2*)
The above snippet repeatedly fails when the system is first booted or following a reboot:
-- Executing [15622620000@pgv-out-common:1] NoOp("Local/15622620000@pgv-out-norwalk-00000000;2", "*1*") in new stack
-- Executing [15622620000@pgv-out-common:2] System("Local/15622620000@pgv-out-norwalk-00000000;2", "gvoice -b -e [email protected] -p password call 15622620000 16313809999 1") in new stack
== Spawn extension (pgv-out-common, 15622620000, 2) exited non-zero on 'Local/15622620000@pgv-out-norwalk-00000000;2'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:31] NoOp("SIP/10-00000000", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack
Following an "amportal restart", the same snippet then reliably executes until the next boot/reboot:
-- Executing [15622620000@pgv-out-common:1] NoOp("Local/15622620000@pgv-out-norwalk-00000001;2", "*1*") in new stack
-- Executing [15622620000@pgv-out-common:2] System("Local/15622620000@pgv-out-norwalk-00000001;2", "gvoice -b -e [email protected] -p password call 15622620000 16313809999 1") in new stack
-- Executing [15622620000@pgv-out-common:3] NoOp("Local/15622620000@pgv-out-norwalk-00000001;2", "*2*") in new stack
I don't know if it's related, but there is also an anomaly with "amportal restart":
root@incrediblepbx:~# amportal restart
Please wait...
STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully...
Asterisk Stopped
SETTING FILE PERMISSIONS
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed
STARTING ASTERISK
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Asterisk Started
root@incrediblepbx:~#
The same snippet executes 100% reliably without requiring an "amportal restart" following a boot/reboot with RasPBX/IncrediblePBX 4.11.4.
There is also no "Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)" with RasPBX/IncrediblePBX 4.11.4.