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
> 

Reply via email to