Skip to main content

Problems with trunk configuration

Posted by zar on Thu, 12/10/2009

Hi, I'm trying out thirdlane pbx, but I'm having trouble with the outbound trunk config.
I have a digium TDM22B card (2 Fxo and 2 Fxs)
I used the dahdi_genconf command and it detect the card.
I'm using a pstn for outbound dialing.
The dialpattern I used is _NXXXXX and assign a dahdi trunk to it, that I created.
I read in the administrator guide that you should create trunk G1 etc for outside calls, where can I create the groups, I using I tried in the thirdlane asterisk and root thirdlane but I get only error.

Thank you in advance


Submitted by zar on Thu, 12/10/2009 Permalink

Thank you for answering me eeman, but I've tried the reload chan_dahdi.so in the CLI and got
/etc/asterisk/chan_dahdi.conf FOUND and /etc/asterisk/users.conf Found

How do I set up the chan_dahdi.conf file in CLI.

Thank you

Submitted by eeman on Thu, 12/10/2009 Permalink

depends on multiple things like the country you are in, the signaling type, the line buildout, etc

do you at least have /etc/dahdi/system.conf set up correctly? that too has to be correct

Submitted by zar on Fri, 12/11/2009 Permalink

I've tested the /etc/dahdi/sytem.conf in root of thirlane, but it gave me "permission denied", is there a way to gain acces to it?
And I also tried it in CLI but nothing was found.

Submitted by zar on Fri, 12/11/2009 Permalink

I tried the /etc/dahdi/system .conf and also etc/asterisk/chan_dhadi.conf, both gave me file not found.
So I tried etc/asterisk/more dahdi_channels.conf and i got this result

;;;line= "1 WCTDM/4/0 FXSKS (EC:MG2)"
signalling= fxs_ks
callerid=asrecieved
group=0
context=from-outside
channel=>1
callerid=
group=
context=default

;;;line= "2 WCTDM/4/1 FXSKS (EC:MG2)"
signalling= fxs_ks
callerid=asrecieved
group=0
context=from-outside
channel=>2
callerid=
group=
context=default

;;; line= "3 WCTDM/4/2 FXOKS (EC:MG2)"
signalling= fxo_ ls
callerid="Channel 3" <4003>
mailbox= 4003
group= 5
context= from-inside
channel=>3
callerid=
mailbox=
group=
context=default

;;; line= "4 WCTDM/4/3 FXOKS (EC:MG2)"
signalling= fxo_ ls
callerid="Channel 4" <400>
mailbox= 4004
group= 5
context= from-inside
channel=>4
callerid=
mailbox=
group=
context=default

This is all I'm getting.

Submitted by eeman on Fri, 12/11/2009 Permalink

thats all wrong...

did you install dahdi? did you do a make config to install the system.conf file in /etc/dahdi/ ?
the lack of existence of chan_dahdi.conf means that when you installed asterisk before installing webmin you failed to make samples. Making samples now will destroy your configuration so you need to go into your program source code and go into the configs/ directory and take the chan_dahdi.conf.sample and copy it into /etc/asterisk/ as chan_dahdi.conf

after you do all that you still need to configure both system.conf and chan_dahdi.conf

is that base card a TDM400 or a TDM410 ? a lack of the echo cancellor is going to be your worst nightmare. If your card does not support the VPM032 then you need to buy the HPEC license and follow the directions to compile HPEC support into your dahdi drivers and use those. The free echo cancellors like MG2 just suck.

Submitted by zar on Mon, 12/14/2009 Permalink

I've decided to start all over again, since my configuration weren't much.
The instruction I found on how to install DAHDI and Configure were from red fone

http://support.red-fone.com/index.php?_m=knowledgebase&_a=viewarticle&k…

I'm installing dahdi right now, but when I typed in 'tar -xzvf dahd-tools-2.0.0.tat.gz', it tells me the following:

cannot open: no such file or direction
error is not recoverable: exiting now
child returned status 2
error exit delayed from previous errors.

I did the installation in root@thirdlane, using asterisk 1.6 and my base card is TDM400 from digium.

I think I'm using the wrong instruction, if so can someone point to the right instruction site.

Thanks in advance

Submitted by eeman on Mon, 12/14/2009 Permalink

