FreeTDM disconnect supervision
Hello, According to what I have found in regards the tones used for signaling on FreeTDM, it seems that anything set through DAHDI is ignored and specs from tones.conf are used instead. However I have not been able to properly detect a busy tone to be able to set an FXO back on hook once a busy tone is sniffed. tones.conf has the following references for busy tones [us]: generate-busy => v=-7;%(500,500,480,620) detect-busy=> 480,620 I would like to know if detect-busy takes into account the time frame that the frequencies are on (played) or off (not being played) and if there is somehow a way to specify this. Is there any default value for time on and time off? I appreciate your help! Regards
In all my experience with these it has been that tones.conf is for specifying the absence or presence of a frequency but not the cadence. -MC On Mon, Apr 18, 2011 at 3:04 PM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hello,
According to what I have found in regards the tones used for signaling on FreeTDM, it seems that anything set through DAHDI is ignored and specs from tones.conf are used instead.
However I have not been able to properly detect a busy tone to be able to set an FXO back on hook once a busy tone is sniffed.
tones.conf has the following references for busy tones [us]:
generate-busy => v=-7;%(500,500,480,620) detect-busy=> 480,620
I would like to know if detect-busy takes into account the time frame that the frequencies are on (played) or off (not being played) and if there is somehow a way to specify this. Is there any default value for time on and time off?
I appreciate your help!
Regards
_______________________________________________ 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
Hi Luis, You could try the dialplan application tone_detect to detect the busy tone and hangup. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect guru On Tue, Apr 19, 2011 at 3:34 AM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hello, According to what I have found in regards the tones used for signaling on FreeTDM, it seems that anything set through DAHDI is ignored and specs from tones.conf are used instead. However I have not been able to properly detect a busy tone to be able to set an FXO back on hook once a busy tone is sniffed. tones.conf has the following references for busy tones [us]: generate-busy => v=-7;%(500,500,480,620) detect-busy=> 480,620 I would like to know if detect-busy takes into account the time frame that the frequencies are on (played) or off (not being played) and if there is somehow a way to specify this. Is there any default value for time on and time off? I appreciate your help! Regards _______________________________________________ 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
Yes guru, The point is that using tone_detect I am not able to specify cadence either. I need to be able to detect a tone that plays 450Hz for 330ms and then silence for 330ms. Strange thing is that on tones.conf generate tones do seem to specify cadence such as US busy v=-7;(500,500,420,680) I would interpret 420Hz for .5s and 680Hz for .5s Is that how it is to be interpreted?? TIA On Mon, Apr 18, 2011 at 4:48 PM, guru singh <grsingh750@gmail.com> wrote:
Hi Luis,
You could try the dialplan application tone_detect to detect the busy tone and hangup. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect
guru
On Tue, Apr 19, 2011 at 3:34 AM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hello, According to what I have found in regards the tones used for signaling on FreeTDM, it seems that anything set through DAHDI is ignored and specs from tones.conf are used instead. However I have not been able to properly detect a busy tone to be able to set an FXO back on hook once a busy tone is sniffed. tones.conf has the following references for busy tones [us]: generate-busy => v=-7;%(500,500,480,620) detect-busy=> 480,620 I would like to know if detect-busy takes into account the time frame that the frequencies are on (played) or off (not being played) and if there is somehow a way to specify this. Is there any default value for time on and time off? I appreciate your help! Regards _______________________________________________ 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
Generating a tone w/ cadence is a piece of cake. *Detecting* a tone and cadence is a bit trickier. Nothing in FreeTDM (that I'm aware of) can detect both tone *and* cadence, which is why it works great in the US (which uses a combination of tones) as opposed to Mexico (which uses, I think 425Hz for everything). I'd ask Moises Silva if there's any plans to add the cadence detection. -MC On Mon, Apr 18, 2011 at 4:27 PM, Luis F Urrea <lfurrea@gmail.com> wrote:
Yes guru,
The point is that using tone_detect I am not able to specify cadence either.
I need to be able to detect a tone that plays 450Hz for 330ms and then silence for 330ms.
Strange thing is that on tones.conf generate tones do seem to specify cadence such as US busy
v=-7;(500,500,420,680)
I would interpret 420Hz for .5s and 680Hz for .5s
Is that how it is to be interpreted??
TIA
On Mon, Apr 18, 2011 at 4:48 PM, guru singh <grsingh750@gmail.com> wrote:
Hi Luis,
You could try the dialplan application tone_detect to detect the busy tone and hangup. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect
guru
On Tue, Apr 19, 2011 at 3:34 AM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hello, According to what I have found in regards the tones used for signaling on FreeTDM, it seems that anything set through DAHDI is ignored and specs from tones.conf are used instead. However I have not been able to properly detect a busy tone to be able to set an FXO back on hook once a busy tone is sniffed. tones.conf has the following references for busy tones [us]: generate-busy => v=-7;%(500,500,480,620) detect-busy=> 480,620 I would like to know if detect-busy takes into account the time frame that the frequencies are on (played) or off (not being played) and if there is somehow a way to specify this. Is there any default value for time on and time off? I appreciate your help! Regards _______________________________________________ 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
_______________________________________________ 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
Hi all, I am updating the thread as per Moises Silva's request so he can answer for posterity. Not just to bump the thread. Thx. Hello Luis, Can you point to the mailing list conversation and please update the thread because if I deleted the thread in my mail already I have no way to reply unless someone else sends a new reply. I'd rather reply there to leave the response on the internet available for anyone. If you don't have it please create a new thread in freeswitch-users and I'll reply there. On Mon, Apr 18, 2011 at 5:38 PM, Michael Collins <msc@freeswitch.org> wrote:
Generating a tone w/ cadence is a piece of cake. *Detecting* a tone and cadence is a bit trickier. Nothing in FreeTDM (that I'm aware of) can detect both tone *and* cadence, which is why it works great in the US (which uses a combination of tones) as opposed to Mexico (which uses, I think 425Hz for everything).
I'd ask Moises Silva if there's any plans to add the cadence detection.
-MC
On Mon, Apr 18, 2011 at 4:27 PM, Luis F Urrea <lfurrea@gmail.com> wrote:
Yes guru,
The point is that using tone_detect I am not able to specify cadence either.
I need to be able to detect a tone that plays 450Hz for 330ms and then silence for 330ms.
Strange thing is that on tones.conf generate tones do seem to specify cadence such as US busy
v=-7;(500,500,420,680)
I would interpret 420Hz for .5s and 680Hz for .5s
Is that how it is to be interpreted??
TIA
On Mon, Apr 18, 2011 at 4:48 PM, guru singh <grsingh750@gmail.com> wrote:
Hi Luis,
You could try the dialplan application tone_detect to detect the busy tone and hangup. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect
guru
On Tue, Apr 19, 2011 at 3:34 AM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hello, According to what I have found in regards the tones used for signaling on FreeTDM, it seems that anything set through DAHDI is ignored and specs from tones.conf are used instead. However I have not been able to properly detect a busy tone to be able to set an FXO back on hook once a busy tone is sniffed. tones.conf has the following references for busy tones [us]: generate-busy => v=-7;%(500,500,480,620) detect-busy=> 480,620 I would like to know if detect-busy takes into account the time frame that the frequencies are on (played) or off (not being played) and if there is somehow a way to specify this. Is there any default value for time on and time off? I appreciate your help! Regards _______________________________________________ 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
_______________________________________________ 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
Hello Luis, The syntax used is explained here: http://wiki.freeswitch.org/wiki/TGML I've not tested myself the tone detection, but I believe it should work in FXO lines (the only type of lines where currently FreeTDM enables progress tone detection). Defaults are found in src/ftdm_io.c:828 Dial: %(1000,0,350,440) Ring: %(2000,4000,440,480) Busy: %(500,500,480,620) Attn: %(100,100,1400,2060,2450,2600) The first 2 numbers are always tone on/off values in milliseconds. The remaining numbers are the frequencies to use, in the Attn tone there are 4 frequencies involved. FreeTDM uses libteletone library created by Tony for tone detection and generation. Michael, is there any reason for you to think he did not complete the cadence detection in libteletone? Moises Silva Senior Software Engineer, Software Development Manager Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com On Mon, Apr 25, 2011 at 4:30 PM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hi all,
I am updating the thread as per Moises Silva's request so he can answer for posterity. Not just to bump the thread.
Thx.
Hello Luis,
Can you point to the mailing list conversation and please update the thread because if I deleted the thread in my mail already I have no way to reply unless someone else sends a new reply. I'd rather reply there to leave the response on the internet available for anyone. If you don't have it please create a new thread in freeswitch-users and I'll reply there.
On Mon, Apr 18, 2011 at 5:38 PM, Michael Collins <msc@freeswitch.org>wrote:
Generating a tone w/ cadence is a piece of cake. *Detecting* a tone and cadence is a bit trickier. Nothing in FreeTDM (that I'm aware of) can detect both tone *and* cadence, which is why it works great in the US (which uses a combination of tones) as opposed to Mexico (which uses, I think 425Hz for everything).
I'd ask Moises Silva if there's any plans to add the cadence detection.
-MC
On Mon, Apr 18, 2011 at 4:27 PM, Luis F Urrea <lfurrea@gmail.com> wrote:
Yes guru,
The point is that using tone_detect I am not able to specify cadence either.
I need to be able to detect a tone that plays 450Hz for 330ms and then silence for 330ms.
Strange thing is that on tones.conf generate tones do seem to specify cadence such as US busy
v=-7;(500,500,420,680)
I would interpret 420Hz for .5s and 680Hz for .5s
Is that how it is to be interpreted??
TIA
On Mon, Apr 18, 2011 at 4:48 PM, guru singh <grsingh750@gmail.com>wrote:
Hi Luis,
You could try the dialplan application tone_detect to detect the busy tone and hangup. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect
guru
On Tue, Apr 19, 2011 at 3:34 AM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hello, According to what I have found in regards the tones used for signaling on FreeTDM, it seems that anything set through DAHDI is ignored and specs from tones.conf are used instead. However I have not been able to properly detect a busy tone to be able to set an FXO back on hook once a busy tone is sniffed. tones.conf has the following references for busy tones [us]: generate-busy => v=-7;%(500,500,480,620) detect-busy=> 480,620 I would like to know if detect-busy takes into account the time frame that the frequencies are on (played) or off (not being played) and if there is somehow a way to specify this. Is there any default value for time on and time off? I appreciate your help! Regards _______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
participants (4)
-
guru singh
-
Luis F Urrea
-
Michael Collins
-
Moises Silva