No, I'm fairly sure it's M(). I've written macros using it before.

"M(x[^arg]) - Execute the Macro for the *called* channel _before_
connecting to the calling channel. Arguments can be specified to the
Macro using '^' as a delimeter. The Macro can set the variable
MACRO_RESULT to specify the following actions after the Macro is
finished executing."


On 2/22/07, Jim Van Meggelen <[EMAIL PROTECTED]> wrote:
Use G() instead of M()

Jim

> -----Original Message-----
> From: John Oladehinde [mailto:[EMAIL PROTECTED]
> Sent: February 22, 2007 10:57 PM
> To: [email protected]
> Subject: [on-asterisk] Pausing execution of Macro until...
>
> Hello,
>
> Is there any way to pause the execution of a macro until the
> called line is answered or a predetermined time limit has expired?
> This example code below dials the SIP/16 line for 60 seconds
> but the macro-screen is executed almost immediately.  So when
> the line is actually picked up most of the macro has been
> executed already.  But if the Wait time is increased then you
> have a long pause if the called line does pick up quickly.
> Any suggestions would be appreciated
>
>
> exten => 890,n,Dial(SIP/16|60|gM(screen^${SCREEN_FILE}))
>
> [macro-screen]
> exten => s,1,Wait(0.2)
> exten => s,n,Playback(screen-from)
> exten => s,n,Playback(${ARG1})
> exten => s,n,Read(ACCEPT|screen-accept|1)
>
>
> John.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.412 / Virus Database: 268.18.3/696 - Release
> Date: 21/02/2007
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
| It ain't what you don't know that gets you into trouble. It's what
| you know for sure that just ain't so.   -- Mark Twain
|
| The Toronto Asterisk Users Group
| Join the discussion group by visiting http://taug.ca

Reply via email to