<div dir="ltr"><div><div><div>Hi Raphael,<br><br></div>I looked at your pastebin and this is just a guess but it appears that the DTMF digit 1 being received (at line 235/236) may be getting interpreted by mod_voicemail as being the user pressing a digit to stop the recording. Since the recording is only started less than one second earlier (I&#39;m guessing around line 234) it doesn&#39;t meet the minimum message length of 3 seconds.<br><br></div>One way you could test this is to execute <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+flush+dtmf">flush_dtmf</a> prior to sending the channel to voicemail. <br><br></div>-MC<br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 16, 2015 at 4:24 AM, Raphael Lechner <span dir="ltr">&lt;<a href="mailto:raphael.lechner@gmail.com" target="_blank">raphael.lechner@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I missed to write the used FreeSWITCH version. I tried with 1.4.14 and <span style="font-family:Menlo;font-size:11px">1.4.15+git~20141229T185951Z~507a0f22c5~64bit (git 507a0f2 2014-12-29 18:59:51Z 64bit)</span><div><font face="Menlo"><span style="font-size:11px"><br></span></font></div><div><font face="Menlo"><span style="font-size:11px">Thank you<br></span></font><div><div><div><br><div><blockquote type="cite"><div>On 16 Jan 2015, at 11:09, Raphael Lechner &lt;<a href="mailto:raphael.lechner@gmail.com" target="_blank">raphael.lechner@gmail.com</a>&gt; wrote:</div><br><div><div style="word-wrap:break-word"><div>Hi,</div><div><br></div><div>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>The Problem is that in my test environment with a SIP Provider everything works fine after tuning the voicemail.conf.xml to </div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(195,55,32)"><span style="color:#34bbc7">&lt;param </span><span style="color:#34bd26">name</span><span>=</span>&quot;record-silence-threshold&quot;<span style="color:#34bbc7"> </span><span style="color:#34bd26">value</span><span>=</span>&quot;200&quot;<span style="color:#34bbc7">/&gt;</span></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(195,55,32)"><span style="color:#34bbc7">&lt;param </span><span style="color:#34bd26">name</span><span>=</span>&quot;record-silence-hits&quot;<span style="color:#34bbc7"> </span><span style="color:#34bd26">value</span><span>=</span>&quot;10”<span style="color:#34bbc7">/&gt;</span></div></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(195,55,32)"><br></div><div>But on the production machine we are using a patton as a ISDN Gateway and after pressing 1 for the voicemail I always got &quot;Message is less than minimum record length: 3” on the calling phone.</div><div>After that I can record a message and that works as expected.</div><div>Is there a way do disable the silence_detection or any hint what I can change?</div><div><br></div><div>I tried changing the silence-threshold to 1,50 and silence-hits to 300,30000 but nothing has changed</div><div><br></div><div>Debug Log</div><div><a href="https://pastebin.freeswitch.org/23851" target="_blank">https://pastebin.freeswitch.org/23851</a></div><div><br></div><div>The called python script:</div><div><div style="margin:0px;font-size:11px;font-family:Menlo"><span style="color:#ce7924">def</span> <span style="color:#34bbc7">handler</span>(session, args):</div><div style="margin:0px;font-size:11px;font-family:Menlo">    voicemail = args.split(<span style="color:#c33720">&#39; &#39;</span>)[<span style="color:#c33720">0</span>]</div><div style="margin:0px;font-size:11px;font-family:Menlo">    dtmf_pressed = args.split(<span style="color:#c33720">&#39; &#39;</span>)[<span style="color:#c33720">1</span>]</div><div style="margin:0px;font-size:11px;font-family:Menlo">    forward_number = args.split(<span style="color:#c33720">&#39; &#39;</span>)[<span style="color:#c33720">2</span>]</div><div style="margin:0px;font-size:11px;font-family:Menlo">    callerid = session.getVariable(<span style="color:#c33720">&quot;caller_id_number&quot;</span>)</div><div style="margin:0px;font-size:11px;font-family:Menlo">    callername = session.getVariable(<span style="color:#c33720">&quot;caller_id_name&quot;</span>).lstrip()</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo">    <span style="color:#ce7924">if</span> dtmf_pressed == <span style="color:#c33720">&#39;1&#39;</span>:</div><div style="margin:0px"><font face="Menlo"><span style="font-size:11px">        send_sms(</span></font><span style="font-family:Menlo;font-size:11px;color:rgb(195,55,32)">&#39;377XXXXXXX</span><font color="#c33720" face="Menlo"><span style="font-size:11px">’</span></font><font face="Menlo"><span style="font-size:11px">,</span></font><font color="#c33720" face="Menlo"><span style="font-size:11px">’New Voicemail from %s %s&#39;</span></font><font face="Menlo"><span style="font-size:11px"> % (callername, callerid))</span></font></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(195,55,32)"><span>        session.execute(</span>&quot;export&quot;<span>, </span>&quot;skip_greeting=true&quot;<span>)</span></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(195,55,32)"><span>        session.execute(</span>&quot;export&quot;<span>, </span>&quot;skip_instructions=true&quot;<span>)</span></div><div style="margin:0px;font-size:11px;font-family:Menlo">        session.execute(<span style="color:#c33720">&quot;answer&quot;</span>)</div><div style="margin:0px"><font face="Menlo"><span style="font-size:11px">        session.execute(</span></font><span style="font-family:Menlo;font-size:11px;color:rgb(195,55,32)">&quot;voicemail&quot;</span><font face="Menlo"><span style="font-size:11px">, </span></font><font color="#c33720" face="Menlo"><span style="font-size:11px">&quot;default 192.168.17.252 10”)</span></font></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(83,48,225)"><span>        </span>#session.execute(&quot;bridge&quot;, &quot;loopback/app=voicemail:default %s %s&quot; % (conf[&#39;network&#39;][&#39;ip&#39;],voicemail))</div><div style="margin:0px;font-size:11px;font-family:Menlo">    <span style="color:#ce7924">elif</span> dtmf_pressed == <span style="color:#c33720">&#39;2&#39;</span>:</div><div style="margin:0px;font-size:11px;font-family:Menlo">        consoleLog( <span style="color:#c33720">&quot;info&quot;</span>, <span style="color:#c33720">&quot;Call is forwarded to %s</span><span style="color:#d53bd3">\n</span><span style="color:#c33720">&quot;</span> % forward_number)</div><div style="margin:0px;font-size:11px;font-family:Menlo">        session.transfer(forward_number, <span style="color:#c33720">&quot;XML&quot;</span>, <span style="color:#c33720">&quot;default&quot;</span>)</div><div style="margin:0px;font-size:11px;font-family:Menlo">    <span style="color:#ce7924">else</span>:</div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(195,55,32)"><span>        consoleLog( </span>&quot;info&quot;<span>, </span>&quot;DTMF received is %s and not 1 or 2.Hangup Call<span style="color:#d53bd3">\n</span>&quot;<span> % (dtmf_pressed))</span></div><div style="margin:0px;font-size:11px;font-family:Menlo">        session.hangup()</div></div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo">Thank you,</div><div style="margin:0px;font-size:11px;font-family:Menlo">Raphael</div></div></div></blockquote></div><br></div></div></div></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></div></div></div></div></div></div>