Tone mode/indications for Thailand + echo on ZAP

CoolHand

Joined
Sep 17, 2009
Messages
5
Likes
0
Points
0
#1
Problems:

1) Call termination (related to tone mode/indications?)

Call termination works when performed on the asterisk side (analog phone), but the dahdi channel doesn't hang up when the call is terminated from an outside line (mobile phone in this case). I can see this with "dahdi show channel 3" and the "Echo Cancellation: 128 taps unless TDM bridged, currently ON" will remain ON until the call is finally terminated after 30 seconds of beeps and 5 - 10 seconds of a VERY loud tone - which all ends in voicemail messages... OUCH! I uncommented the busydetect=yes and busycount=3 lines in chan_dahdi.conf, and the calls are terminated now, but it's sloppy and still plays a few beeps on the asterisk extensions before terminating calls (also has the beeps at the end of voicemail messages). I'm also worried that issues with other tones may crop up.

I think resolving this involves the following 2 changes. I'm not sure how to go about the first, and not sure if I'm doing the second properly.

a) changing the tone mode from 0 (US) to 3 (Thailand) - how? It appears this what section 14.4.2 in Elastix without Tears is about. I need to edit modprobe.conf, but with what settings? The card used in the example is an OpenVox A400P. Could I use the same settings with the Yeastar TDM800?

b) adding Thailand tone indications to the indications.conf - I already did this and set it to TH. Since this is not built into freepbx yet, General Settings shows my last choice, Japan, and if anything is update on that page the Thailand entry and all it's settings are removed from the file and the selection is changed back to whatever is selected on the page at the time. There is a ticket open to add the config for Thailand here, http://www.freepbx.org/trac/ticket/3717 which is where I got the settings to use (copied below). Is there an east place to make the changes permanent, such as a php or conf file, or a new entry in the db?


2) Echo

First few test calls worked with mobile phone - no echo. Now there is sporadic echo on the outside line (mobile phone), but no echo in voicemail messages. Should i follow the Elastix without Tears guide and remove the echo settings under General Settings for the ZAP trunks? The guide is a bit old so I wasn't sure if that was still relevant.


Hardware: The system has a Yeastar TDM800 with 2 FXO and 2FXS channels. Not using SIP or IP phones for now.


elastix*CLI> dahdi show channel 3
Channel: 3I>
File Descriptor: 17
Span: 1
Extension: >
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0I>
InAlarm: 0
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1I>
Propagated Conference: -1
Real in conference: 0
DSP: no*CLI>
Relax DTMF: no
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



elastix*CLI> dahdi show cadences
r1: 125,125,2000,4000
r2: 250,250,500,1000,250,250,500,4000
r3: 125,125,125,125,125,4000
r4: 1000,500,2500,5000



[root@elastix ~]# dmesg | grep tone
dahdi: Registered tone zone 0 (United States / North America)



[root@elastix ~]# dmesg | grep FXO
Module 2: Installed -- AUTO FXO (FCC mode)
Module 3: Installed -- AUTO FXO (FCC mode)



Borrowed from http://www.novavox.co.uk/docs/install-g ... ndards.pdf

"The table below provides details for global line standard settings based on Si3014/Si3034 
DAA chip specification. The mode name / no. information corresponds to the mode settings 
provided by the patch."

Country OHS ACT DCT RZ RT LIM VOL Mode Name Mode No.
Thailand 0___0___1__0__0__0__0____JATE______3 



indications.conf - settings used from http://www.freepbx.org/trac/ticket/3717

[th]
description = Thailand
; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf
ringcadence = 1000,4000
dial = 400*50
busy = 400/500,0/500
ring = 420/1000,0/5000
congestion = 400/300,0/300
callwaiting = 1000/400,10000/400,1000/400
; DIALRECALL - not specified - use special dial tone instead.
dialrecall = 400*50/400,0/100,400*50/400,0/100
; RECORDTONE - not specified
record = 1400/500,0/15000
; INFO - specified as an announcement - use special information tones instead
info = 950/330,1400/330,1800/330
; STUTTER - not specified
stutter = !400/200,!0/200,!400/600,!0/200,!400/200,!0/200,!400/600,
 

CoolHand

Joined
Sep 17, 2009
Messages
5
Likes
0
Points
0
#2
Okay, so it appears from lots of digging that Thailand used to be listed in the indications.conf file but is not anymore.

Any idea why this was removed, from FreePBX anyway, and won't be back in until 2.7?

Does this have anything to do with the change from zaptel to dahdi or is this just a freepbx thing?

Does anyone have any idea on how I could get this working before it might show up in freepbx 2.7 release.

In an older installation that's been upgraded to 1.5.2-2, i have an indications.conf.rpmnew with thailand tone data in there. What is this file and why is the same thailand info not in the indications.conf file? Is it enough to copy that info from that file into the indications.conf on the other system and change the country=us to country=th?

Here is the Thailand specific data from indications.conf.rpmnew

[th]
description = Thailand
ringcadence = 1000,4000
; Reference: http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf
dial = 400*50
busy = 400/500,0/500
ring = 420/1000,0/5000
congestion = 400/300,0/300
callwaiting = 1000/400,10000/400,1000/400
; DIALRECALL - not specified - use special dial tone instead.
dialrecall = 400*50/400,0/100,400*50/400,0/100
; RECORDTONE - not specified
record = 1400/500,0/15000
; INFO - specified as an announcement - use special information tones instead
info = 950/330,1400/330,1800/330
; STUTTER - not specified
stutter = !400/200,!0/200,!400/600,!0/200,!400/200,!0/200,!400/600,!0/200,!400/200,!0/200,!400/600,!0/200,!400/200,!0/200,!400/600,!0/200,400
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,912
Messages
130,916
Members
17,589
Latest member
cristian.saiz
Top