[Freeswitch-users] voicemail silence_detection is always detecting silence
Raphael Lechner
raphael.lechner at gmail.com
Fri Jan 16 13:09:46 MSK 2015
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/20150116/e74d71d3/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list