[asterisk-users] realtime static config include contexts

Benjamin Jacob
Tue, 12 Sep 2006 21:58:22 -0000

Experimented and it works alright!!

To include a context in static config, simply put "include" into
var_name, and the included context name in var_val, and reload, under
category <wotevercontext> .
e.g. If mycontext is one context, and I want to include 'anothercontext'
into 'mycontext';
the sql entry shud be like
 id | cat_metric | var_metric | commented |     filename        |
category |     var_name        | var_val                       |
===============================================================================
14 |              0 |              0 |         0             |
extensions.conf |    mycontext     |         include         |
anothercontext    |

and then do an "extensions reload" on the CLI.

It does work.

Having said that, can anyone tell me the importance/use of the
cat_metric and var_metric. Couldn't make out much from
voip-info.org/static config.

cheerz
Ben.



Benjamin Jacob wrote:

> Hello ppl,
> Any idea how do I write in include lines(for contexts or include
> files)  in the database, in the ARA static config?
>
> thanks in advance.
>
> Ben.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>