[Asterisk-Users] RE: Asterisk-Users Digest, Vol 17, Issue 89

Michaël Gaudette michael.gaudette at virtutel.ca
Thu Dec 15 04:55:33 MST 2005


> > I did the following
> > s,1,Background(blablabla)
> > s,2,Read(VARIABLE||1) ; accepting only one digit (1 to 
> accept call, anything
> > else to hangup)
> 
> That's not the right approach. Do something like his:
> 
> [confirmcall]
> exten => s,1,Background(blablabla)
> exten => 1,1,Goto(accept_call_context,s,1)
> exten => t,1,Hangup
> exten => i,1,Hangup

Thanks Luki.  I was just following the example in the Wiki, on the Dial()
cmd page.  But now that I think of it, it does make more sense to use your
approach.

Mike




More information about the asterisk-users mailing list