cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
596
Views
5
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Patrik Englund on 10-10-2013 11:17:53 PM
Hi all

I have an issue that i cannot figure out how to solve. I have created a vxml app in Call studio that collects the phonenumber from users by dtmf, it then plays back the result using say-it.smart. The next element is a time element and there it asks the user to enter 4 digits as in time format and then it´s also spoken back. The problem is that after it have spoken back the time i get a callback failure error in the vxml logs. in activity logs it gives a timeout error after the application itself have timedout the session.

I have tried several different input and outputs in the say-it.smart element but all gives the same error. As i can see the value of the time element always give 4 digits and a character in return and the character always is a ? mark. Could this be the issue and how can i get this to work? Do i need custom java to sort this out?

Br Patrik

Subject: Re: New Message from Patrik Englund in Customer Voice Portal (CVP) - Genera
Replied by: Janine Graves on 11-10-2013 02:35:28 PM
Hi Patrick, You can speak it out using the Time Say it Smart but select the InputFormat called VoiceXML Time (HHMMX) -- Janine Graves

Subject: RE: Call Studio Time element and say-it.smart
Replied by: Patrik Englund on 14-10-2013 12:05:52 AM
Hi Janine

Nice to hear from you again. VoiceXML Time worked fine although i just discovered that US time only work so for us in EU when we use times after 12:59pm. It speaks out the time but as an example if i punch in 1315 it spells out 115 and i get an exception. I suspect this also to affect the collected result i get in the email im sending with the time from the vxml app as when it arrives i get the time like 1315 and then with a trailing ? - "1315?".

I suppose it can be a challenge to get this to work in 24-Hour format 0000-2359 ?

Subject: Re: New Message from Patrik Englund in Customer Voice Portal (CVP) - Genera
Replied by: Janine Graves on 14-10-2013 07:53:37 PM
Hi Patrick, All the Say it Smarts were originally written to create audio that sounds natural to the US market. I'm not sure how you speak the times, but could you just use a Substring element to speak the hour portion as a Number, then the minutes portion as Number? If not, you'll have to create your own say it smart. Do you know how to do that? -- Janine Graves

Subject: Re: New Message from Patrik Englund in Customer Voice Portal (CVP) - Genera
Replied by: Janine Graves on 14-10-2013 07:53:39 PM
Hi Patrick, All the Say it Smarts were originally written to create audio that sounds natural to the US market. I'm not sure how you speak the times, but could you just use a Substring element to speak the hour portion as a Number, then the minutes portion as Number? If not, you'll have to create your own say it smart. Do you know how to do that? -- Janine Graves

Subject: RE: Call Studio Time element and say-it.smart
Replied by: Patrik Englund on 15-10-2013 01:33:01 AM
Hi Janine.

We write the time after noon (12pm) as 1300, 1415, 1545 and so on but we usually dont  say 1415 so here we say 215.
I like your suggestion on playing out hour and minutes using a substing and i will try that one out using custom java. Would it maybe be a possibility to do a custom time elemet instead that saves the value into hhmm instead and not hhmmx and play it out using 24hour format using say-it-smart.

I went to your excellent cvpd training in Stockholm so i have some qlueues on how to do custom java although it´s not as good as it was during the training. Do you  have some example of say-it-smart code i could start building on?

Subject: RE: Call Studio Time element and say-it.smart
Replied by: Janine Graves on 15-10-2013 06:58:19 AM
Patrick,

Maybe I misunderstood the problem. If you are hearing the time spoken and THEN you hear an error message, then the error is probably coming from the next Studio element. Can you attach the Activity and Error logs?  The HHMMX say it smart can handle times that end with ? - like 0115? by saying "one fifteen"

If you're using DTMF only, you should probably use a Digits element to collect the time from the caller (instead of using the Time element, which ALWAYS returns 5-characters). In the Digits element, you could specify Min Digits and Max Digits 4.

It would be up to you to determine if the caller enters a valid Time before speaking it with Say it Smart though. Custom Java would be needed for this.

Then you could still speak the time using the Time Say it Smart using HHMM 24 - Hour Time as the Input Format.

If you still need an example of a Say it Smart, let me know.

Subject: RE: New Message from Patrik Englund in Customer Voice Portal (CVP) - Genera
Replied by: Hemal Mehta on 15-10-2013 07:01:37 AM
Simplest approach would be to use digits element with max and min length set to 4. You can use the prompt to specify the format to the caller.
Once you collect the string in hhmm format, confirm the hrs and minutes with caller and then proceed.
Hemal

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, October 15, 2013 1:33 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Patrik Englund in Customer Voice Portal (CVP) - General Discussion - All Versions: RE: Call Studio Time element and say-it.smart

