Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] WaitExten and Macros


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
Tony at plack.net
Guest





PostPosted: Wed Jan 09, 2008 1:09 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with 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
Back to top
Tony at plack.net
Guest





PostPosted: Wed Jan 09, 2008 1:09 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with 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
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Wed Jan 09, 2008 1:22 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with quote

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





PostPosted: Wed Jan 09, 2008 1:28 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with quote

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





PostPosted: Wed Jan 09, 2008 1:55 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with quote

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





PostPosted: Wed Jan 09, 2008 3:08 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with 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
Back to top
Tony at plack.net
Guest





PostPosted: Wed Jan 09, 2008 3:40 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with quote

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





PostPosted: Wed Jan 09, 2008 4:50 pm    Post subject: [asterisk-users] WaitExten and Macros Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services