View previous topic :: View next topic |
Author |
Message |
Tony at plack.net Guest
|
Posted: Wed Jan 09, 2008 1:09 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
I am trying to use a WaitExten in a Macro, and I am finding that the extension which is pressed ends up in context of the calling context and not in the Macro.
How do you do a WaitExten in a Macro?
Tony Plack |
|
Back to top |
|
|
Tony at plack.net Guest
|
Posted: Wed Jan 09, 2008 1:09 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
I am trying to use a WaitExten in a Macro, and I am finding that the extension which is pressed ends up in context of the calling context and not in the Macro.
How do you do a WaitExten in a Macro?
Tony Plack |
|
Back to top |
|
|
tilghman at mail.jeffa... Guest
|
Posted: Wed Jan 09, 2008 1:22 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
On Wednesday 09 January 2008 12:09:29 Tony Plack wrote:
Quote: | I am trying to use a WaitExten in a Macro, and I am finding that the
extension which is pressed ends up in context of the calling context and
not in the Macro.
How do you do a WaitExten in a Macro?
|
You cannot.
--
Tilghman |
|
Back to top |
|
|
rschall at callone.net Guest
|
Posted: Wed Jan 09, 2008 1:28 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
You may just want a "Read" if you know how many numbers you're looking for.
Rob
Tony Plack wrote:
Quote: | I am trying to use a WaitExten in a Macro, and I am finding that the extension which is pressed ends up in context of the calling context and not in the Macro.
How do you do a WaitExten in a Macro?
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
|
|
|
Back to top |
|
|
jsmith at digium.com Guest
|
Posted: Wed Jan 09, 2008 1:55 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
On Wed, 2008-01-09 at 12:09 -0600, Tony Plack wrote:
Quote: | I am trying to use a WaitExten in a Macro
|
Bad idea... as far as I know, neither Background nor WaitExten work
correctly inside of macros. I'd suggest you use the Read() application
instead.
--
Jared Smith
Community Relations Manager
Digium, Inc. |
|
Back to top |
|
|
Tony at plack.net Guest
|
Posted: Wed Jan 09, 2008 3:08 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
Quote: | You may just want a "Read" if you know how many numbers you're
looking for.
Rob
|
This worked, thanks!!! Feel silly for not seeing that option, guess I was being lazy.
Tony Plack |
|
Back to top |
|
|
Tony at plack.net Guest
|
Posted: Wed Jan 09, 2008 3:40 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
Quote: | Quote: | You may just want a "Read" if you know how many numbers you're
looking for.
Rob
| This worked, thanks!!! Feel silly for not seeing that option,
guess I was being lazy.
Tony Plack
|
Spoke to soon, forgot that I used Background, which is doing the same thing. Any reason macro context is not supported? Just curious. |
|
Back to top |
|
|
Tony at plack.net Guest
|
Posted: Wed Jan 09, 2008 4:50 pm Post subject: [asterisk-users] WaitExten and Macros |
|
|
Quote: | 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 |
|
Back to top |
|
|
|