Re: [asterisk-users] Dahdi on Realtime.

2010-12-02 Thread Rodrigo Lang

 There is no specific Realtime database for chan_dahdi (that I know
 if).
 You can store the configuration using Realtime Static using the new
 chan_dahdi.conf notation without any problems.  The only problem with
 Realtime Static is that you cannot use the text file, you need to load
 everything from the database.

Another possibility would be to use an #exec from chan_dahdi.conf to
 extract the channel configuration from the database.


Thanks for the reply Carlos.

You have the model of the tables for chan_dahdi in static mode? This quite
difficult to find on the internet ...

And you know if the generals can also be included in a static way?

Thanks again



At,
-- 
Rodrigo Lang
Opening your mind - Just another Open Source
sitehttp://openingyourmind.wordpress.com/
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Dahdi on Realtime.

2010-12-02 Thread Carlos Chavez
On Thu, 2010-12-02 at 10:52 -0200, Rodrigo Lang wrote:
 
There is no specific Realtime database for chan_dahdi
 (that I know if).
 You can store the configuration using Realtime Static using
 the new
 chan_dahdi.conf notation without any problems.  The only
 problem with
 Realtime Static is that you cannot use the text file, you need
 to load
 everything from the database.
 
Another possibility would be to use an #exec from
 chan_dahdi.conf to
 extract the channel configuration from the database.
 
 
 Thanks for the reply Carlos.
 
 You have the model of the tables for chan_dahdi in static mode? This
 quite difficult to find on the internet ...
 
 And you know if the generals can also be included in a static way?
 
 Thanks again
 
Here is the table configuration for mysql:

CREATE TABLE `ast_config` (
  `id` int(11) NOT NULL auto_increment,
  `cat_metric` int(11) NOT NULL default '0',
  `var_metric` int(11) NOT NULL default '0',
  `commented` int(11) NOT NULL default '0',
  `filename` varchar(128) collate utf8_unicode_ci NOT NULL,
  `category` varchar(128) collate utf8_unicode_ci NOT NULL default
'default',
  `var_name` varchar(128) collate utf8_unicode_ci NOT NULL,
  `var_val` varchar(200) collate utf8_unicode_ci NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `filename_comment` (`filename`,`commented`)
) ENGINE=MyISAM AUTO_INCREMENT=4720 DEFAULT CHARSET=utf8
COLLATE=utf8_unicode_ci;

In extconfig.conf:
chan_dahdi.conf = mysql,general,ast_config


Database example:
+--+++---+-+--+---++
| id   | cat_metric | var_metric | commented | filename|
category | var_name  | var_val|
+--+++---+-+--+---++
| 1497 | 27 |  1 | 0 | chan_dahdi.conf | axtel
| language  | es | 
| 1498 | 27 |  2 | 0 | chan_dahdi.conf | axtel
| context   | entrada| 
| 1499 | 27 |  3 | 0 | chan_dahdi.conf | axtel
| usecallerid   | yes| 
| 1500 | 27 |  4 | 0 | chan_dahdi.conf | axtel
| hidecallerid  | no | 
| 1501 | 27 |  5 | 0 | chan_dahdi.conf | axtel
| callwaiting   | no | 
| 1502 | 27 |  6 | 0 | chan_dahdi.conf | axtel
| canpark   | no | 
| 1503 | 27 |  7 | 0 | chan_dahdi.conf | axtel
| usecallingpres| yes| 
| 1504 | 27 |  8 | 0 | chan_dahdi.conf | axtel
| callwaitingcallerid   | no | 
| 1505 | 27 |  9 | 0 | chan_dahdi.conf | axtel
| threewaycalling   | yes| 
| 1506 | 27 | 10 | 0 | chan_dahdi.conf | axtel
| transfer  | yes| 
| 1507 | 27 | 11 | 0 | chan_dahdi.conf | axtel
| cancallforward| no | 
| 1508 | 27 | 12 | 0 | chan_dahdi.conf | axtel
| callreturn| yes| 
| 1509 | 27 | 13 | 0 | chan_dahdi.conf | axtel
| echocancel| yes| 
| 1510 | 27 | 14 | 0 | chan_dahdi.conf | axtel
| echocancelwhenbridged | no | 
| 1511 | 27 | 15 | 0 | chan_dahdi.conf | axtel
| echotraining  | yes| 
| 1512 | 27 | 16 | 0 | chan_dahdi.conf | axtel
| rxgain| 0.0| 
| 1513 | 27 | 17 | 0 | chan_dahdi.conf | axtel
| txgain| 0.0| 
| 1514 | 27 | 18 | 0 | chan_dahdi.conf | axtel
| busydetect| yes| 
| 1515 | 27 | 19 | 0 | chan_dahdi.conf | axtel
| busycount | 4  | 
| 1516 | 27 | 20 | 0 | chan_dahdi.conf | axtel
| callprogress  | no | 
| 1517 | 27 | 21 | 0 | chan_dahdi.conf | axtel
| accountcode   | Axtel  | 
| 1518 | 27 | 22 | 0 | chan_dahdi.conf | axtel
| amaflags  | default| 
| 1519 | 27 | 23 | 0 | chan_dahdi.conf | axtel
| signalling| fxs_ks | 
| 1520 | 27 | 24 | 0 | chan_dahdi.conf | axtel
| group | 1  | 
| 1521 | 27 | 25 | 0 | chan_dahdi.conf | axtel
| faxdetect | incoming   | 
| 1522 | 27 | 26 | 0 | chan_dahdi.conf | axtel
| callerid  | asreceived | 
| 1523 | 27 | 27 | 0 | chan_dahdi.conf | axtel
| mohinterpret  | default| 
| 1524 | 27 | 28 |   

[asterisk-users] Dahdi on Realtime.

2010-12-01 Thread Rodrigo Lang
Good morning list.

I wonder if I can put files and chan_dahdi dahdi_channels in real time. Not
the generals but the channels.


Thanks,
-- 
Rodrigo Lang
Opening your mind - Just another Open Source
sitehttp://openingyourmind.wordpress.com/
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Dahdi on Realtime.

2010-12-01 Thread Carlos Chavez
On Wed, 2010-12-01 at 10:15 -0200, Rodrigo Lang wrote:
 Good morning list.
 
 I wonder if I can put files and chan_dahdi dahdi_channels in real
 time. Not the generals but the channels.
 
 
There is no specific Realtime database for chan_dahdi (that I know if).
You can store the configuration using Realtime Static using the new
chan_dahdi.conf notation without any problems.  The only problem with
Realtime Static is that you cannot use the text file, you need to load
everything from the database.

Another possibility would be to use an #exec from chan_dahdi.conf to
extract the channel configuration from the database.

-- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001


signature.asc
Description: This is a digitally signed message part
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users