Failed extension is not working with FreePBX

Dear Team,

I have an Asterisk server (Version 13 ) running with php calling.
When am using the php and AMI to call to call the customers and when the customers pick the call is not executing the S extension
When the customer not picking the call its executing the failed extension from my dialplan.

Below is the AMI action which sending from php script;
Action: Originate
CallerID:Mynooooo
Channel: Dahdi/g0/customer number
Context: mycontext
Exten: s
Priority: 1

Below is sample dialplan:

[mycontext]
exten => s,1,answer()
exten => s,n,Set(failed=0)
exten => s,n,AGI(my.agi,${CDR(start)},${CDR(answer)})
exten => s,n,hangup

exten => h,1,NoO(call ends)
exten => failed,1,Set(failed=1)

This is was working fine with out any issue until i installed the PBX. When i have installed the freepbx along with asterisk server , The calls which are failed is not coming to failed extension.

Any suggestion how i can resolve . ?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.