[asterisk-users] Asterisk and spandsp

Warrick Zedi wzedi at noojeeit.com.au
Tue Aug 22 15:18:05 MST 2006


Hi,

Have a look at AsterFax (https://sourceforge.net/projects/asterfax/). 
AsterFax can be configured to use spandsp through RxFax and TxFax and it 
works very well with telephony hardware.

AsterFax uses spandsp 0.0.2pre26 by default but I've tested it with 
0.0.2pre21 and Asterisk 1.2.9.1 and it works.

asterisk-users-request at lists.digium.com wrote:
> Send asterisk-users mailing list submissions to
> 	asterisk-users at lists.digium.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.digium.com/mailman/listinfo/asterisk-users
> or, via email, send a message with subject or body 'help' to
> 	asterisk-users-request at lists.digium.com
>
> You can reach the person managing the list at
> 	asterisk-users-owner at lists.digium.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of asterisk-users digest..."
>
>
> Today's Topics:
>
>    1. RE: Realtime Extensions -- Comments? (Douglas Garstang)
>    2. RE: Realtime Extensions -- Comments? (Douglas Garstang)
>    3. Re: Re: Zaptel install - Fedora Core 5 (Rich Adamson)
>    4. RE: Compilation (Dan Austin)
>    5. RE: Realtime Extensions -- Comments? (Douglas Garstang)
>    6. Re: Unable to match on CallerID in an include block
>       (Julian Lyndon-Smith)
>    7. Re: Realtime Extensions -- Comments? (simon elliston ball)
>    8. Re: Realtime Extensions -- Comments? (Don)
>    9. RE: SLA.conf (shadowym)
>   10. RE: Realtime Extensions -- Comments? (Aaron Daniel)
>   11. RE: Unable to match on CallerID in an include block
>       (Steve Hanselman)
>   12. Re: Realtime Extensions -- Comments? (Jason Parker)
>   13. Re: Linksys SPA-941 Message Waiting Indicator (Cliff Brake)
>   14. RE: Apache for FastAGI (Tielin Xu)
>   15. Asterisk and spandsp (Jan Fousek)
>   16. Asterisk and spandsp (Jan Fousek)
>   17. Re: Unable to match on CallerID in an include block
>       (Julian Lyndon-Smith)
>   18. RE: Realtime Extensions -- Comments? (Douglas Garstang)
>   19. LOUD MP3 Hold Music (Dennis P. Clark)
>   20. Re: LOUD MP3 Hold Music (David Freeman)
>   21. Re: LOUD MP3 Hold Music (Rich Adamson)
>   22. How can I implement Music on Call Transfer? (Crazy Boy)
>   23. CTI (Fernando BERRETTA)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 22 Aug 2006 10:13:25 -0600
> From: "Douglas Garstang" <dgarstang at oneeighty.com>
> Subject: RE: [asterisk-users] Realtime Extensions -- Comments?
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> 	<asterisk-users at lists.digium.com>
> Message-ID:
> 	<645FEC31A18FE54A8721500CDD55A7B6035D0A8D at mail.oneeighty.com>
> Content-Type: text/plain;	charset="iso-8859-1"
>
>   
>> -----Original Message-----
>> From: Jeremy McNamara [mailto:jj at nufone.net]
>> Sent: Tuesday, August 22, 2006 9:45 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
>>
>>
>> Douglas Garstang wrote:
>>     
>>> 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?
>>
>>
>> Yes, DON'T USE REALTIME!
>>     
>
> I wish it was that easy. We started looking at realtime again, because the option of building the config files with a script querying the database became daunting. 
>
> It doesn't matter where you turn in Asterisk, there's gotcha's. For example, you can't put the hint stuff into realtime, and there's no inherint way to comment extensions. 
>
> Doug.
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 22 Aug 2006 10:14:17 -0600
> From: "Douglas Garstang" <dgarstang at oneeighty.com>
> Subject: RE: [asterisk-users] Realtime Extensions -- Comments?
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> 	<asterisk-users at lists.digium.com>
> Message-ID:
> 	<645FEC31A18FE54A8721500CDD55A7B6035D0A8E at mail.oneeighty.com>
> Content-Type: text/plain;	charset="utf-8"
>
>   
>> -----Original Message-----
>> From: Jason Parker [mailto:jparker at digium.com]
>> Sent: Tuesday, August 22, 2006 9:57 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
>>
>>
>> ----- Douglas Garstang <dgarstang at oneeighty.com> 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
>>>       
>> I cheated, and just added a comments field to the table.  
>> Asterisk only reads fields by name, so extra columns don't 
>> hurt at all.
>>     
>
> How did an extra field that Asterisk doesn't know anything about, change it's behaviour?
>
> Doug.
>
> ------------------------------
>
> Message: 3
> Date: Tue, 22 Aug 2006 11:16:38 -0500
> From: Rich Adamson <radamson at routers.com>
> Subject: Re: [asterisk-users] Re: Zaptel install - Fedora Core 5
> To: asterisk-users at lists.digium.com
> Message-ID: <44EB2DE6.6090409 at routers.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Tzafrir Cohen wrote:
>   
>> On Tue, Aug 22, 2006 at 08:42:36AM -0500, Rich Adamson wrote:
>>     
>>> Tomislav Parčina wrote:
>>>       
>>>> In article <007a01c6c55f$ee353ff0$0e66970a at ds.mot.com>, aryanto at chello.at 
>>>> says...
>>>>         
>>>>> I did "yum update" last week and here is my current kernel:
>>>>>
>>>>> I had no problem at all with zaptel. I am only using TDM400P though, in
>>>>> case that matters.
>>>>>           
>>>> Hi Anto!
>>>>
>>>> The thing is that I can't rely on yum update for asterisk installation. I 
>>>> would like something that will work like this: I install FC5 from CD/DVD, 
>>>> install RPM's that I need from my ftp server or from CD, install zaptel, 
>>>> libpri, asterisk...
>>>>
>>>> So, I need to download rpm's that will allow me to install 
>>>> zaptel/libpri/asterisk without using yum update (I need to make all 
>>>> installations the same).
>>>>         
>>> Why bother with the rpm's?
>>>       
>> Because you have some other programs on your system other than Asterisk.
>>
>> And because you want a reproducable build.
>>     
>
> Guess that depends a lot on personal objectives, styles, and whether 
> asterisk code has been modified locally. Once the reproducable build is 
> operational and one has to maintain the code, reproducable builds sort 
> of go out the window (eg, customer/system A has a problem, but not 
> customer B through Z).
>
> Using the Branch SVN checkout approach always provides the most up to 
> date code as opposed to replicating buggy stuff via rpms.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 22 Aug 2006 09:19:14 -0700
> From: "Dan Austin" <Dan_Austin at Phoenix.com>
> Subject: RE: [asterisk-users] Compilation
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> 	<asterisk-users at lists.digium.com>
> Message-ID:
> 	<B0CF4196F21DC0448367514774331AB7019246DC at scl-exch2k3.phoenix.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Which version of Web-MeetMe did you download?  The process up to 2.0.1
> is, well, annoying.
> Copy app_cbmysql.c to ./asterisk/apps and modify the Makefile to include
> the application.
>  
> The project is now hosted on SourceForge and has a much improved build
> process, but I have
> not built a release tarball yet.
>  
> Dan
>
>
> ________________________________
>
> 	From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Khaled
> Chehab
> 	Sent: Tuesday, August 22, 2006 4:01 AM
> 	To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> 	Cc: asterisk-users-bounces at lists.digium.com
> 	Subject: [asterisk-users] Compilation
> 	
> 	
>
> 	Dear 
>
> 	I  am installing Web-MeetMe ,one of the requirements is
> app_cbmysql.c
>
> 	I have it but ,how can I compile it .
>
> 	 
>
> 	 
>
> 	Regards
>
> 	 
>
>
>
> ________________________________
>
> 	*********************************************
> 	No employee or agent is authorized to conclude any binding
> agreement on behalf of Xplorium with another party by e-mail without
> express written confirmation by an officer of Xplorium. Any views
> expressed by an individual in this electronic message do not necessarily
> reflect views of Xplorium or its subsidiaries and associates.
> 	
> 	This electronic message and its attachments are solely addressed
> to the addressee(s), and contain confidential information protected from
> disclosure belonging to Xplorium.
> 	
> 	If you are not the intended addressee of this electronic message
> and its attachments, kindly delete it immediately from your system and
> notify the sender by electronic mail. You must not copy this message or
> attachment or disclose its content to any other person.
> 	
> 	Xplorium does not guarantee the integrity of this electronic
> message and any of its attachments, or that they are free from computer
> viruses or other defects.
> 	********************************************* 
> 	
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060822/245f726d/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Tue, 22 Aug 2006 10:19:55 -0600
> From: "Douglas Garstang" <dgarstang at oneeighty.com>
> Subject: RE: [asterisk-users] Realtime Extensions -- Comments?
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> 	<asterisk-users at lists.digium.com>
> Message-ID:
> 	<645FEC31A18FE54A8721500CDD55A7B6035D0A8F at mail.oneeighty.com>
> Content-Type: text/plain;	charset="iso-8859-1"
>
>   
>> -----Original Message-----
>> From: Matthew Crocker [mailto:matthew at crocker.com]
>> Sent: Tuesday, August 22, 2006 10:03 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
>>
>>
>> Add a boolean field to the table then create a view based on the  
>> value of that field
>>
>>     
>>>>> CREATE TABLE `extensions_table_data` (
>>>>>  `id` int(11) NOT NULL auto_increment,
>>>>>           
>> 	   'isActive' boolean NOT NULL default 'True',
>>     
>>>>>  `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?
>>>>>           
>> Then
>>
>> Create view extensions_table as SELECT  
>> id,context,exten,priority,app,appdata from extensions_table_data  
>> where IsActive = True;
>>
>> Then you can just flip the IsActive bit on/off to remove extensions
>>     
>
> That's the workaround I've implemented.
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 22 Aug 2006 17:29:58 +0100
> From: Julian Lyndon-Smith <asterisk at dotr.com>
> Subject: Re: [asterisk-users] Unable to match on CallerID in an
> 	include block
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> 	<asterisk-users at lists.digium.com>
> Message-ID: <44EB3106.9090002 at dotr.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> What version of asterisk ?
>
> Julian
>
> Steve Hanselman wrote:
>   
>> Is there any reason why I can’t use the xxx/callerid format in an 
>> include section?
>>
>>  
>>
>> It doesn’t seem to work, but if I paste the lines into the main section 
>> where I include the block it does?
>>
>>  
>>
>>  
>>
>>  
>>
>> E.g. this doesn’t work
>>
>>  
>>
>> [telewest]
>>
>>  
>>
>> Include => spamblock
>>
>>  
>>
>> [spamblock]
>>
>>  
>>
>> _X./12345,s,macro(spamcall)
>>
>>  
>>
>> Whereas this does:
>>
>>  
>>
>> [telewest]
>>
>>  
>>
>> _X./12345,s,macro(spamcall)
>>
>>  
>>
>>  
>>
>> Any ideas?
>>
>>  
>>
>> Steve
>>
>>  
>>
>> The information contained in this email is intended for the personal and 
>> confidential use
>> of the addressee only. It may also be privileged information. If you are 
>> not the intended
>> recipient then you are hereby notified that you have received this 
>> document in error and
>> that any review, distribution or copying of this document is strictly 
>> prohibited. If you have
>> received this communication in error, please notify Brendata immediately 
>> on:
>>
>> +44 (0)1268 466100, or email 'technical at brendata.co.uk'
>>
>> Brendata (UK) Ltd
>> Nevendon Hall, Nevendon Road, Basildon, Essex. SS13 1BX UK
>> Registered Office as above. Registered in England No. 2764339
>>
>> See our current vacancies at www.brendataco.uk
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> --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
>>     
>
>
>
> ------------------------------
>
> Message: 7
> Date: Tue, 22 Aug 2006 17:34:26 +0100
> From: simon elliston ball <simon at simonellistonball.com>
> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> 	<asterisk-users at lists.digium.com>
> Message-ID:
> 	<E8CE8C30-5298-4666-A3F4-912C4D0DF50C at simonellistonball.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> note http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions
>
> comment from Philipp Dunkel.
>
>
> On 22 Aug 2006, at 17:13, Douglas Garstang wrote:
>
>   
>>> -----Original Message-----
>>> From: Jeremy McNamara [mailto:jj at nufone.net]
>>> Sent: Tuesday, August 22, 2006 9:45 AM
>>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>>> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
>>>
>>>
>>> Douglas Garstang wrote:
>>>       
>>>> 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?
>>>
>>>
>>> Yes, DON'T USE REALTIME!
>>>       
>> I wish it was that easy. We started looking at realtime again,  
>> because the option of building the config files with a script  
>> querying the database became daunting.
>>
>> It doesn't matter where you turn in Asterisk, there's gotcha's. For  
>> example, you can't put the hint stuff into realtime, and there's no  
>> inherint way to comment extensions.
>>
>> 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
>>     
>
>
>
> ------------------------------
>
> Message: 8
> Date: Tue, 22 Aug 2006 12:38:11 -0400
> From: "Don" <sales at xwebfactor.com>
> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> 	<asterisk-users at lists.digium.com>
> Message-ID: <002201c6c609$5bb917a0$0301a8c0 at shizznit2000>
> Content-Type: text/plain; format=flowed; charset="utf-8";
> 	reply-type=original
>
> He meant he added another column in the database table...
> In the asterisk source everything database related for the default database 
> stuff is explicitly named...
> Like INSERT INTO blah(col1,col2,col3) Values(foo,foo,foo)
>
> ----- Original Message ----- 
> From: "Douglas Garstang" <dgarstang at oneeighty.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
> <asterisk-users at lists.digium.com>
> Sent: Tuesday, August 22, 2006 12:14 PM
> Subject: RE: [asterisk-users] Realtime Extensions -- Comments?
>
>
>   
>>> -----Original Message-----
>>> From: Jason Parker [mailto:jparker at digium.com]
>>> Sent: Tuesday, August 22, 2006 9:57 AM
>>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>>> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
>>>
>>>
>>> ----- Douglas Garstang <dgarstang at oneeighty.com> 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
>>>>         
>>> I cheated, and just added a comments field to the table.
>>> Asterisk only reads fields by name, so extra columns don't
>>> hurt at all.
>>>       
>> How did an extra field that Asterisk doesn't know anything about, change 
>> it's behaviour?
>>
>> 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
>>
>>     
>
>
> --------------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date: 8/22/2006
>
>
>
> ------------------------------
>
> Message: 9
> Date: Tue, 22 Aug 2006 09:46:32 -0700
> From: "shadowym" <shadowym at hotmail.com>
> Subject: RE: [asterisk-users] SLA.conf
> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
> 	<asterisk-users at lists.digium.com>
> Message-ID: <BAY102-DAV157A12CA880EB3F912F479DD460 at phx.gbl>
> Content-Type: text/plain;	charset="us-ascii"
>
> Thanks Kevin,
>
> This is very exciting news.  Let me know what if anything I can do to help
> test this.  I have a Grandstream GXP2000 and Aastra 9133i phone.  What
> sort's of phones and or features are required to support this?  The Aastra
> supports Broadworks SLA and standard SIP BLF but not alternate device state
> BLF (yet!) such as metermaid call parking.
>
> -----Original Message-----
> From: Kevin P. Fleming [mailto:kpfleming at digium.com] 
> Sent: Tuesday, August 22, 2006 7:36 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] SLA.conf
>
> ----- shadowym <shadowym at hotmail.com> wrote:
>   
>> I found this indication that Shared Line Appearance is possibly in 
>> SVN.  Is it or is this just an indication that it is up and coming?
>> http://bugs.digium.com/view.php?id=7701
>>     
>
> There is an initial implementation of SLA in SVN trunk right now, but it is
> buggy and needs some redesign. We hope to get that work done before Asterisk
> 1.4 is released.
>
> --
> Kevin P. Fleming
> Senior Software Engineer
> Digium, Inc.
>
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Tue, 22 Aug 2006 11:46:46 -0500
> From: Aaron Daniel <amdtech at shsu.edu>
> Subject: RE: [asterisk-users] Realtime Extensions -- Comments?
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> 	<asterisk-users at lists.digium.com>
> Message-ID: <1156265207.21614.4.camel at ss-5-100.shsu.edu>
> Content-Type: text/plain
>
> On Tue, 2006-08-22 at 10:14 -0600, Douglas Garstang wrote:
>   
>>> -----Original Message-----
>>> From: Jason Parker [mailto:jparker at digium.com]
>>> Sent: Tuesday, August 22, 2006 9:57 AM
>>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>>> Subject: Re: [asterisk-users] Realtime Extensions -- Comments?
>>>
>>>
>>> ----- Douglas Garstang <dgarstang at oneeighty.com> 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
>>>>         
>>> I cheated, and just added a comments field to the table.  
>>> Asterisk only reads fields by name, so extra columns don't 
>>> hurt at all.
>>>       
>> How did an extra field that Asterisk doesn't know anything about, change it's behaviour?
>>
>> Doug.
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>     
>
> I think he meant a comments field, to describe the extension.  Asterisk
> doesn't care about extra fields in the db, but it won't use them to it's
> benefit unless it's programmed in.
>   




More information about the asterisk-users mailing list