Problems with Panasonic KX-TDA30 unable to dial out

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
I have a Panasonic KX-TDA30 switchboard which I will phase out once the PIAF system is fully functional. For the moment I have connected the 3 analogue line ports on the TDA30 to 3 OpenVox FXS ports.

Incoming calls are fine. However, outgoing calls from the Panasonic system phones are failing as the numbers sent seem to get corrupted.

Plugging a simple POTS phone into an PXS port works fine for outgoing calls, but the CDR is showing various corruptions of the number coming from the Panasonic phones.

Some examples: Each pair shows what was dialled and what the CDR shows:

902088027xxx
90208807xxx

902012345678
9020145678

9020xx095033
900xx0950

9020xx095033
9020xx0950

The errors are reasonably consistent but not absolutely so.

Any ideas as to where I go from here?

(I had an idea to try pulse dialling - can the OpenVox module deal with that?)
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
Just a thought... Have you verified impedance matches between each system? Impedance mismatch can cause problems ranging from echo to DTMF recognition problems.

Typically, most cards and systems I've seen default to 600 ohms. However, it is worth having a look at if you haven't done so already.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Randy, that sounds well worth trying. How do I go about changing experimenting with the settings?
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
I'm unfamiliar with the Panasonic unit. Do you have an administrator's guide for it?

Looking at one of your other posts, am I correct in presuming you're in the UK?

My thoughts on this when I saw that were that your Panasonic unit is probably configured for interfacing with British Telecom while your OpenVox card is probably defaulted to US specs, unless you've changed that via the opermode option.

Not being familiar with OpenVox, do you know which driver your card uses? Specifically, which card do you have? It wasn't mentioned earlier in this thread.

It's been some 21 years since I've worked around any BT lines. Do you still have to have a master socket to wire off of if you want another extension?

Anyway, if you can follow-up on any of the above, it would be helpful.

EDIT: Found a "user manual" which appears to be the admin's guide. I couldn't find any mention of being able to modify impedance. It also appears this is strictly a UK model so the impedance is probably fixed.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
I have the admin program for configuring the Panasonic and the only thing that looked worth trying was DTMF width but that did not help. The impedance is probably a hardware jumper or maybe not even that as the unit would have been made/customised specifically for the UK market - correct deduction on your part.

Changing the OpenVox card sounds much more achievable.

As a complete novice to Asterisk etc. I have no idea how to find the driver being used. I am using Asterisk 1.4.21.2.

The card is, I believe an a400P with 4 ports (3*FXS + 1*FXO).

The card does work with a regular BT POTS phone but that might be just luck. So I am keen to learn how to play with the configuration (where is opermode to be found?)

(A master socket is the normal way things are done here. Not so much as a technical issue but to be able to isolate the wiring up to the master socket as BT responsibility and the rest as the householders)
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
My fault for not asking sooner, but, could you post the output of status, as well.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Where do I get 'status' from? All I can think of is FreePBX System Status which does not look too relevant.
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
Open up a SSH session to the PIAF server or go to the console. Log in and after on the left you see "root@pbx:" or something like that, type "status". Copy and paste that here.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
root@pbx:~ $ status
PBX in a Flash Version 1.4 Daemon Status
********************************************************************
* Asterisk * ONLINE * Zaptel * ONLINE * MySQL * ONLINE *
* SSH * ONLINE * Apache * ONLINE * Iptables * ONLINE *
* Fail2ban * OFFLINE * IP Connect* ONLINE * Ip6tables * ONLINE *
* BlueTooth * ONLINE * Hidd * ONLINE * NTPD * ONLINE *
* Sendmail * ONLINE * Samba * OFFLINE * Webmin * ONLINE *
* Ethernet0 * ONLINE * Ethernet1 * N/A * Wlan0 * N/A *
********************************************************************
* Running Asterisk Version : Asterisk 1.4.21.2
* Asterisk Source Version : 1.4.21.2
* Zaptel Source Version : 1.4.12.1
* Libpri Source Version : 1.4.10
* Addons Source Version : 1.4.7
********************************************************************
pbx.local on 10.27.27.245 - eth0
CentOS release 5.2 (Final) :32 Bit Kernel: 2.6.18-92.1.22.el5
You have new mail in /var/spool/mail/root
root@pbx:~ $ root@pbx:~ $
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
I have been looking around at some of the config files and copy below the contents of

