[Freeswitch-users] PlayAndGetDigits query
Srini K
aksrini at hotmail.com
Mon Mar 10 08:47:10 MSK 2014
Any
ideas, how do I get this one working?
Thanks.
From: aksrini at hotmail.com
To: freeswitch-users at lists.freeswitch.org
Date: Fri, 7 Mar 2014 09:00:09 -0800
Subject: Re: [Freeswitch-users] PlayAndGetDigits query
Yes, I want to retry 3 times if the Invalid Zip is entered. I want to play only InvalidZip.wav every time when the invalid entry is made. I dont want EnterZip.wav to be repeated.
digits = session.PlayAndGetDigits(5, 5, 3, 5000, "#*", "EnterZip.wav", "InvalidZip.wav", "\\d+", "", 3000, null)
Am I missing anything?
From: callum.guy at x-on.co.uk
Date: Fri, 7 Mar 2014 15:10:51 +0000
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] PlayAndGetDigits query
I'm pretty sure you just have it repeating - maybe try
digits = session.PlayAndGetDigits(5, 5, 1, 5000, "#*", "EnterZip.wav", "InvalidZip.wav", "\\d+", "", 3000, null)
______________________________
Callum Guy
Senior Developer
X-on
Framlingham Technology Centre
Station Road, Framlingham,
Suffolk, IP13 9EZ
T 0333 332 0116
E callum.guy at x-on.co.uk
X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead, Herts, HP3 9SD
Company Registration No. 2578478
This email has been sent from X-on.The contents and attachments are confidential to the sender and the intended addressees.If the message
is received by anyone other than the addressee please return the message to the sender by replying to it and then delete the message from
your computer without copying or disclosing the contents to anyone.Opinions, conclusions and statements of intent in this email are those of
the sender and do not bind X-on unless confirmed by authorised representatives independently of this message.While best endeavours have
been taken to avoid transmission of viruses, it is the responsibility of the recipient to scan for these.Please note emails sent to and from X-on
are routinely monitored for record keeping and quality control, to ensure regulatory compliance and prevent unauthorised use of our systems.
Please consider the environment before printing this email.
On 7 March 2014 14:34, Srini K <aksrini at hotmail.com> wrote:
Hi,
Iam using Mod_Managed to PlayAndGetDigits.
It plays EnterZip.wav file and waits for 5 digit Zip code to be entered. No issues on succesful entry.
On invalid entry (within the retry limits) it plays InvalidZip.wav followed by EnterZip.wav. Is it the expected behaviour ?
On Invalid entry I want only InvalidZip.wav to be played NOT EnterZip.wav is there a way?
My API call looks like
digits = session.PlayAndGetDigits(5, 5, 3, 5000, "#*", "EnterZip.wav", "InvalidZip.wav", "\\d+", "", 3000, null)
I referred the following wiki too.
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits
https://wiki.freeswitch.org/wiki/Mod_lua#session:playAndGetDigits
Thanks
Srini
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140309/d87bbe15/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list