<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><title></title><head><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css"> html, body {overflow-x: visible; } html { width:100%; height:100%;margin:0px; padding:0px; overflow-y: auto; overflow-x: auto; }body { font-size: 100.01%; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; background-color:transparent; overflow:show; background-image:none; margin:0px; padding:5px; }p { margin:0px; padding:0px; } body { font-size: 12px; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; background-color: #FFFFFF; } p { margin: 0; padding: 0; } blockquote { padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; } blockquote.quote { border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; } .misspelled { background: transparent url(//images.gmx.com/images/outsource/application/mailclient/com/resource/mailclient/widgets/basic/parts/maileditor/spellchecking_underline--2059579451-2009-2.gif) repeat-x scroll center bottom; } .correct {} .unknown {} .ignored {}</style></head><body id="bodyElement" style=""> <p size="2" style="font-family: Lucida Console;"><br><br>Sorry I can not disable in my email :( <br><br><br>Hello,<br><br><br>I was trying to trigger an action (using AGI) when the recipient of a call (B number) answers his phone. (Actually the goal is to send a signal to an external server when the call starts )<br><br><br><br>I tried using M (macro call) in 'Dial' as follows :<br><br><br>exten =&gt; 1008,n,Dial(SIP/1008||L(40000:10000:5000)M(macroSendCallStart^${UNIQUEID}))<br><br><br><br>Then the macro calls the AGI :<br><br><br>[macro-macroSendCallStart]<br><br>exten =&gt; s,1,Verbose(macro-macroSendCallStart)<br>exten =&gt; s,n,Verbose(UNIQUEID ${UNIQUEID} )<br>exten =&gt; s,n,Verbose(ARG1 ${ARG1} )<br>exten =&gt; s,n,AGI(myAGI.agi,2,${ARG1},${CALLERID(num)},001)<br><br><br>The problem is that the macro is 'forked' (new UNIQUEID) and when it ends goes to _h_ extesion triggering unwanted actions..<br><br><br><br>Any idea about how to avoid going to _h_ extension when a macro ends?<br><br>Any other idea about how to trigger an AGI call when B number answers?<br><br><br>Regards,<br><br><br>Sel<br><br><br></p><div id="editor_signature"><p style="font-family: Lucida Console;" size="2"></p><p></p><p></p></div><p></p></body></html>