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.

Reply via email to