[asterisk-users] Realtime Extensions -- Comments?
Matthew Crocker
matthew at crocker.com
Tue Aug 22 09:05:59 MST 2006
Create a context 'suspended' that can *only* dial 911 then move
extensions into that context.
Even if the customer doesn't pay their bill you *still* want them to
be able to dial 911, and probably your customer service number. You
could even create a dialplan in the context to send all other calls
to a announcement (please pay your bill and your calls will go through).
On Aug 22, 2006, at 11:48 AM, simon elliston ball wrote:
> no it doesn't. you could just change the context field for the
> extensions you wanted to comment out.
>
> On 22 Aug 2006, at 16:11, Douglas Garstang wrote:
>
>> Thanks, but that means I'd have to effectively comment out every
>> extension in that context, which isn't very feesible.
>>
>>> -----Original Message-----
>>> From: Joe Dennick [mailto:joe at dennick.net]
>>> Sent: Tuesday, August 22, 2006 8:46 AM
>>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>>> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
>>>
>>>
>>> Actually, you could just change to context. If a context isn't
>>> established in the extensions.conf file, it won't every be
>>> included in
>>> the dial-plan. As such, if you change the context on some realtime
>>> entries, they won't be included in the dial-plan. Later, all
>>> you have
>>> to do is change the context back with a simple SQL UPDATE statement.
>>>
>>> Douglas Garstang wrote:
>>>
>>>> The unofficial docs on the voip wiki for the realtime
>>> extensions table structure is:
>>>>
>>>> CREATE TABLE `extensions_table` (
>>>> `id` int(11) NOT NULL auto_increment,
>>>> `context` varchar(20) NOT NULL default '',
>>>> `exten` varchar(20) NOT NULL default '',
>>>> `priority` tinyint(4) NOT NULL default '0',
>>>> `app` varchar(20) NOT NULL default '',
>>>> `appdata` varchar(128) NOT NULL default '',
>>>> PRIMARY KEY (`context`,`exten`,`priority`),
>>>> KEY `id` (`id`)
>>>> ) TYPE=MyISAM;
>>>>
>>>> Uhm... what abouts comments? What if I wanted to temporarily
>>> deactivate a couple of extensions? Without a comment flag,
>>> I'd have to completely remove those entries from the
>>> extensions table! That's not very friendly is it... Is there
>>> a better way?
>>>>
>>>> Doug.
>>>> _______________________________________________
>>>> --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
>>>>
>>>>
>>> _______________________________________________
>>> --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
>>>
>> _______________________________________________
>> --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
>
> _______________________________________________
> --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
--
Matthew S. Crocker
Vice President
Crocker Communications, Inc.
Internet Division
PO BOX 710
Greenfield, MA 01302-0710
http://www.crocker.com
More information about the asterisk-users
mailing list