did you download just dahdi-tools or the dahdi-complete file?

did you know that you get free digium support setting up and configuring the dahdi drivers from Digium as long as you can give htem the serial number of the card?

Submitted by zar on Mon, 12/14/2009 Permalink

I just downloaded dahdi-tools.
No I didn't know that I could get digium support.
Thank you for the tip eeman, I'll check it out right now.

Submitted by zar on Thu, 12/17/2009 Permalink

I've installed dahdi-complete and libss after taking down my old thirdlane config and I've checked the chan_dahdi.conf it's seems present in my file

My question is what do I type to make a config to install system.conf file in /etc/dahdi, edit trunk group to name G1, because I'm not fully famialiar with all the commands.
I know that you type 'cd /etc/dahdi or more dahdi_channels.conf' for example depeding which directory to use the config, so if someone could help me, it would mean alot.

Thank you in advance

Submitted by zar on Mon, 12/21/2009 Permalink

I've made my config file, but my problem is the renaming of the trunkgroup to g1, do i edit it in chan_dahdi.conf under the trunkgroup=>1,24,48
trunkgroup=>1,24
, because I don't see specificly where to rename the trunkgroup.

Submitted by zar on Mon, 12/21/2009 Permalink

Hi I forget to say something, i copied the chan_dahdi.conf.sample-fxo.conf in chan_dahdi.conf.
Is it in here I have to call my trunk G1 for it to work and where exactly?

Submitted by eeman on Mon, 12/21/2009 Permalink

no, dont mess with the [trunkgroups] section... that is just for NFAS

leave everything under it commented out..

group=1 is how you define a G1 and thats done just before your channels=>1-5

didnt digium give you a hand?

Submitted by zar on Tue, 12/22/2009 Permalink

Ok I didn't mess with the runkgroup and now i know about the meaning of G1.
Thank you eeman.

Digium did help me with the part on how to download dahdi complete ect.

But what does '#of digits to strip' and 'String to prepend' mean?

Submitted by zar on Tue, 12/22/2009 Permalink

Sorry I asked the wrong form of question, i meant to ask 'what do they mean by digits will be stripped and string will be prepended to the dialed number in the administrator guide.

Submitted by zar on Tue, 12/22/2009 Permalink

I forgot also to ask something, in dahdi -channels.conf the first line is assigned to group 1 fxs, should I assigned line 3 fxo also to group 1 since it's empty.

Submitted by eeman on Tue, 12/22/2009 Permalink

get rid of dahdi-channels.conf .. just write everythign inside chan_dahdi.conf. if you want to use G1 then you cannot define each channel individually. You must configure them in a range of channel =>

digits to strip and digits to prepend are self-explanatory..

you dial 5551212

if you want to strip 1 digit it becomes 551212 when you send it out
if you prepend a digit, say 7, then it becomes 75551212. If you strip 1 digit and prepend a 7 then its 7551212.

Submitted by zar on Tue, 12/22/2009 Permalink

eeman sorry to bother you again, but should I take what is in dahdi-channel and write in under trunkgroups of chan_dahdi.conf.
Thank you for also explaining the digits to strip and digits to prepend

Submitted by zar on Sun, 12/27/2009 Permalink

Ok I've typed everything I needed under [channels]. I used reload chan_dahdi.so and I was notified that I must run "module load chan_dahdi.so" and fix whatever is preventging the module from being initialized.
I ran "module load chan_dahdi.so" but now I recieved this message:

---------------------------

Command 'module load chan_dahdi.so' failed.
Warning [2725]: pbx.c :4569 ast_register_application2: Already have an application 'DAHDI Send Keypad Facility' == PARSINF. 'etc/asterisk/chan_dahid.conf':==Found

Warning[2725]: conf.c:1164 process_text_line: NO '=' (equal sign) in line 9 of /etc/asterisk/chan_dahdi.conf ==Parsing '/etc/asterisk/dahdi-channels.conf:== Found
==Parsing '/etc/asterisk/users.conf': == Found

Warning [2725]: chan_dahdi/c: 4670 handle_alarms: Detected alarm on channel 1: Red alarm -- Registered channel 1, FXS jewlstart signalling.

