In article <[EMAIL PROTECTED]>,
Mark Wormgoor <[EMAIL PROTECTED]> wrote:
> >
> > Not certain about this but couldn't this work:
> > exten => _.,1,SetVar()
> > exten => _.,2,Goto(${EXTEN},1)
> >
> > exten => 1234,1,Dial()
>
> That's what I wanted... Should have thought of that myself.
> Thanks!
It won't work unless the SetVar and Goto are in a different context
from the Dial.
If all three lines above are in the same context, (1234,1) will either
always match the first line or the last line. You are expecting it to
match the first line when the call comes in, and the last line when
doing the Goto.
Another point is that "_." should really be "_X.", and duplicated
for "_X" if you want to handle 1-digit extensions too.
Cheers
Tony
--
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users