[Asterisk-Users] Dial Macro timeout fails
David
asterisk at startupanywhere.org
Mon Jul 3 10:55:22 MST 2006
Thanks for the response! I used your template to write a similar one for us and it
works great. I wonder if there is a bug in the macro timeout code.
David
whois wes said:
> This may sound stupid, but I had a similar issue that I solved by
> placing an Answer at the beginning of what would be your 'screen'
> macro.
>
> However, we have a call-screening macro as well, and don't have the
> Answer command at the beginning...here it is, if this helps any.
>
> [macro-announce]
> exten => s,1,Background(callfrom)
> exten => s,2,Background(${ARG1})
> exten => s,3,Read(ACCEPT|call-accept|1)
> exten => s,4,Gotoif($[${ACCEPT} = 1] ?50) ;connect
> exten => s,5,Gotoif($[${ACCEPT} = 2] ?30) ;reject to vm
> exten => s,6,Gotoif($[${ACCEPT} = 3] ?30:30) ;any thing else vm
> exten => s,30,SetVar(MACRO_RESULT=CONTINUE)
> exten => s,31,Goto(50)
> exten => s,50,System(/bin/rm -f ${ARG1}.gsm)
> exten => h,1,System(/bin/rm -f ${ARG1}.gsm)
>
>
More information about the asterisk-users
mailing list