Wednesday, January 9, 2008

Re: [asterisk-users] WaitExten and Macros

>>
> Spoke to soon, forgot that I used Background, which is doing the
> same thing. Any reason macro context is not supported? Just
> curious.
>

Okay, I figured out that I can put the macro context into the Background option, that works. Bit messy in the dial plan, but it will work.

Would be nice if WaitExten supported the context like Background, then both solutions would end up on the same lines.... As is, GotoIf is my friend.

So final solution:

Use Read to get the extension at the end with GotoIf on the variable checks and Background with the context parameter set to the macro context.

Tony Plack

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: