How to configure TDM410P

Antonix

Joined
Apr 14, 2009
Messages
16
Likes
0
Points
0
#1
Hi,

I'm trying to install a TDM410P with one FXO module on port 4 with Elastix 1.6.
I have udpated libpri and DAHDI drivers as explained in the TDM410P manual.
I have set this paramenters:

etc\dahdi\system.conf

# Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 10 18:48:14 2010
# 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)
# channel 1, WCTDM/0/0, no module.
# channel 2, WCTDM/0/1, no module.
# channel 3, WCTDM/0/2, no module.
fxsks=4
echocanceller=oslec,4

# Global data

loadzone = it
defaultzone = it



/etc/asterisk/chan_dahdi.conf
[trunkgroups]

[channels]
context=from-pstn
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1

;Uncomment these lines if you have problems with the disconection of your analog lines
busydetect=yes
busycount=3

immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf



/etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Thu Jun 10 18:48:14 2010
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
;;; line="4 WCTDM/0/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 4
callerid=
group=
context=default



I have created trunk ZAP/1, outbound route and inbound route.
Now I can receive incoming call but if I try to make call for example to "191" I have:

-- Executing [191@from-internal:1] Macro("SIP/210-087d8218", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/210-087d8218", "AMPUSER=210") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/210-087d8218", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/210-087d8218", "1|Set|REALCALLERIDNUM=210") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/210-087d8218", "AMPUSER=210") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/210-087d8218", "AMPUSERCIDNAME=Antonio") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/210-087d8218", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/210-087d8218", "AMPUSERCID=210") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/210-087d8218", "CALLERID(all)="Antonio" <210>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/210-087d8218", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/210-087d8218", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/210-087d8218", "Using CallerID "Antonio" <210>") in new stack
-- Executing [191@from-internal:2] Set("SIP/210-087d8218", "_NODEST=") in new stack
-- Executing [191@from-internal:3] Macro("SIP/210-087d8218", "record-enable|210|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/210-087d8218", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/210-087d8218", "recordingcheck|20100611-102328|1276244608.9") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100611-102328|1276244608.9: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/210-087d8218", "") in new stack
-- Executing [191@from-internal:4] Macro("SIP/210-087d8218", "dialout-trunk|2|191||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/210-087d8218", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/210-087d8218", "0?sub-pincheck|s|1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/210-087d8218", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/210-087d8218", "DIAL_NUMBER=191") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/210-087d8218", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/210-087d8218", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/210-087d8218", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/210-087d8218", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/210-087d8218", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/210-087d8218", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/210-087d8218", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/210-087d8218", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/210-087d8218", "0|Set|REALCALLERIDNUM=210") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/210-087d8218", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/210-087d8218", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/210-087d8218", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/210-087d8218", "TRUNKOUTCID=320") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/210-087d8218", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/210-087d8218", "1|Set|CALLERID(all)=320") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/210-087d8218", "0|Set|CALLERID(all)=") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/210-087d8218", "0|SetCallerPres|prohib_passed_screen") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/210-087d8218", "1|AGI|fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern xx. matched. 191 -> 191
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/210-087d8218", "OUTNUM=191") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/210-087d8218", "custom=DAHDI/1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/210-087d8218", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/210-087d8218", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/210-087d8218", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/210-087d8218", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/210-087d8218", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/210-087d8218", "DAHDI/1/191|300|") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/210-087d8218", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/210-087d8218", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/210-087d8218", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [191@from-internal:5] Macro("SIP/210-087d8218", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/210-087d8218", "all-circuits-busy-now|noanswer") in new stack
-- <SIP/210-087d8218> Playing 'all-circuits-busy-now' (language 'en')
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/210-087d8218' in macro 'outisbusy'
== Spawn extension (from-internal, 191, 5) exited non-zero on 'SIP/210-087d8218'
-- Executing [h@from-internal:1] Macro("SIP/210-087d8218", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/210-087d8218", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/210-087d8218", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/210-087d8218", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/210-087d8218", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/210-087d8218' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/210-087d8218'

I have tried do set context to "from-zaptel" but I have the same problem.

Thanks in advance.
 

Antonix

Joined
Apr 14, 2009
Messages
16
Likes
0
Points
0
#2
I have tried to change echocancel from oslec to mg2 and now works.
How can I test oslec execution an functionality ?
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,916
Messages
130,922
Members
17,598
Latest member
giornaso
Top