zapata.conf
zapata-channels.conf
modprobe.conf

as it may show up something to experienced eyes.

(I spotted one thing which I wonder if it is the cause of an other problem: The Panasonic phones do not show caller ID on incoming calls.

Could it be the lines

callerid="Channel 2" <201>
callerid="Channel 3" <202>
callerid="Channel 4" <203>

instead of

callerid=asreceived

that may be causing that?)
===============================
Path: /etc/asterisk

zapata.conf

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
busydetect=no
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-channels.conf



;Include AMP configs
#include zapata_additional.conf
======================================================

zapata-channels.conf

; Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;

; Span 1: WCTDM/0 "Wildcard TDM400P REV E/F Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (In use) RED"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-pstn
cidsignalling=v23
cidstart=polarity
channel => 1
busydetect=no
;;; line="2 WCTDM/0/1 FXSKS (In use) RED"
;signalling=fxs_ks
;callerid=asreceived
;group=2
;context=from-pstn
;cidsignalling=v23
;cidstart=polarity
;channel => 2
;context=default
;cidsignalling=
;cidstart=

signalling=fxo_ks
callerid="Channel 2" <201>
mailbox=201
group=5
context=from-internal
channel => 2
callerid=
mailbox=
group=


;;; line="3 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 3" <202>
mailbox=202
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=

;;; line="4 WCTDM/0/3 FXOKS"
signalling=fxo_ks
callerid="Channel 4" <203>
mailbox=203
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=

======================================================

Path: /etc

modprobe.conf

alias eth0 e1000
alias scsi_hostadapter ata_piix
install wcfxs /sbin/modprobe --ignore-install wcfxs opermode=UK
install wctdm /sbin/modprobe --ignore-install wctdm opermode=UK
install wctdm24xxp /sbin/modprobe --ignore-install wctdm24xxp opermode=UK
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
LesD,

Since you're running Zaptel, I had to do a little digging to see if the same options exist in the Zaptel driver. It appears they do. According to the OpenVox wiki, the A400P uses the wctdm kernel module. It's been a while since I've dealt with Zaptel, so bear with me if some of the following doesn't seem to work.

While we're not modifying any configuration files at this point, it's still a good idea to have a back-up. This should be relatively safe to try.

1) At the console or via SSH, we want to stop Asterisk and Zaptel:

Code:
amportal stop
amportal kill
service zaptel stop
2) Next, you'll want to do the following:
Code:
lsmod | grep -i wctdm
lsmod | grep -i zaptel
Both of these command should not return anything. If they do, try to remove the modules manually:
Code:
rmmod zaptel
rmmod wctdm
3) We want to load the modules, manually with the following options:
Code:
modprobe zaptel 
modprobe wctdm opermode=UK fxshonormode=1
4) 5) Last thing to do:
Code:
 amportal start
See if your problem has disappeared, gotten worse, or has no change.

To put everything back the way it was:
Code:
 amportal stop
amportal kill
service zaptel stop
service zaptel start
amportal start
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
I spotted one thing which I wonder if it is the cause of an other problem: The Panasonic phones do not show caller ID on incoming calls.
My home system only has callerid=asreceived. It's worth a try. The only other thing to look at would be the cidsignalling= option. Not knowing anything about BT's CID, I did a little reading. Your settings seem to be appropriate assuming the Panasonic phones expect that type of signalling.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Thank you for all this effort.

I will try that in the evening so as not to disrupt calls.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Just tried that and the net result was all three fxs channels died. Reinstating as per your instructions resurrected them.
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
Can you post the loaded kernel modules for me? The wctdm kernel module may not be the correct module.

