On Tue, Oct 21, 2008 at 1:46 PM, morteza kashani <[EMAIL PROTECTED]> wrote:
> when i wnat to working with realtime and mysql
> for any context i have to insert (switch => Realtiem/[EMAIL PROTECTED])
> statment into extensions.conf
>
> for example if i want to have 10 context, i have to insert these lines into
> extension.conf :
>
> [context1]
> switch => Realtiem/[EMAIL PROTECTED]
>
> [context2]
> switch => Realtiem/[EMAIL PROTECTED]
>
> [context3]
> switch => Realtiem/[EMAIL PROTECTED]
>
> ................
>
> ................
>
> i want to switch these 10 context whithout insert these 10 lines ....
>
> how can  i switch any context to real time dinamically ?
>

Hello,

short answer is - you can't.

If you really need lot of contexts added, you can place a #exec line
in your dialplan, write a script that would do "SELECT DISTINCT
context FROM extensions_table" and for each of results print out
"switch=>" lines. However you would need to issue "dialplan reload" or
AEL reload whenever you add a context.

Regards,
Atis

P.S.
try to not post twice :)

-- 
Atis Lezdins,
VoIP Project Manager / Developer,
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to