Warning [2725]: Chan_ dahdi.c: 4670 handle_alarms: Detected alarm on channel 2: Red Alarm -- Registered channel 2, FXS Kwelstart signalling.

Error [2725]: FXS Kwelstart signalling channel 3 is FXO Loopstart but line is in FXO kewstart signalling

Error [2725]: chan_dahdi.c: 14193 build-channels: Unable to register channel 3.

--------------------------------

I've deleted dahdi-channels.conf, but now I don't understand this error.

Submitted by zar on Mon, 12/28/2009 Permalink

I've removed the #include statement completely and ran "module load chan_dahdi.so" but now I recieved this message:

--------------
Command 'module load chan_dahdi.so' failed.
Warning [8958]: pbx.c :4569 ast_register_application2: Already have an application 'DAHDI Send Keypad Facility' == PARSING 'etc/asterisk/chan_dahid.conf':==Found

Warning[8958]: conf.c:1164 process_text_line: NO '=' (equal sign) in line 9 of /etc/asterisk/chan_dahdi.conf ==Parsing '/etc/asterisk/users.conf': == Found

Warning [8958]: chan_dahdi/c: 4670 handle_alarms: Detected alarm on channel 1: Red alarm
-- Registered channel 1, FXS jewlstart signalling.

Warning [8958]: Chan_ dahdi.c: 4670 handle_alarms: Detected alarm on channel 2: Red Alarm -- Registered channel 2, FXS Kewstart signalling.

Error [8958]: chan_dahdi.c: 8800 mkintf: Signalling requested on channel 3 is FXO Loopstart but line is in FXO Kewstart signalling.

Error [8958]: chan_dahdi.c: 14193 build_channels: Unable to registerchannel '3'
------------

Submitted by zar on Mon, 12/28/2009 Permalink

How can i format my file correctly? I thought reload chan_dahdi.so would do that, also there's one thing that also happened, I connected my trunk to my card and got a new error

Command 'module load chan_dahdi.so' failed.
Warning [12858]: pbx.c :4569 ast_register_application2: Already have an application 'DAHDI Send Keypad Facility' == PARSING 'etc/asterisk/chan_dahid.conf':==Found

Warning[12858]: conf.c:1164 process_text_line: NO '=' (equal sign) in line 9 of /etc/asterisk/chan_dahdi.conf ==Parsing '/etc/asterisk/users.conf': == Found
--Registered channel 1, FXS kewlstart signalling.

Warning [12858]: Chan_ dahdi.c: 4670 handle_alarms: Detected alarm on channel 2: Red Alarm -- Registered channel 2, FXS Kewstart signalling.

Error [12858]: chan_dahdi.c: 8800 mkintf: Signalling requested on channel 3 is FXO Loopstart but line is in FXO Kewstart signalling.

Error [12858]: chan_dahdi.c: 14193 build_channels: Unable to registerchannel '3'.

-----

Submitted by eeman on Mon, 12/28/2009 Permalink

that doesnt write a file. you have to write the file, module reload on re-reads the file. why didnt digium write this file for you when you called them?

Submitted by zar on Mon, 12/28/2009 Permalink

Digium could have written the file 'chan_dahdi.conf'?, I'll ask them about it.
eeman you said the file is not formatted correctly (it's the chan_dahdi.conf right) How do i format it correctly?

Submitted by zar on Tue, 01/05/2010 Permalink

Hi eeman Happy New Year, I've done everything that was needed to be done and also contacted digium and they helped me also.
I ran the module load chan_dahdi.so and got the following messsage:

Unable to load chan_dahdi.so
command 'module load_dahd.so' failed

Warning[14987]: loader.c: 652 loader_resource: Module 'chan_dahdi.so already exist.

Digium told me that it probably already been loaded, I've checked because I unloaded it and loaded it back up.
The told me to also do in asterisk cli "logger reload" then 'core set verbose 10'

Now when I work in webmin, I've set my dial pattern _NXXXXXX and trunk DAHDI/G1.
I've used tenant of thirdlane and tried to make a call using outboud route only, I've not config inboud route yet, because i wanted try the outbound call only alone.
When I press a keystone i immediatly get a busy signal, now I'm trying to figure out else I did wrong.
Also i did make a tenant of my tone to try it out, but got the same results
Any help would be greatly appreciated.

Thank you in advance