[Asterisk-Users] Question about Macros

Kanuri, Seshu (Company IT) Seshu.Kanuri at morganstanley.com
Wed Apr 13 06:59:37 MST 2005


Can you post here what is working, for the benefit of everyone?

 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joe S
Sent: Wednesday, April 13, 2005 12:38 AM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] Question about Macros

Hi all,
Never mind, I solved the problem with Read...

Joe

>From: "Joe S" <printingfoot at hotmail.com>
>Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion 
><asterisk-users at lists.digium.com>
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] Question about Macros
>Date: Tue, 12 Apr 2005 21:39:31 -0500
>
>Hello,
>I am trying to build a macro + menu together. Here is the idea:
>Dial 1000 to get to conference, menu comes, press 1 to login as admin 
>or press 2 to login as user.
>Here is my code in extensions.conf:
>
>exten => 1000,1,Macro(conf2me,1000)
>
>[macro-conf2me]
>exten=>s,1,Wait,1
>exten=>s,2,Answer
>exten=>s,3,DigitTimeout,5
>exten=>s,4,ResponseTimeout,10
>exten=>s,5,Background,welcome-instructions
>exten=>i,1,Playback,pbx-invalid
>exten=>i,2,Goto,s|5
>exten=>t,1,Hangup
>
>exten=>1,1,MeetMe(${ARG1}|ipda)
>
>exten=>2,1,MeetMe(${ARG1}|ipd)
>
>It doesn't work, it is giving the error that '1' is not defined in the 
>default context, probably it exited the menu (macro).
>
>Thanks,
>
>Joe 
--------------------------------------------------------
 
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited. 
 



More information about the asterisk-users mailing list