# Realtime Contexts (in addition to extensions)

**URL:** <https://community.asterisk.org/t/realtime-contexts-in-addition-to-extensions/37129>\
**Category:** Asterisk Support\
**Created:** [October 24, 2011, 2:11am UTC](https://community.asterisk.org/t/realtime-contexts-in-addition-to-extensions/37129 "2011-10-24T02:11:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lepon](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@lepon](https://community.asterisk.org/u/lepon)\
**Post date:** [October 24, 2011, 2:11am UTC](https://community.asterisk.org/t/realtime-contexts-in-addition-to-extensions/37129/1 "2011-10-24T02:11:31Z")

</div>

Hi All,

I am trying to use Realtime with mysql to generate some IVR menus on the fly.

I have all the menus in their different contexts setup in the mysql extensions database but I have just come across a problem where for each of the contexts I have in the database I have to use

[context-a]  
switch =\> realtime/@extensions

in my extensions.conf file. This is causing an issue as I can’t just generate these on the fly in the database but have to go in and manually add the switch statement for each new context.

I have seen [issues.asterisk.org/view.php?id=6019](https://issues.asterisk.org/view.php?id=6019)  
but can’t seem to get any of it to work to load my contexts from the extensions database dynamically

Any help would be great.
