[asterisk-dev] Need to run an AGI from dialplan only upon call hold

uma udupi umaudupi at yahoo.com
Tue Aug 28 07:15:50 CDT 2012


Hello

I need help on this one. Could anyone suggest what can be done to trigger "something" upon HOLD? I hope this is the right mailling list for this topic. If not please let me know where can I take this.


Thanks,
Uma



________________________________
 From: uma udupi <umaudupi at yahoo.com>
To: "asterisk-dev at lists.digium.com" <asterisk-dev at lists.digium.com> 
Sent: Monday, August 27, 2012 12:53 PM
Subject: [asterisk-dev] Need to run an AGI from dialplan only upon call hold
 

Hi there,

I'm new to Asterisk. I need to call (from dialplan) a 
macro or a gosub or an AGI upon one of the connected party in a bridged 
call (on sip trunk) puts the call on HOLD. Anyhelp greatly appreciated

PS:
 I looked into app_dial.c if I can capture AST_CONTROL_HOLD event, and 
call a macro, however once ast_bridge_call() is called, Dial app does 
not get mid-call events on the call (like 
AST_CONTROL_HOLD/AST_CONTROL_UNHOLD)

I also tried to use frame_trigger.c but it didn't work too. I understand this is not a good approach.

Thanks,
Uma
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120828/80afa2bb/attachment-0001.htm>


More information about the asterisk-dev mailing list