Run script on hangup monitored call.

skiller

Joined
Mar 21, 2011
Messages
22
Likes
0
Points
0
#1
¡Hola!

No puedo entender 'dial plan' sin misma hierba que los programadores fumaron cuando crearon este producto bueno.
¿Donde buscar? :blink: ;)

I need to run some script just after hung up the incoming call. This script should get CallerID, DID, agent number, queue number and recorded call audio file. Is there ready hooks or entries to add custom script (AGI or any other) into dialplan?

¿Hay una entrada preparada para lanzar mi programa después la llamada termina? Hay que obtener CID, DID, agent#, turno# y file de sonido.
 

fmvillares

Joined
Sep 8, 2007
Messages
1,785
Likes
0
Points
0
#2
h reserved extension (hang up) lets you to have post processnig of calls...agis etc also u could be monitoring events with asterisk manager interface....
 

skiller

Joined
Mar 21, 2011
Messages
22
Likes
0
Points
0
#3
Hmmm...
How to enter my code to execute it ONCE AFTER the call. macro-hangup-* is executes many times for a call. I need to execute it once and with parameters or environment of DID, CID etc...
 

fmvillares

Joined
Sep 8, 2007
Messages
1,785
Likes
0
Points
0
#4
sorry but the hangup is executed only once per channel....maybe you re confusing with many actions taking place at the same time...or some other macros coming and going...
 

skiller

Joined
Mar 21, 2011
Messages
22
Likes
0
Points
0
#5
May be is possible to catch the moment I need?
How to obtain environment? Sorry... For example, I put agi call into macro-hungup-custom which executed after each channel hung up. How to obtain did, cid, etc at this point? Using this info I can decide which call is terminated and do what I need...
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,898
Messages
130,879
Members
17,560
Latest member
manuelc
Top