[Asterisk-Users] include from database

asterisk at mazone.info asterisk at mazone.info
Wed Jan 25 18:18:57 MST 2006


Hi list users
 I’m trying to do an incluye statement from the Database

 

In my dialplan I have different contexts that defines common services for
example

 

----------------------------------------------------------------------------
-----------------------

 

[basic_services]

exten => 100,1,VoicemailMain()

 

exten => 600,1,Playback(demo-echotest)

exten => 600,2,Echo()

exten => 600,3,Playback(beep)

exten => 600,4,Playback(demo-echodone)

exten => 600,5,Playback(vm-goodbye)

exten => 600,6,Hangup()

 

exten => 297,1,AGI(wakeup.agi)

 

exten => 030,1,SayUnixTime(,Mexico/General,ABd \'digits/at\' IMp)

exten => 030,2,Background(vm-goodbye)

exten => 030,3,Hangup()

 

exten => 031,1,SayUnixTime(,Canada/Eastern,ABd \'digits/at\' IMp)

exten => 031,2,Background(vm-goodbye)

exten => 031,3,Hangup()

 

[localpstn]

exten => *1,1,Dial(${TRUNK})

exten => _XXXXXXXX,1,Dial(${TRUNK}/${EXTEN})

exten => _55XXXXXXXX,1,Dial(${TRUNK}/${EXTEN})

exten => _04455XXXXXXXX,1,Dial(${TRUNK}/${EXTEN})

 

[authlocalpstn]

exten => *1,1,Macro(auth,${TRUNK})

exten => _XXXXXXXX,1,Macro(auth,${TRUNK}/${EXTEN})

exten => _55XXXXXXXX,1,Macro(auth,${TRUNK}/${EXTEN})

exten => _04455XXXXXXXX,1,Macro(auth,${TRUNK}/${EXTEN})

 

----------------------------------------------------------------------------
-----------------------

 

And then just add these contexts in the users contexts to give the access to
it.. as follows


 

----------------------------------------------------------------------------
-----------------------

 

[autorized]

Include => basi_services

include => localpstn

include => longdistance

switch => Realtime/autorized at extensions

 

----------------------------------------------------------------------------
-----------------------

 

The main question here is
.

 

Is it possible to do an include statement directly from the database, or
that statement is only available from extensions.conf file???

 

Thanks in advance list users!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060125/0787dbab/attachment.htm


More information about the asterisk-users mailing list