i am using "Webhook Integration via System Calls in Asterisk Dialplan"
1- i redirect inbound to custom destination that has a target (exten-webhook,_X.,1)
2- i set exten-webhook in extensions_custom.conf as in the img
3- everything works well, but the queue is not working, it goes to the wrong queue (i guess) although it calls the 2 agents but the agents do not receive it also I set an announcement but it does not play at all, knowing that I only have one queue 500 (created by …
I want to get the extension on who picks up the call and then sends cruel requests using this method, I get all the info except BRIDGEPEER or QUEUE_MEMBER
my final aim is to get the info in the end of call then send curl request
[exten-webhook]
exten => s,1,NoOp(*** Start Call to Queue 500 ***)
same => n,Queue(500,tT)
same => n,Hangup()
exten => h,1,NoOp(*** Call Ended ***)
same => n,Set(DURATION=${CDR(duration)})
same => n,Set(ANSWERED_BY=${CUT(BRIDGEPEER,/,2)})
same => n,Set(ANSWERED_BY_2=${IF($["${QUEUE_MEMBER}" != ""]?${QUEUE_MEMBER}:None)})
same => n,Set(STATUS=${CDR(disposition)})
same => n,System(curl "http://192.168.100.31:8000/test?caller=${WEBHOOK_ID}&answered_by=${ANSWERED_BY_2}&duration=${DURATION}&status=${STATUS}")