[Asterisk-Users] Question about Macros

Joe S printingfoot at hotmail.com
Tue Apr 12 21:37:54 MST 2005


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
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users


       ________________________________________

       Those who bring sunshine to the lives of others
      cannot keep it for themselves.
                                              --  James M. Barrie  --
       ________________________________________





More information about the asterisk-users mailing list