[asterisk-users] Realtime Extensions -- Comments?

Aaron Daniel amdtech at shsu.edu
Tue Aug 22 08:08:43 MST 2006


Just a thought, but try putting a ; in the exten field before the
extension... then asterisk won't match any extensions with it, and it'll
effectively become commented.  Don't know if it'll work, but from
looking at the code and the table structure, it shouldn't break
anything.

On Tue, 2006-08-22 at 08:20 -0600, 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
-- 
Aaron Daniel
Computer Systems Technician
Sam Houston State University
amdtech at shsu.edu
(936) 294-4198




More information about the asterisk-users mailing list