[Freeswitch-dev] freetdm + sangoma analog card A400,hangup problem
Hi all, recently, I use sangoma A400 analog for outgoing call, the flow is internal sip phone-> FXO->pstn. but, when the pstn side hangup first, the sip phone never be hangup, i search here and there, i also try use tone_detect app in dialplan , but ,still it can not detect busy tone, below is my dialplan: <action application="set" data="sip_h_X-accountcode=${accountcode}" /> 5 <action application="pre_answer"/> 7 <action application="tone_detect" data="busy 450 r 0 hangup 'normal_clearing' 4"/> 8 <action application="set" data="sip_h_X-Tag=" /> 9 <action application="set" data="call_direction=outbound" /> 10 <action application="set" data="hangup_after_bridge=true" /> 11 <action application="set" data="inherit_codec=true" /> 12 <action application="set" data="continue_on_fail=true" /> 13 <action application="bridge" data="freetdm/FXO/a/$1" /> my country busy tone frequency is 450, i never see detect busy tone in freeswitch log, what's more, when pstn side (modile ) hangup, the sip softphone will play DEFTONES continuly( filer rtp with wirshark, i cant play DEFTONES ) , but the call session never clear and no hangup signal got in freeswitch log. i check ftdm_io.c ,in function ftdm_channel_process_media, it will detect tone, but from freeswitch log, i can only see Dial tone be detect, below is code snap: if (ftdm_test_flag(ftdmchan, FTDM_CHANNEL_PROGRESS_DETECT) && !ftdm_channel_test_feature(ftdmchan, FTDM_CHANNEL_FEATURE_PROGRESS)) { uint32_t i; for (i = 1; i < FTDM_TONEMAP_INVALID; i++) { if (ftdmchan->span->tone_finder[i].tone_count) { if (ftdmchan->needed_tones[i] && teletone_multi_tone_detect(&ftdmchan->span->tone_finder[i], sln, (int)slen)) { if (++ftdmchan->detected_tones[i]) { ftdmchan->needed_tones[i] = 0; ftdmchan->detected_tones[0]++; } } } } } I know that , in asterisk , the zaptel have several option in deal with disconect surpervision, but it seems little in freetdm. any prompt is grateful! thanks.
On Wed, Oct 23, 2013 at 12:39 PM, openser <openser@yeah.net> wrote:
I know that , in asterisk , the zaptel have several option in deal with disconect surpervision, but it seems little in freetdm.
You may be better off using the tone_detect freeswitch application. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect Check out the hangup/busy examples there. Moy *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
participants (2)
-
Moises Silva
-
openser