Re: [asterisk-users] dahdi-channels.conf vs. chan_dahdi.conf

2013-03-28 Thread Rusty Newton
- Original Message -
> From: "Ken D'Ambrosio" 

> Hey, all.  Just added an analog card to our dual-T1 system... and
> clearly I'm doing something wrong.  Less interested in having the
> specifics pointed out than in finding out how/why certain things
> work.
> So, really, three things:
> 
> * What the bloody Hell is the difference between dahdi-channels.conf
> and chan_dahdi.conf?  (And who thought it was a good idea to have two
> files with, apparently, different functionality, but very similar
> names?)

dahdi-channels.conf is generated by dahdi_genconf so as to not accidentally 
overwrite chan_dahdi.conf. You should #include dahdi-channels.conf inside of 
dahdi_genconf.  You can use #include's in all Asterisk config files. Various 
asterisk distributions break out conf files into multiple files using includes 
for compartmentalization and ease of user customization. 

> * If I'm getting power to my analog phones, but no dial tone, which
> file should I be editing?

You should be editing whichever file contains the options you need to edit. You 
shouldn't have duplicated settings between the two files - if you do, you 
should resolve that.

> 
> * Likewise (and almost certainly related) if dahdi_cfg shows the
> channels, but "dahdi show channels" only shows my T1 spans, which
> file
> should I be editing?

You should make sure the missing channels are configured appropriately in 
either chan_dahdi.conf or dahdi-channels.conf files.

> Could someone point me to some sample analog configs?  Most of my
> searches have wound me up with GUI folks, and I'm just doing good
> ol-fashioned hand editing on an Ubuntu system.

http://docs.digium.com/TDM410/analog410series_manual.pdf  see pages 38-44

Hope those help!


-- 
Rusty Newton 
OS Community Support Manager | Digium, Inc. | www.digium.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-channels.conf vs. chan_dahdi.conf

2013-03-28 Thread Yves A.

hi,
chan_dahdi is some kind of "generic" config file, and dahdi-channels the 
config file where you configure your channels... so to say hardware 
specific.
dahdi-channels.conf is normally a generated file which in turn is 
included by chan-dahdi...
it makes sense to me to divide dahdi channel config in two files... but 
as one of them is included by the other you could merge them by hand... but
remember you have then to edit it yourself if your hardware 
configuration changes (e.g. after adding a new card, as it was in your 
case...)
so if your analog card requires drivers, install them or look in you 
/etc/dahdi/modules if you disabled the loading of the module for your newly
added card. after this run dahdi_genconf and all should be set up 
atomagically...

regards,
yves

Am 28.03.2013 14:44, schrieb Ken D'Ambrosio:
Hey, all.  Just added an analog card to our dual-T1 system... and 
clearly I'm doing something wrong.  Less interested in having the 
specifics pointed out than in finding out how/why certain things 
work.  So, really, three things:


* What the bloody Hell is the difference between dahdi-channels.conf 
and chan_dahdi.conf?  (And who thought it was a good idea to have two 
files with, apparently, different functionality, but very similar names?)


* If I'm getting power to my analog phones, but no dial tone, which 
file should I be editing?


* Likewise (and almost certainly related) if dahdi_cfg shows the 
channels, but "dahdi show channels" only shows my T1 spans, which file 
should I be editing?


Could someone point me to some sample analog configs?  Most of my 
searches have wound me up with GUI folks, and I'm just doing good 
ol-fashioned hand editing on an Ubuntu system.


Thanks!

-Ken





--
_
-- 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-channels.conf vs. chan_dahdi.conf

2013-03-28 Thread Doug Lytle

Ken D'Ambrosio wrote:
* What the bloody Hell is the difference between dahdi-channels.conf 
and chan_dahdi.conf?  (And who thought it was a good idea to have two 


On my Asterisk 11 machine, I have no such config as dahdi-channels.conf, 
only chan_dahdi.conf



files with, apparently, different functionality, but very similar names?)

* If I'm getting power to my analog phones, but no dial tone, which 
file should I be editing?


You should be editing chan_dahdi.conf, sample below used for my channel 
bank, would I guess would also apply for an FXO/FXS card:


[channels]

switchtype=national
context=pri
signalling=pri_cpe
echocancel=yes
echotraining = yes
;echocancelwhenbridged = yes
pridialplan=unknown
group=1
rxgain=-1.0
txgain=-6.0
usecallerid=yes
callerid=asreceived
channel=1-23

context = incoming
signalling = fxs_ks
busydetect=yes
callprogress = yes
relaxdtmf=yes
group=2
callerid="Analog Trunk1" <57948..>
channel => 25

context = incoming
signalling = fxs_ks
busydetect=yes
callprogress = yes
relaxdtmf=yes
group=2
callerid="Analog Trunk2" <57948..>
channel => 26

Doug

--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, 
deserve neither Liberty nor Safety."


--
_
-- 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