[Asterisk-Users] Call Screen Macro Not Exiting when call rejected

C F shmaltz at gmail.com
Wed Jan 19 18:55:26 MST 2005


You have to apply this patch:
http://bugs.digium.com/bug_view_page.php?bug_id=0002905



On Wed, 19 Jan 2005 19:15:27 -0600, Brian West <brian at bkw.org> wrote:
> [macro-screen]
> exten => s,1,Playback(silence/1)
> exten => s,2,Playback(screen-from)
> exten => s,3,Read(ACCEPT|screen-accept|1||3)
> exten => s,4,GotoIf($[${ACCEPT} = 1 ] ?6:5)
> exten => s,5,SetVar(MACRO_RESULT=CONTINUE)
> exten => s,6,NoOp
> 
> That works for me.  I think you need to check the args for Read.
> 
> bkw
> 
> > [macro-screen]
> > ; Prompt operator to accept,reject or transfer the incoming call
> > ; before the call is connected to them.
> > exten => s,1,Wait(0.2)
> > exten => s,2,Playback(og-welcome)
> > exten => s,3,Read(ACCEPT||1)
> > exten => s,4,GotoIf($[${ACCEPT} = 1]?6:5) ;1 = connect else return
> > exten => s,5,SetVar(MACRO_RESULT=CONTINUE)
> > exten => s,6,NOOP()
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list