Problem with freeswith and a Digium card
Hello, I have to problems with freeswith and my digium card whith dahdi and freetdm. I'm a french user. - I have no signal when the user hangs up. I have to wait for the timeout before the line is available. If I call a specific phone, I have to wait for the timeout to 60s before using the line - I don't have the phone number for the incoming and outgoing calls. For the incoming, i have 00000000000 For the outgoing, "Anonymous" I'm trying to change my tones.conf files, to add some options on freetdm.conf.xml, but the problem persists Does anyone have a solution? Thank you in advance Sebastien
On 23/08/11 19:23, Caez wrote:
Hello,
I have to problems with freeswith and my digium card whith dahdi and freetdm. I'm a french user.
- I have no signal when the user hangs up. I have to wait for the timeout before the line is available. If I call a specific phone, I have to wait for the timeout to 60s before using the line
- I don't have the phone number for the incoming and outgoing calls. For the incoming, i have 00000000000 For the outgoing, "Anonymous"
I'm trying to change my tones.conf files, to add some options on freetdm.conf.xml, but the problem persists
Does anyone have a solution?
Thank you in advance
Sebastien
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
First, what kind of card is it? Analog (and then how many FXO/FXS ports), BRI or PRI, manufacturer, etc? Cheers Alex -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
You are trying to detect hangup or disconnect tone? If you trying to disconnect tone, I was playing around with this just today, I have a custom xml to manage my digium card. The file is located in /usr/local/freeswitch/conf/dialplan/public/01_freetdm_in.xml And it is what is has: <include> <extension name="freetdm_in"> <condition field="chan_name" expression="FreeTDM/2:1/"> <action application="tone_detect" data="busy 425 r 0 hangup 'normal_clearing' 3"/> <action application="set" data="domain_name=$${domain}"/> <action application="set" data="transfer_ringback=$${fr-ring}"/> <action application="answer"/> <action application="transfer" data="6442 XML default"/> </condition> </extension> </include> I think, you could play with data="busy 425 r 0 hangup 'normal_clearing' 3" to try to get what you need. Take a look to this page: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect About ANI 000000000 could be because you dont have caller id enable or it is not supported by your pstn. On 8/23/2011 1:53 PM, Caez wrote:
Hello,
I have to problems with freeswith and my digium card whith dahdi and freetdm. I'm a french user.
- I have no signal when the user hangs up. I have to wait for the timeout before the line is available. If I call a specific phone, I have to wait for the timeout to 60s before using the line
- I don't have the phone number for the incoming and outgoing calls. For the incoming, i have 00000000000 For the outgoing, "Anonymous"
I'm trying to change my tones.conf files, to add some options on freetdm.conf.xml, but the problem persists
Does anyone have a solution?
Thank you in advance
Sebastien
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1392 / Virus Database: 1520/3852 - Release Date: 08/23/11
-- Atentamente, *Dario García* Consultor. CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
I think it's good. I called and the application it is launched. 2011-08-24 10:11:07.817150 [NOTICE] mod_dptools.c:1619 Enabling tone detection 'busy' '425' As soon as I hung up, he did his job 2011-08-24 10:11:15.997151 [DEBUG] switch_ivr_async.c:2525 TONE busy HIT 1/3 2011-08-24 10:11:17.037144 [DEBUG] switch_ivr_async.c:2525 TONE busy HIT 2/3 2011-08-24 10:11:18.077144 [DEBUG] switch_ivr_async.c:2525 TONE busy HIT 3/3 2011-08-24 10:11:18.077144 [DEBUG] switch_ivr_async.c:2531 TONE busy DETECTED 2011-08-24 10:11:18.077144 [DEBUG] switch_core_session.c:994 Send signal FreeTDM/3:3/ [BREAK] 2011-08-24 10:11:18.077144 [DEBUG] switch_ivr.c:576 FreeTDM/3:3/ Command Execute hangup(normal_clearing) EXECUTE FreeTDM/3:3/ hangup(normal_clearing) 2011-08-24 10:11:18.077144 [DEBUG] switch_channel.c:2767 (FreeTDM/3:3/) Callstate Change ACTIVE -> HANGUP 2011-08-24 10:11:18.077144 [NOTICE] mod_dptools.c:916 Hangup FreeTDM/3:3/ [CS_EXECUTE] [NORMAL_CLEARING] Le 23 août 2011 à 21:37, Saugort Dario Garcia Tovar a écrit : I left in the reverse polarity configuration. I do not know if this solution is unique, but it has the merit of work. Thank you all
You are trying to detect hangup or disconnect tone?
If you trying to disconnect tone, I was playing around with this just today,
I have a custom xml to manage my digium card. The file is located in /usr/local/freeswitch/conf/dialplan/public/01_freetdm_in.xml
And it is what is has:
<include> <extension name="freetdm_in"> <condition field="chan_name" expression="FreeTDM/2:1/"> <action application="tone_detect" data="busy 425 r 0 hangup 'normal_clearing' 3"/> <action application="set" data="domain_name=$${domain}"/> <action application="set" data="transfer_ringback=$${fr-ring}"/> <action application="answer"/> <action application="transfer" data="6442 XML default"/> </condition> </extension> </include>
I think, you could play with data="busy 425 r 0 hangup 'normal_clearing' 3" to try to get what you need. Take a look to this page: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect
About ANI 000000000 could be because you dont have caller id enable or it is not supported by your pstn.
On 8/23/2011 1:53 PM, Caez wrote:
Hello,
I have to problems with freeswith and my digium card whith dahdi and freetdm. I'm a french user.
- I have no signal when the user hangs up. I have to wait for the timeout before the line is available. If I call a specific phone, I have to wait for the timeout to 60s before using the line
- I don't have the phone number for the incoming and outgoing calls. For the incoming, i have 00000000000 For the outgoing, "Anonymous"
I'm trying to change my tones.conf files, to add some options on freetdm.conf.xml, but the problem persists
Does anyone have a solution?
Thank you in advance
Sebastien
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1392 / Virus Database: 1520/3852 - Release Date: 08/23/11
-- Atentamente, Dario García Consultor.
CCCT, Nivel C2, Sector Yarey, Mz, Ofc. MZ03a. Caracas-Venezuela. Teléfono: +58 212 9081842 Cel: +58 412 2221515 dgarcia@anew.com.ve http://www.anew.com.ve
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I suppose this problem happens on analog channels. For CID, this is because the french standard for CID is not the same as the US standard. I committed a patch (Openzap-100 IIRC) for this in Jira some monthes ago, but it never went through mainstream because lack of testing. For the hang up detection, normally freetdm can now detect polarity reversal (which in France should signal hook on/off) so maybe this is not correctly configured in freetdm.conf François On Tue, 23 Aug 2011 20:23:00 +0200, Caez wrote:
Hello,
I have to problems with freeswith and my digium card whith dahdi and freetdm. I'm a french user.
- I have no signal when the user hangs up. I have to wait for the timeout before the line is available. If I call a specific phone, I have to wait for the timeout to 60s before using the line
- I don't have the phone number for the incoming and outgoing calls. For the incoming, i have 00000000000 For the outgoing, "Anonymous"
I'm trying to change my tones.conf files, to add some options on freetdm.conf.xml, but the problem persists
Does anyone have a solution?
Thank you in advance
Sebastien
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org [1] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [2]
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users [3]
Links: ------ [1] mailto:FreeSWITCH-users@lists.freeswitch.org [2] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [3] http://lists.freeswitch.org/mailman/options/freeswitch-users [4] http://www.freeswitch.org
Hi, Thank you for your answers. @Alex The card is a Digium TDM400P with 1 FXS and 3 FXO : active=yes alarms=OK description=Wildcard TDM400P REV I Board 5 name=WCTDM/4 manufacturer=Digium devicetype=Wildcard TDM400P REV I location=PCI Bus 00 Slot 07 basechan=1 totchans=4 irq=17 type=analog port=1,FXS port=2,FXO port=3,FXO port=4,FXO @ François I have tried some options in freetdm: <param name="answer-polarity-reverse" value="true" /> <param name="hangup-polarity-reverse" value="true" /> But the problem persists @Dario Garcia I did not know the option tone_detect, I'll do some tests. Thank you again for your help.
I suppose this problem happens on analog channels.
For CID, this is because the french standard for CID is not the same as the US standard.
I committed a patch (Openzap-100 IIRC) for this in Jira some monthes ago, but it never went through mainstream because lack of testing.
For the hang up detection, normally freetdm can now detect polarity reversal (which in France should signal hook on/off) so maybe this is not correctly configured in freetdm.conf
François
On Tue, 23 Aug 2011 20:23:00 +0200, Caez wrote:
Hello,
I have to problems with freeswith and my digium card whith dahdi and freetdm. I'm a french user.
- I have no signal when the user hangs up. I have to wait for the timeout before the line is available. If I call a specific phone, I have to wait for the timeout to 60s before using the line
- I don't have the phone number for the incoming and outgoing calls. For the incoming, i have 00000000000 For the outgoing, "Anonymous"
I'm trying to change my tones.conf files, to add some options on freetdm.conf.xml, but the problem persists
Does anyone have a solution?
Thank you in advance
Sebastien
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 24/08/11 09:01, Sébastien Gay wrote:
Hi,
Thank you for your answers.
@Alex The card is a Digium TDM400P with 1 FXS and 3 FXO :
active=yes alarms=OK description=Wildcard TDM400P REV I Board 5 name=WCTDM/4 manufacturer=Digium devicetype=Wildcard TDM400P REV I location=PCI Bus 00 Slot 07 basechan=1 totchans=4 irq=17 type=analog port=1,FXS port=2,FXO port=3,FXO port=4,FXO
@ François I have tried some options in freetdm: <param name="answer-polarity-reverse" value="*true*" />
<param name="hangup-polarity-reverse" value="*true*" />
But the problem persists
@Dario Garcia
I did not know the option tone_detect, I'll do some tests.
Thank you again for your help.
* *Sébastien, * *Sounds like an issue I have been having. I wanted to have FS only act as a voicemail box, with the incoming land line connecting to both the FXO port and analog phones via a splitter. I wanted the voicemail to only pick up after 30s of ringing, however even if the incoming line had stopped ringing (and a polarity reverse was seen) the dialplan would still execute the VM and thus record a few seconds of dialtone. I saw the polarity reversal when the line stopped ringing but FS still claimed it was too close the the previous one even after more than 20s (the reversal time limit is set to something like 200ms) and did not hang up. The VM would also kick in even when the analog phone was on a call after being picked up. There appears to be no way to test if an incoming analog line is still ringing or not (you can't do tone_detect here as the line is onhook). Dialplan: <include> <extension name="public_ftdm"> <condition field="source" expression="freetdm"> <action application="sleep" data="30000"/> <action application="answer"/> <action application="voicemail" data="default ${domain_name} 1005"/> </condition> </extension> </include> However if I transfer the call to a SIP extension, remove the sleep and let the extension deal with the VM then it seems to work OK. Obviously this means my analog phones only ring for a moment though. Alex ** -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc Domain House, 5-7 Singer Street, London EC2A 4BQ Tel: (020) 7608 4900 Fax: (020) 7608 5300 (Registered office: as above; Registered in England and Wales under number: 3727592) Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)
participants (5)
-
Alex Crow
-
Caez
-
François Legal
-
Saugort Dario Garcia Tovar
-
Sébastien Gay