Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17351

Running an agi script using the H template does not work in the context

$
0
0

Hello everyone, I have a problem, and I don’t even know where to dig it up, please help :slight_smile:

I have a task:

Send data to the AGI script when the conversation started and when it ended. This must be done for both incoming and outgoing calls.

By trial and error, I managed to make the script work when there was an incoming call. But I absolutely do not understand the logic of how contexts work and the order in which scripts are executed in Asterix.

So the question is what needs to be corrected in my configuration for the connection to work, or please tell me what is my mistake

I have a bundle of Twilio - My asterisk - phones connected to my asterisk.

My file extensions_custom.conf

[ext-did]
exten => s,1,Set(EVENT_NAME=incoming_call)
same => n,AGI(crm.php,${EVENT_NAME})

exten => h,1,Set(EVENT_NAME=incoming_end_call)
same => n,AGI(crm.php,${EVENT_NAME})

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 17351

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>