Patrik Englund has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- Hi Janine.

We write the time after noon (12pm) as 1300, 1415, 1545 and so on but we usually dont  say 1415 so here we say 215.
I like your suggestion on playing out hour and minutes using a substing and i will try that one out using custom java. Would it maybe be a possibility to do a custom time elemet instead that saves the value into hhmm instead and not hhmmx and play it out using 24hour format using say-it-smart.

I went to your excellent cvpd training in Stockholm so i have some qlueues on how to do custom java although it´s not as good as it was during the training. Do you  have some example of say-it-smart code i could start building on?
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/community/-/message_boards/view_message/20213046 or simply reply to this email.

Subject: RE: New Message from Janine Graves in Customer Voice Portal (CVP) - General
Replied by: Janine Graves on 15-10-2013 07:44:49 AM
Can you post the settings and audio tabs of your pTime and your menu elements? Or just post the entire app?
Or create a Document printout of the app - and send the configuration for the 2 elements (pTime and 2 option menu)?
To printout the app, right click the project name in the Navigator pane in Studio and select Documenter.

If you have access to the vxml gateway, try executing this:
term mon
deb http client cache error
deb voip app vxml error

Subject: RE: New Message from Janine Graves in Customer Voice Portal (CVP) - General
Replied by: Patrik Englund on 15-10-2013 07:37:39 AM
Hi Janine

It´s timing out on the 2_Option_Menu_01 if using it after the pTime element but if bypassing the pTime and keeping the 2_Option_Menu_01 that menu works fine but not
together so that´s why it´s strange behavior. Attaching logs.

Br Patrik Englund
--------------------------------------------------------------------------
Telecom Operation Specialist
Volvo IT
IMO N&T PM&M  Telecom Gothenburg
DABVN, 56520
Gothenburg, Sweden

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: den 15 oktober 2013 1:58
To: cdicuser@developer.cisco.com
Subject: New Message from Janine Graves in Customer Voice Portal (CVP) - General Discussion - All Versions: RE: Call Studio Time element and say-it.smart

Janine Graves has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- Patrick,

Maybe I misunderstood the problem. If you are hearing the time spoken and THEN you hear an error message, then the error is probably coming from the next Studio element. Can you attach the Activity and Error logs?  The HHMMX say it smart can handle times that end with ? - like 0115? by saying "one fifteen"

If you're using DTMF only, you should probably use a Digits element to collect the time from the caller (instead of using the Time element, which ALWAYS returns 5-characters). In the Digits element, you could specify Min Digits and Max Digits 4.

It would be up to you to determine if the caller enters a valid Time before speaking it with Say it Smart though. Custom Java would be needed for this.

Then you could still speak the time using the Time Say it Smart using HHMM 24 - Hour Time as the Input Format.

If you still need an example of a Say it Smart, let me know.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/community/-/message_boards/view_message/20223025 or simply reply to this email.

Subject: RE: New Message from Janine Graves in Customer Voice Portal (CVP) - General
Replied by: Janine Graves on 15-10-2013 08:01:25 AM
Patrick,
You could turn on VXML debug logging and we'll see what it shows.
Project/Properties - Studio / General Properties.
Click 'Add' next to the Loggers box.
Name: VxmlLogs
Class: com.audium.logger.application.debug.ApplicationDebugLogger
Then save and deploy and run the update script.
Then send the log from the VxmlServer/apps/appname/logs/VxmlLogs folder.

You'll then want to remove that logger from the Studio application.

Janine

Subject: RE: Call Studio Time element and say-it.smart
Replied by: Patrik Englund on 16-10-2013 02:45:01 AM
Hi Janine
I found the issue when doing the debig on the gw. It was looking for am and pm.wav but these i did not have in the application media path for the Swedish language. I copied them in and then all works fine. To add i also changed the gTime to a digit element instead and changed the say it smart format input to 24Hr Time (HHMM).

MAny thanks for all tips and tricks regarding this!

Br Patrik

Subject: RE: Call Studio Time element and say-it.smart
Replied by: Janine Graves on 16-10-2013 06:13:30 AM
The bigger issue is why you weren't receiving error.badfetch.http.404 from the gateway for a missing audio file - which would have led you to finding the problem immediately.
There's no good reason it should've left your VXML Server license hanging.
Do you happen to know what version of IOS software is on your gateway? I think Cisco may have fixed this bug recently.

Subject: RE: Call Studio Time element and say-it.smart
Replied by: Patrik Englund on 17-10-2013 12:12:53 AM
We are using 15.1(4)M3
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links