<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I missed to write the used FreeSWITCH version. I tried with 1.4.14 and&nbsp;<span style="font-family: Menlo; font-size: 11px;" class="">1.4.15+git~20141229T185951Z~507a0f22c5~64bit (git 507a0f2 2014-12-29 18:59:51Z 64bit)</span><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">Thank you<br class=""></span></font><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 16 Jan 2015, at 11:09, Raphael Lechner &lt;<a href="mailto:raphael.lechner@gmail.com" class="">raphael.lechner@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">I configured an extension that first call for some seconds a phone and if nobody is picking up, the caller is hearing a playback and can press 1 for leaving a voicemail and 2 to get redirected to a mobile phone.</div><div class="">The Problem is that in my test environment with a SIP Provider everything works fine after tuning the voicemail.conf.xml to&nbsp;</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">&lt;param </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">name</span><span style="" class="">=</span>"record-silence-threshold"<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">value</span><span style="" class="">=</span>"200"<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">/&gt;</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">&lt;param </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">name</span><span style="" class="">=</span>"record-silence-hits"<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">value</span><span style="" class="">=</span>"10”<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">/&gt;</span></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);" class=""><br class=""></div><div class="">But on the production machine we are using a patton as a ISDN Gateway and after pressing 1 for the voicemail I always got "Message is less than minimum record length: 3” on the calling phone.</div><div class="">After that I can record a message and that works as expected.</div><div class="">Is there a way do disable the silence_detection or any hint what I can change?</div><div class=""><br class=""></div><div class="">I tried changing the silence-threshold to 1,50 and silence-hits to 300,30000 but nothing has changed</div><div class=""><br class=""></div><div class="">Debug Log</div><div class=""><a href="https://pastebin.freeswitch.org/23851" class="">https://pastebin.freeswitch.org/23851</a></div><div class=""><br class=""></div><div class="">The called python script:</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">def</span> <span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">handler</span>(session, args):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; voicemail = args.split(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">' '</span>)[<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0</span>]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; dtmf_pressed = args.split(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">' '</span>)[<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1</span>]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; forward_number = args.split(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">' '</span>)[<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">2</span>]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; callerid = session.getVariable(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"caller_id_number"</span>)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; callername = session.getVariable(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"caller_id_name"</span>).lstrip()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">if</span> dtmf_pressed == <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">'1'</span>:</div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; send_sms(</span></font><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);" class="">'377XXXXXXX</span><font color="#c33720" face="Menlo" class=""><span style="font-size: 11px;" class="">’</span></font><font face="Menlo" class=""><span style="font-size: 11px;" class="">,</span></font><font color="#c33720" face="Menlo" class=""><span style="font-size: 11px;" class="">’New Voicemail from %s %s'</span></font><font face="Menlo" class=""><span style="font-size: 11px;" class=""> % (callername, callerid))</span></font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);" class=""><span style="" class="">&nbsp; &nbsp; &nbsp; &nbsp; session.execute(</span>"export"<span style="" class="">, </span>"skip_greeting=true"<span style="" class="">)</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);" class=""><span style="" class="">&nbsp; &nbsp; &nbsp; &nbsp; session.execute(</span>"export"<span style="" class="">, </span>"skip_instructions=true"<span style="" class="">)</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; session.execute(<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"answer"</span>)</div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">&nbsp; &nbsp; &nbsp; &nbsp; session.execute(</span></font><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);" class="">"voicemail"</span><font face="Menlo" class=""><span style="font-size: 11px;" class="">, </span></font><font color="#c33720" face="Menlo" class=""><span style="font-size: 11px;" class="">"default 192.168.17.252 10”)</span></font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(83, 48, 225);" class=""><span style="" class="">&nbsp; &nbsp; &nbsp; &nbsp; </span>#session.execute("bridge", "loopback/app=voicemail:default %s %s" % (conf['network']['ip'],voicemail))</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">elif</span> dtmf_pressed == <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">'2'</span>:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; consoleLog( <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"info"</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"Call is forwarded to %s</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">\n</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"</span> % forward_number)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; session.transfer(forward_number, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"XML"</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"default"</span>)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">else</span>:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);" class=""><span style="" class="">&nbsp; &nbsp; &nbsp; &nbsp; consoleLog( </span>"info"<span style="" class="">, </span>"DTMF received is %s and not 1 or 2.Hangup Call<span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">\n</span>"<span style="" class=""> % (dtmf_pressed))</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&nbsp; &nbsp; &nbsp; &nbsp; session.hangup()</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Thank you,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Raphael</div></div></div></blockquote></div><br class=""></div></div></body></html>