Analog trunk not working

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

Analog trunk not working

Postby lmora » Thu Jun 30, 2011 11:27 am

Hi guys

I'm trying to add an analog trunk using a TDM410P card but I'm getting an error when doing manual dial from a softphone. My purpose would be to also dial from Vici but I need to solve manual dialing first.

The error:
[Jun 30 10:35:19] -- Executing [983491188@default:1] AGI("SIP/cc110-0000002e", "agi://127.0.0.1:4577/call_log") in new stack
[Jun 30 10:35:19] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Jun 30 10:35:19] -- Executing [983491188@default:2] Dial("SIP/cc110-0000002e", "DAHDI/g1/83491188||To") in new stack
[Jun 30 10:35:19] WARNING[6994]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
[Jun 30 10:35:19] == Everyone is busy/congested at this time (1:0/0/1)
[Jun 30 10:35:19] -- Executing [983491188@default:3] Hangup("SIP/cc110-0000002e", "") in new stack
[Jun 30 10:35:19] == Spawn extension (default, 983491188, 3) exited non-zero on 'SIP/cc110-0000002e'
[Jun 30 10:35:19] -- Executing [h@default:1] DeadAGI("SIP/cc110-0000002e", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CHANUNAVAIL----------") in new stack
[Jun 30 10:35:19] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0


My configuration
Dahdi hardware
vicibox:~ # dahdi_hardware
pci:0000:02:01.0 wctdm24xxp+ d161:8005 Wildcard TDM410P


/etc/dahdi/system.conf (by the way, I noticed that the port numbers are shifted starting from 4)
# Autogenerated by /usr/sbin/dahdi_genconf on Wed Jun 29 17:52:31 2011
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
fxsks=4
echocanceller=mg2,4
fxoks=5
echocanceller=mg2,5
fxoks=6
echocanceller=mg2,6
fxoks=7
echocanceller=mg2,7

# Global data

loadzone = us
defaultzone = us


CLI>dahdi show channels
vicibox*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret
pseudo default default
4 from-pstn es default
5 from-internal es default
6 from-internal es default
7 from-internal es default


CLI>dahdi show channel 4
vicibox*CLI> dahdi show channel 4
Channel: 4
File Descriptor: 11
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 1
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: yes
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 128 taps unless TDM bridged, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook


chan_dahdi.conf (do you need me to include the other parameters?)

;FXS Module
group = 1
context = default
signalling = fxs_ks
callerid=asreceived
channel = 4

;FXO Modules
group = 2
signalling = fxo_ks
context = Internal
channel = 5-7


Extensions.conf
[globals]
CONSOLE=Console/dsp ; Console interface for demo
;TRUNK=Zap/r1 ; Trunk interface
TRUNK=DAHDI/g1

[default]
include => vicidial-auto

; Local calls through Telmex
exten => _9ZXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9ZXXNXXXX,2,Dial(${TRUNK}/${EXTEN:-8},,To)
exten => _9ZXXNXXXX,3,Hangup


Also, when module reload at CLI I get this message, is it normal?
vicibox*CLI> module reload chan_dahdi.so
[Jun 30 11:21:14] -- Reloading module 'chan_dahdi.so' (DAHDI Telephony w/PRI)
[Jun 30 11:21:14] == Parsing '/etc/asterisk/chan_dahdi.conf': [Jun 30 11:21:14] Found
[Jun 30 11:21:14] == Parsing '/etc/asterisk/dahdi-channels.conf': [Jun 30 11:21:14] Found
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'switchtype' (on reload)
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'signalling' (on reload)
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'rxwink' (on reload)
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'signalling' (on reload)
[Jun 30 11:21:14] -- Reconfigured channel 4, FXS Kewlstart signalling
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'signalling' (on reload)
[Jun 30 11:21:14] -- Reconfigured channel 5, FXO Kewlstart signalling
[Jun 30 11:21:14] -- Reconfigured channel 6, FXO Kewlstart signalling
[Jun 30 11:21:14] -- Reconfigured channel 7, FXO Kewlstart signalling
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'signalling' (on reload)
[Jun 30 11:21:14] -- Reconfigured channel 4, FXS Kewlstart signalling
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'signalling' (on reload)
[Jun 30 11:21:14] -- Reconfigured channel 5, FXO Kewlstart signalling
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'signalling' (on reload)
[Jun 30 11:21:14] -- Reconfigured channel 6, FXO Kewlstart signalling
[Jun 30 11:21:14] WARNING[12475]: chan_dahdi.c:14007 process_dahdi: Ignoring any changes to 'signalling' (on reload)
[Jun 30 11:21:14] -- Reconfigured channel 7, FXO Kewlstart signalling
[Jun 30 11:21:14] == Parsing '/etc/asterisk/users.conf': [Jun 30 11:21:14] Found


Please let me know if you need me to show additional information

Rgds
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby covarrubiasgg » Thu Jun 30, 2011 11:59 am

post lsdahdi

the channels seem to be alarmed
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Postby williamconley » Thu Jun 30, 2011 12:03 pm

and do not forget that this is a pure asterisk/hardware issue ... you'll likely get more support on the manufacturer's site or an asterisk forum. (of course, we do have some good people, but there are many more on some of those wider sites).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby lmora » Thu Jun 30, 2011 3:15 pm

This is what comes out with lsdahdi

vicibox:~ # lsdahdi
### Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
4 FXO FXSKS (In use) (SWEC: MG2) RED
5 FXS FXOKS (In use) (SWEC: MG2)
6 FXS FXOKS (In use) (SWEC: MG2)
7 FXS FXOKS (In use) (SWEC: MG2)


Thanks for your support

Luis
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby covarrubiasgg » Thu Jun 30, 2011 4:07 pm

Your channel 4 is alarmed, wich is the only channel on group 1

Is this connected direct to a land line? or what are you trying to connect?
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Postby lmora » Thu Jun 30, 2011 5:03 pm

Sorry I pasted the result when the line was unplugged.

When land line is plugged the result is:
vicibox:~ # lsdahdi
### Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
4 FXO FXSKS (In use) (SWEC: MG2)
5 FXS FXOKS (In use) (SWEC: MG2)
6 FXS FXOKS (In use) (SWEC: MG2)
7 FXS FXOKS (In use) (SWEC: MG2)

Thanks
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby covarrubiasgg » Thu Jun 30, 2011 5:25 pm

In your previous output of "dahdi show channel 4" It was alarmed, maybe this question may sound dumb but, did you have the line plugged when you try the first dial?

Because it says:

[Jun 30 10:35:19] WARNING[6994]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
[Jun 30 10:35:19] == Everyone is busy/congested at this time (1:0/0/1)

And you didnt answer, what are you connecting to the card? Land Line, Old Dilers, Analog phone system, could you post more information related with you setup? asterisk version, dahdi version, etc
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Postby williamconley » Thu Jun 30, 2011 6:52 pm

And are you sure you have the correct type of module (ie: is it a Trunk module or a Station module?) in that slot. If you plug a phone instead of a trunk and your alarm clears ... LOL

And you HAVE verified that the trunk actually works, right?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby lmora » Fri Jul 01, 2011 10:56 am

William, yes, I'm sure I have the correct type of modules installed (1 red: trunk module and 3 green: station module).

Covarrubias, I have an ordinary land line plugged into channel 4.
The version of DAHDI Tools installed is 2.4.1.
Asterisk 1.4.39.2-vici

By the way, regarding the result of 'dahdi show channel 4' posted I just realized that I took the snapshot when the line was disconnected.

The correct value while the POTS (ordinary land line) is plugged into channel 4 is:
vicibox*CLI> dahdi show channel 4
Channel: 4
File Descriptor: 11
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 0
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: yes
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 128 taps unless TDM bridged, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Offhook


William, doing the experiment of connecting an extension to the channel 4 instead the result of dahdi show channel 4 is:

vicibox*CLI> dahdi show channel 4
Channel: 4
File Descriptor: 11
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 1
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: yes
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 128 taps unless TDM bridged, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook


William, the trunk is working however I'm still get same result when I try to make a call (an the land line is connected to channel 4 )
[Jul 1 10:48:19] -- Executing [980592895@default:1] AGI("SIP/cc110-00000135", "agi://127.0.0.1:4577/call_log") in new stack
[Jul 1 10:48:19] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Jul 1 10:48:19] -- Executing [980592895@default:2] Dial("SIP/cc110-00000135", "DAHDI/g1/80592895||To") in new stack
[Jul 1 10:48:19] WARNING[31459]: app_dial.c:1310 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
[Jul 1 10:48:19] == Everyone is busy/congested at this time (1:0/0/1)
[Jul 1 10:48:19] -- Executing [980592895@default:3] Hangup("SIP/cc110-00000135", "") in new stack
[Jul 1 10:48:19] == Spawn extension (default, 980592895, 3) exited non-zero on 'SIP/cc110-00000135'
[Jul 1 10:48:19] -- Executing [h@default:1] DeadAGI("SIP/cc110-00000135", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CHANUNAVAIL----------") in new stack
[Jul 1 10:48:19] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0


could it be a failure from the factory in the trunk module or in my configuration files?

thanks guys

Luis
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby covarrubiasgg » Fri Jul 01, 2011 11:33 am

lmora wrote:could it be a failure from the factory in the trunk module or in my configuration files?



Its hard to say Luis, your config files seems to be right. if you are 100% your landline is working fine and the cable you are using is working too, you should try to play around with the configuration.

Set everything to NO, busydetect, inmediate, echocancel, etc etc.

If you Card has echo canceller module, remove it, and try to keep you setup as simple as posible

and make sure you dahdi modules are well loaded "lsmod"
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Postby williamconley » Fri Jul 01, 2011 12:42 pm

williamconley wrote:And you HAVE verified that the trunk actually works, right?
I do not see a notation that you plugged in a normal phone and called successfully. Can't overlook that. LOL
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby lmora » Fri Jul 01, 2011 3:03 pm

William, sorry I didn't mention that the land line is working fine when you use it with a standard phone.

Covarrubias, I'll follow your suggestion to keep the chan_dahdi.conf simpler.

thanks
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby williamconley » Fri Jul 01, 2011 3:45 pm

have you tried pure asterisk (non-vicidial dialplan) with this card to try to get it working according to manufacturer's instructions?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby lmora » Fri Jul 01, 2011 4:13 pm

williamconley wrote:have you tried pure asterisk (non-vicidial dialplan) with this card to try to get it working according to manufacturer's instructions?


Actually that is what I've done I even didn't go into any vicidial screen but edited asterisk conf files in vi (extensions.conf, chan_dahdi.conf, /etc/dadhi/system.conf) =(
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby lmora » Fri Jul 01, 2011 5:13 pm

I did solve it guys.

The error was in the definition of the global variable TRUNK.

chan_dahdi.conf for reference
;FXS Module
group = 1
context = default
signalling = fxs_ks
callerid=asreceived
channel = 4


Trunk definition in extensions.conf
was:
TRUNK=DAHDI/g1 => The number of the group


has to be:
TRUNK=DAHDI/4 => The number of the channel


Thanks for bearing me despite this was a pure asterisk/digium matter.

Luis
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby williamconley » Fri Jul 01, 2011 5:29 pm

interesting.

look up the method for creating a "trunk group", ordinarily all your digium trunks are expected to be in group 1 ... thus DAHDI/g1 would work. somehow it was not in that group? hm.

But if you got it workin ...! cool
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby covarrubiasgg » Sun Jul 03, 2011 11:17 am

williamconley wrote:.

look up the method for creating a "trunk group", ordinarily all your digium trunks are expected to be in group 1 ... thus DAHDI/g1 would work. somehow it was not in that group? hm.


Agree g1 should work, but if you only have one channel and you are not expecting to have more channels there, then its ok to put directlu the channels.

It would be nice if you have time to try G1, r1 and R1 just for the lolz :P
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Postby lmora » Sun Jul 03, 2011 12:36 pm

right at this moment I'm reading the book "Asterisk 1.4 The professional's guide" and they say:
We only use "group" when we have multiple channels that we want to treat as a single entity from the dialplan. This is very useful for situations where you have a number of outgoing analog lines or PRI channels


As you remember I only have 1 trunk channel.

Besides, if someone has the same error despite of having more than 1 channel in the group you can reference to a case reported to the Digium Forum with such characteristics. => click here <=
Vicibox Redux v.3.1.10 from .iso | Version: 2.4-327c Build: 110510-1637 | Asterisk 1.4.39.2-vici | Single Server | TDM410P Digium | No additional software on server
lmora
 
Posts: 153
Joined: Wed Jul 01, 2009 7:17 pm
Location: Mexico

Postby covarrubiasgg » Sun Jul 03, 2011 3:01 pm

I am not trying to argue with the book :P, but a group is just a access control for multiple channels, besides you can have a group with only one channel on it.

Thats why i was asking to try G1, r1 and R1, because each of those setting will try to handle the group diferent, anyway your issue is arleady solve.
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 59 guests