[HELP]: uniqueid variable in queue agent channel

Hi all,

I use third-party CRM that receive information from Asteirsk via HTTP GET requests. Key for CRM to know about request for same call - uniqueid.

For store info about answered agent in queue, I use this construction:

LogQueueAnswer - it’s macros that running after agent answers call in queue:

[macro-LogQueueAnswer] exten = s,1,System(wget "http://crm/url.php?id=${UNIQUEID}&event=answer&answerer=${MEMBERINTERFACE}")

But UNIQUEID in member channel is different with caller channel…

How I can get UNIQUEID of caller channel in this macros?

Thanks.

Variable inheritance. (wiki.asterisk.org/wiki/display/ … nce+Basics)

exten => s,n,Set(_ORIGINALUID=${UNIQUEID})
exten => s,n,Queue(${ARG1},LogQueueAnswer)
… …
[macro-LogQueueAnswer]
;– Use ORIGINALUID Instead of UNIQUEID in System --;
exten = s,1,System(wget “http://crm/url.php?id=${ORIGINALUID}&event=answer&answerer=${MEMBERINTERFACE}”)

–Satish Barot
Ahmedabad, India
+919978599700

Many thanks! It works :smile: