Koozali.org: home of the SME Server

hangup detection with Digium TDM402B

Offline jibe

  • ****
  • 128
  • +0/-0
hangup detection with Digium TDM402B
« on: June 25, 2008, 09:47:35 AM »
Hi,

With a Digium TDM402B (2xFXO), when the caller hangs up immediatly after dialing, the phones don't stop ringing. Except this, all is working fine... The TDM402B was properly detected using "probe". Is there a way to detect hangup ? Did I missed something ?

Thanks.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: hangup detection with Digium TDM402B
« Reply #1 on: June 25, 2008, 11:07:08 AM »
Which country are you in?

Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #2 on: June 26, 2008, 11:30:40 AM »
Hi,

Sorry, I forgot  :oops:

I'm in France... I bought this card in France, but maybe there is something to setup ?

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: hangup detection with Digium TDM402B
« Reply #3 on: June 26, 2008, 06:21:07 PM »
OK

I'm assuming your analogue circuits are with France Telecom.  Open a linux console on your machine and, using your favourite editor, open /etc/init.d/sark

At line 151 you will find this...

Code: [Select]
            /sbin/modprobe wctdm #opermode=$COUNTRY

change it to this...

Code: [Select]
            /sbin/modprobe wctdm opermode=fr
then do..

Code: [Select]
/etc/init.d/sark stop
/etc/init.d/sark start

This will set the correct impedance for your line and it should cure your problem.  If it doesn't then I'm afraid you will have to search the French Asterisk Bulletin Boards to find a solution.

Kind Regards

   
 

Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #4 on: June 27, 2008, 02:13:41 PM »
Hi,

Ok, thanks.

But... isn't it better to set the right value in $COUNTRY ? If yes, how can I do that ? In some header, I presume ?

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: hangup detection with Digium TDM402B
« Reply #5 on: June 27, 2008, 05:11:51 PM »
Quote
isn't it better to set the right value in $COUNTRY ?

It would be if $COUNTRY existed.  It's just a note to the developers to implement it next time they visit that code.

Kind Regards

Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #6 on: June 28, 2008, 03:57:39 PM »
Hi,

 :lol: Ok, so waiting for future development, I'll do as you said !

Thanks for your help !

Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #7 on: July 11, 2008, 11:41:16 AM »
Hi,

It's not working  :(

Here is a part of my modified /etc/init.d/sark :
Code: [Select]
149         if [ $WCTDM = 'YES' ]; then
150 #a          COUNTRY=`/sbin/e-smith/db selintra  getprop global IMPEDANCE`
151             /sbin/modprobe wctdm opermode=fr
152         fi
153
154         if [ $WCTDM24XXP = 'YES' ]; then
155 #a          COUNTRY=`/sbin/e-smith/db selintra  getprop global IMPEDANCE`
156             /sbin/modprobe wctdm24xxp #opermode=$COUNTRY
157         fi
Should I change also the line 156 ? (I didn't dare to try !)

Thanks.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: hangup detection with Digium TDM402B
« Reply #8 on: July 11, 2008, 11:58:15 AM »
Quote
Should I change also the line 156 ? (I didn't dare to try !)

Not if you have a TDM400 card.  The new TDM410 uses the wctdm24xxp driver.  So, you still aren't geting hangup detection on the circuit.  I think you will have to search the French forums and news groups.  This is really a Digium Asterisk issue rather than a SAIL issue.  If you can get some advice on what needs to be done for the card to recognise your telco's signalling then we can show you how to implement it in SAIL.  Unfortuately we know nothing of France Telecom's signalling standards.

Kind Regards


Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #9 on: July 11, 2008, 12:03:10 PM »
Thanks. I'll see on french forums and let you know if I find a solution.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: hangup detection with Digium TDM402B
« Reply #10 on: July 12, 2008, 02:04:26 AM »
Hi, I tried that myself and does not seem to load the drivers if this file gets modified:
Code: [Select]
FATAL: Error inserting wctdm (/lib/modules/2.6.9-67.0.7.ELsmp/extra/wctdm.ko): No such device
Waiting for udev.
ZT_CHANCONFIG failed on channel 1: No such device or address (6)

Offline saleh

  • **
  • 21
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #11 on: July 13, 2008, 10:56:00 PM »
please try this

add this line in your zapata.conf
hanguponpolarityswitch=yes

this work when your telco providing  you "Disconnect Supervision"

when your telco have not "Disconnect Supervision"

try this

busydetect=yes
busycount=6

For more info for "Disconnect Supervision" see please this link

http://help.trixbox.com/index.php/Disconnect_Supervision

I hope this can help you.

Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #12 on: July 16, 2008, 11:23:55 AM »
Hi,

Thanks, saleh ! But it's not working... I tried
hanguponpolarityswitch=yes
as normally there is a polarity switch on our lines in France, but this didn't change anything  :-(

Then I tried
busydetect=yes
busycount=3
without more success...

Still looking for a solution...

Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #13 on: September 15, 2008, 03:28:52 PM »
Hi,

I'm still looking for a solution about this problem...

Any solution to solve or work around will be welcome !

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: hangup detection with Digium TDM402B
« Reply #14 on: September 15, 2008, 04:52:02 PM »
Digium offer free support for their cards to get them working correctly.  I think you should email them directly and ask what the Frendch settings should be.

Kind Regards

S

Offline jibe

  • ****
  • 128
  • +0/-0
Re: hangup detection with Digium TDM402B
« Reply #15 on: October 20, 2008, 02:48:53 PM »
Hi,

Finally, I got it working...

I added this in my zapata.conf :
Code: [Select]
usecallingpres=yes
callreturn=yes
busydetect=yes
busycount=4
hanguponpolarityswitch=yes
I tested separately busydetect and hanguponpolarityswitch without success. Don't know if it's working better because they are now together... Or it's the two first parameters (usecallingpres and callreturn) that made it work ? Don't know what they do exactly : I just got them from a French user who solved this problem...