OK I fond out something else....
With my dialplan:
exten => _X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(SIP/${EXTEN}@gafachi,30,Tto)
exten => _X.,3,Dial(SIP/${EXTEN}@vicidial,,Tto)
exten => _X.,4,Hangup
If I switch the 2nd and 3rd steps, and proceed to vicidial.php, it then manages to ring the extension. This means that the trunking is working just fine. However, just as the earlier problem, this time after the call is answered on the extension, step 3 does not go. The phone number in the list is not dialed at all.....
Also, in CLI, I can see that the conference is being created, and I'm getting an exited non-zero message in cli ( == Spawn extension (default, 8600052, 1) exited non-zero on 'Local/8600052@default-2152,2'):
If someone can help please let me know....I've already delayed the project for too long because of this problem. any help is much appreciated.
thanks
-- Executing MeetMe("Local/8600052@default-2152,2", "8600052") in new stack
== Parsing '/etc/asterisk/meetme.conf': Found
> Channel Local/8600052@default-2152,1 was answered.
-- Executing Dial("Local/8600052@default-2152,1", "SIP/500@vicidial") in new stack
-- Called 500@vicidial
-- Created MeetMe conference 1023 for conference '8600052'
-- Playing 'conf-onlyperson' (language 'en')
-- SIP/vicidial-09b75eb8 answered Local/8600052@default-2152,1
== Spawn extension (default, 17327636594, 1) exited non-zero on 'Local/8600052@default-2152,1'
-- Executing DeadAGI("Local/8600052@default-2152,1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing DeadAGI("Local/8600052@default-2152,1", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----33-----33)") in new stack
-- AGI Script
agi://127.0.0.1:4577/VD_hangup--HVcause ... -33-----33) completed, returning 0
-- Hungup 'Zap/pseudo-268047477'
== Spawn extension (default, 8600052, 1) exited non-zero on 'Local/8600052@default-2152,2'
-- Executing DeadAGI("Local/8600052@default-2152,2", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing DeadAGI("Local/8600052@default-2152,2", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----0---------------)") in new stack
-- AGI Script
agi://127.0.0.1:4577/VD_hangup--HVcause ... ----------) completed, returning 0