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

C F
Wed, 19 Jan 2005 18:55:26 -0000

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@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@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
>