[Freeswitch-users] voicemail silence_detection is always detecting silence - Solved

Raphael Lechner raphael.lechner at gmail.com
Sat Jan 17 22:06:15 MSK 2015


Finally I resolved the problem by adding a sleep 1000 before voicemail. Now It works as expected. 

Raphael

> On 16 Jan 2015, at 13:24, Raphael Lechner <raphael.lechner at gmail.com> wrote:
> 
> I missed to write the used FreeSWITCH version. I tried with 1.4.14 and 1.4.15+git~20141229T185951Z~507a0f22c5~64bit (git 507a0f2 2014-12-29 18:59:51Z 64bit)
> 
> Thank you
> 
>> On 16 Jan 2015, at 11:09, Raphael Lechner <raphael.lechner at gmail.com <mailto:raphael.lechner at gmail.com>> wrote:
>> 
>> Hi,
>> 
>> 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.
>> The Problem is that in my test environment with a SIP Provider everything works fine after tuning the voicemail.conf.xml to 
>> 
>> <param name="record-silence-threshold" value="200"/>
>> <param name="record-silence-hits" value="10”/>
>> 
>> 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.
>> After that I can record a message and that works as expected.
>> Is there a way do disable the silence_detection or any hint what I can change?
>> 
>> I tried changing the silence-threshold to 1,50 and silence-hits to 300,30000 but nothing has changed
>> 
>> Debug Log
>> https://pastebin.freeswitch.org/23851 <https://pastebin.freeswitch.org/23851>
>> 
>> The called python script:
>> def handler(session, args):
>>     voicemail = args.split(' ')[0]
>>     dtmf_pressed = args.split(' ')[1]
>>     forward_number = args.split(' ')[2]
>>     callerid = session.getVariable("caller_id_number")
>>     callername = session.getVariable("caller_id_name").lstrip()
>> 
>>     if dtmf_pressed == '1':
>>         send_sms('377XXXXXXX’,’New Voicemail from %s %s' % (callername, callerid))
>>         session.execute("export", "skip_greeting=true")
>>         session.execute("export", "skip_instructions=true")
>>         session.execute("answer")
>>         session.execute("voicemail", "default 192.168.17.252 10”)
>>         #session.execute("bridge", "loopback/app=voicemail:default %s %s" % (conf['network']['ip'],voicemail))
>>     elif dtmf_pressed == '2':
>>         consoleLog( "info", "Call is forwarded to %s\n" % forward_number)
>>         session.transfer(forward_number, "XML", "default")
>>     else:
>>         consoleLog( "info", "DTMF received is %s and not 1 or 2.Hangup Call\n" % (dtmf_pressed))
>>         session.hangup()
>> 
>> Thank you,
>> Raphael
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150117/23891113/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list