Thank Matthew:

I do that, i create the database with tables for support RT Asterisk, then i create the context deafult in the database, but the macro that i use is steel in the etension.conf and its works.

Database Extension:
ID    CONTEX  EXTEN    PRIORITY        APP       APPDATA

1 default _2XX 1 Macro test1|SIP/${EXTEN:0}
2 default _3XX 1 Macro test1|SIP/${EXTEN:0}
3 default _4XX 1 Macro test1|SIP/${EXTEN:0}



Extension.conf:

[default]

switch => Realtime/default@


[macro-test1]

exten => s,1,Dial(${ARG1},20,tTr)
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(u${MACRO_EXTEN})
exten => s-NOANSWER,2,Goto(default,s,1)
exten => s-BUSY,1,Voicemail(b${MACRO_EXTEN})
exten => s-BUSY,2,Goto(default,s,1)
exten => _s-.,1,Goto(s-NOANSWER,1)
exten => a,1,VoicemailMain([EMAIL PROTECTED])


Its works, but if i change the macro test to database, its doesn't works, my database and extensions.conf loooks like:


Database Extension:

ID    CONTEX  EXTEN         PRIORITY        APP                APPDATA

1 default _2XX 1 Macro test1|SIP/${EXTEN:0}
2 default _3XX 1 Macro test1|SIP/${EXTEN:0}
3 default _4XX 1 Macro test1|SIP/${EXTEN:0}
4 test1 s 1 Dial ${ARG1}|20|tTr
5 test1 s 2 Goto s-${DIALSTATUS}|1
6 test1 s-NOANSWER 1 Voicemail u${MACRO_EXTEN}
7 test1 s-NOANSWER 2 Goto default|s|1
8 test1 s-BUSY 1 Voicemail b${MACRO_EXTEN}
9 test1 s-BUSY 2 Goto default|s|1
10 test1 _s-. 1 Goto s-NOANSWER|1
11 test1 a 1 VoicemailMain [EMAIL PROTECTED]


And the extensions.conf looks:

[default]

switch => Realtime/default@


[macro-test1]

switch => Realtime/test1@

The error on CLI Asterisk is the context macro-test1 no exist for macro test1........

But, this configuration don't work.

Any idea.

Thank.

Kritikus.





ehm <[EMAIL PROTECTED]>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <[email protected]>
To: Asterisk Users <[email protected]>
Subject: Re: [Asterisk-Users] Macro Extension with Realtime and Mysql DB
Date: Sat, 02 Apr 2005 23:04:01 -0600


AFAIK, you would configure a macro extension in RealTime just like you
configure a regular extension/context in RealTime.

-Matthew


> From: kritikus Araklidas <[EMAIL PROTECTED]> > Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion > <[email protected]> > Date: Sun, 03 Apr 2005 04:11:38 +0000 > To: <[email protected]> > Subject: [Asterisk-Users] Macro Extension with Realtime and Mysql DB > > Hi Everyone: > > I need to know if somebody know how to configure macro extension > (extension.conf) in the database for Asterisk Realtime support if is > suported. > > Regards, > > Kritikus > > _________________________________________________________________ > Don‚t just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > _______________________________________________ > Asterisk-Users mailing list > [email protected] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar � get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to