<div dir="ltr">Ah ... you'd like to have a call progress detection. <div><br></div><div>I used spandsp. First, you have to analyze the tones to get the freqs. Define and configure the frequencies in conf/autoload_configs/spandsp.conf.xml. In my case, I define <descriptor name="63"></div><div><br></div><div>In your dialplan (ex. outbound), include the ff lines before the bridge app:</div><div><br></div><div><action application="set" data="bridge_pre_execute_bleg_app=tone_detect"/><br></div><div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><action application="set" data="bridge_pre_execute_bleg_data=63"/> <!-- the descriptor name --><br></div><div><br></div><div>For an inbound call, do the same but change bleg to aleg.</div><div><br></div><div>I hope it works with your setup. Cheers!</div><div><br></div><div>/Nandy</div><div><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr"><div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Jun 6, 2015 at 3:51 AM, Naveen Tamanam <span dir="ltr"><<a href="mailto:naveen32india@gmail.com" target="_blank">naveen32india@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-size:small;color:rgb(11,83,148);display:inline"><br></div><div style="font-size:small;color:rgb(11,83,148);display:inline">Hi Nandy, <br><br></div><div style="font-size:small;color:rgb(11,83,148);display:inline">I am glad to see your reply. I am trying to detect the tone which sounds like a simple ring. <br></div><div style="font-size:small;color:rgb(11,83,148);display:inline">and I can't guess when that could occur, so I listen for the tone through out the call. I am attaching the tone. <br></div><div><div class="h5"><div style="font-size:small;color:rgb(11,83,148);display:inline"><br></div><div style="font-size:small;color:rgb(11,83,148);display:inline"><h3><span name="Nandy Dagondon"><br></span></h3></div><div><div style="font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 10:39 AM, Nandy Dagondon <span dir="ltr"><<a href="mailto:nandy1925@gmail.com" target="_blank">nandy1925@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div><div><div dir="ltr"><div><div>Hi,</div></div><div><br></div><div>What are you trying to do with tone_detect? Is it call progress? Fax detect?</div><div><br></div><div>/Nandy</div></div></div></div>
<br><div class="gmail_quote"><div><div>On Tue, May 19, 2015 at 4:55 AM, Naveen Tamanam <span dir="ltr"><<a href="mailto:naveen32india@gmail.com" target="_blank">naveen32india@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div style="font-size:small;color:rgb(11,83,148)">Hi, <br><br></div><div style="font-size:small;color:rgb(11,83,148)">I am using following command for tone detection, <br><br><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:19.2px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important;background-color:rgb(255,255,255)">tone_detect <uuid> <key> <tone_spec> [<flags> <timeout> <app> <args>] <hits></span><br><br></div><div style="font-size:small;color:rgb(11,83,148)">Many times I end with the false detection. In my case I haven't given all optional args. <br></div><div style="font-size:small;color:rgb(11,83,148)">I just gave tone_detect uuid key tone_specs. It would be something like, <br><br></div><div style="font-size:small;color:rgb(11,83,148)">tone_detect 8582g3b8-f7db-10e4-2ac4-c01885c1ffd3 tone_name frp1,frp2,frp3 <br></div><div style="font-size:small;color:rgb(11,83,148)"> <br></div><div style="font-size:small;color:rgb(11,83,148)">Where frp1, frp2 and frp3 are the frequencies of few peak amplitudes of the tone. <br></div><div style="font-size:small;color:rgb(11,83,148)">Those frequencies are detected through audacity by plotting spectrum, <br></div><div style="font-size:small;color:rgb(11,83,148)">Spectrum specs are, <br></div><div style="font-size:small;color:rgb(11,83,148)"> Alogorithm: Spectrum, <br></div><div style="font-size:small;color:rgb(11,83,148)"> Fuction: Hanning window or Bartlett window<br></div><div style="font-size:small;color:rgb(11,83,148)"> Size: 512<br></div><div style="font-size:small;color:rgb(11,83,148)"> Axis: Log Frequencies <br><br></div><div style="font-size:small;color:rgb(11,83,148)">Is there anything I am missing. Any suggestions are highly appreciated, Thanks.<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div style="font-size:small;color:rgb(11,83,148)"><br><br></div><div style="font-size:small;color:rgb(11,83,148)"> <br clear="all"></div><br>-- <br><div>Thanks & Regards,<br>Naveen Tamanam<br></div>
</font></span></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><br>-- <br><div>Thanks & Regards,<br>Naveen Tamanam<br></div>
</div></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div>