[asterisk-users] asterisk realtime and creating "new" contexts

Saul Bejarano saul at procomm100.com
Thu Aug 14 22:01:45 CDT 2008


The VMX-CONTEXT can be managed from database

mysql> select * from globals;
But you will have to specify the same on each extension under sip
once the extension under table sip is the one that calls the CONTEXT to 
route the call.

| PARKNOTIFY           | SIP/200             |
| RECORDEXTEN          | ""                  |
| RINGTIMER            | 15                  |
| DIRECTORY            | last                |
| AFTER_INCOMING       |                     |
| IN_OVERRIDE          | forcereghours       |
| REGTIME              | 7:55-17:05          |
| REGDAYS              | mon-fri             |
| DIRECTORY_OPTS       |                     |
| DIALOUTIDS           | 1/2/3/4/5/6/        |
| OUT_1                | ZAP/g0              |
| VM_PREFIX            | *                   |
| VM_OPTS              |                     |
| VM_GAIN              |                     |
| VM_DDTYPE            | u                   |
| TIMEFORMAT           | kM                  |
| TONEZONE             | us                  |
| ALLOW_SIP_ANON       | yes                 |
| VMX_CONTEXT          | from-internal

It will make it sort of complicated thought because it was build to be 
the generic element routing the calls out of the SIP Registrar, by 
having individual Context what you are trying to do is partition one 
Asterisk box to function as multiple offering invidual termination to 
each one of your users or complete management of a virtual slice of the 
box :)

Todd Fulton wrote:
> Hi,
> 
> I'm trying to create a multi-tennant asterisk installation .... where 
> each of my customers has its own context.  Well, I've got asterisk 
> realtime working, and I can add/update extensions to existing contexts 
> in extensions.conf without a problem.  However, when I attempt to create 
> database entries with a context that is NOT in extensions.conf, I get an 
> error "invalid extension".
> 
> I've found several posts around the net asking this question, but no 
> answers.  Has anyone out there dealt with this problem?
> 
> Any help would be great!
> 
> 
> Todd
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list