Code:
lsmod
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Module Size Used by
xpp_usb 21064 0
xpp 135748 1 xpp_usb
wcusb 18176 0
wctdm 39628 4
wcfxo 15904 0
wctdm24xxp 115428 0
wcte11xp 26912 0
wct1xxp 17440 0
wcte12xp 65764 0
wct4xxp 298752 0
tor2 91936 0
zaptel 190980 20 xpp,wcusb,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,wct4xxp,tor2
autofs4 24517 2
hidp 23105 2
rfcomm 42457 0
l2cap 29505 10 hidp,rfcomm
bluetooth 53797 5 hidp,rfcomm,l2cap
ip_conntrack_netbios_ns 6977 0
xt_state 6209 2
iptable_filter 7105 1
iptable_mangle 6849 0
iptable_nat 11205 0
ip_nat 20973 1 iptable_nat
ip_conntrack 53025 4 ip_conntrack_netbios_ns,xt_state,iptable_nat,ip_nat
nfnetlink 10713 2 ip_nat,ip_conntrack
ip_tables 17029 3 iptable_filter,iptable_mangle,iptable_nat
ip6t_REJECT 9409 1
xt_tcpudp 7105 23
ip6table_filter 6849 1
ip6_tables 18053 1 ip6table_filter
x_tables 17349 6 xt_state,iptable_nat,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
ipv6 258145 29 ip6t_REJECT
xfrm_nalgo 13765 1 ipv6
crypto_api 11969 1 xfrm_nalgo
dm_multipath 22089 0
video 21193 0
sbs 18533 0
backlight 10049 1 video
i2c_ec 9025 1 sbs
button 10705 0
battery 13637 0
asus_acpi 19289 0
ac 9157 0
parport_pc 29157 0
lp 15849 0
parport 37513 2 parport_pc,lp
sg 36189 0
ide_cd 40033 0
i2c_i801 11597 0
serio_raw 10693 0
crc_ccitt 6337 1 zaptel
e1000 114641 0
cdrom 36705 1 ide_cd
i2c_core 23745 2 i2c_ec,i2c_i801
pcspkr 7105 0
dm_snapshot 21477 0
dm_zero 6209 0
dm_mirror 29125 0
dm_mod 61405 9 dm_multipath,dm_snapshot,dm_zero,dm_mirror
ata_piix 22341 2
libata 143997 1 ata_piix
sd_mod 24897 3
scsi_mod 134605 3 sg,libata,sd_mod
ext3 123593 2
jbd 56553 1 ext3
uhci_hcd 25421 0
ohci_hcd 23261 0
ehci_hcd 33357 0
You have new mail in /var/spool/mail/root
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
As an aside: You may have noticed in the end of my previous post the line:

You have new mail in /var/spool/mail/root

I have had a look at the file and it contains emails from the system.

1. How do I get these emails sent externally?
2. How do I view these email?
3. How do I delete them?
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
As an aside: You may have noticed in the end of my previous post the line:

You have new mail in /var/spool/mail/root

I have had a look at the file and it contains emails from the system.

1. How do I get these emails sent externally?
2. How do I view these email?
3. How do I delete them?
1. I believe you can do that in Webmin. Servers>Sendmail Mail Server>

2. Type 'mail' at the command line or through Webmin. Servers>Sendmail Mail Server>Read User Mail>root

3. Easiest way is through Webmin. Servers>Sendmail Mail Server>Read User Mail>root -- To delete all, hit the Delete All button at the bottom.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Rossiv: Your suggestion re sending mail externally:

I had a look at Sendmail and the only thing relevant looks like 'Domain Routing'. I put an entry there to route pbx.local to my domain but it did not work.

The routing screen does mention that routed domains must not be in the local domains list. Going there, it seems that pbx.local is hard-wired in for local delivery.

What I need to do is find where Asterisk and Linux the pbx.local domains are used.
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Thank you. That has worked just fine for root.

Where do I put it for mail user: asterisk? (there is no /asterisk/ directory)

The documentation I looked at says:

"When delivering email to a user, sendmail checks to see if the user has a .forward file in his home directory."

What is the home directory for user asterisk?
 

Members online

Forum statistics

Threads
25,825
Messages
167,849
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top