12-07-2011 11:15 AM
Hello,
I want to create a script for the cue where i want to compare the first digits of the calling number to a predefined number, example someone calls from holland then the calling number = 0031xxxx , than i want to play a dutch prompt. , if the caller calls from germany 0049xxx then i want to play a german message.
I receives the callingnumber from the function "Get Call Contact Info" (string). Then i create several variabele strings with 0049 , 0031 , now i want to create a expression thats compare the predefined variabele with the first digit from the call contact info, but i dont know how to create the right expression,
Maybe anyone can help me ?
Adriaan
Solved! Go to Solution.
12-16-2011 06:36 AM
I think the previous post didn’t add he pictures right. Here it is.
Please split the Incoming Number to get first 4 digits and then depending on the first 4 digits, set the appropriate language message setting for call flow.
The individual steps are as below:
1) Create New String “Calling Num”
2) Get Call Contact Info
-- Get Calling Number details (Ex:1033xxx) and save it in “CallingNum”.
3) Create New String “GlobalExtension” as shown in step 1 and set value as CallingNum.substring(0,4). This will set first 4 digits of calling Num (Ex:1033) only to “Global Extension”.
4) Create New Language variables (English , Japanese , French ) and assign L[en_US] , L[ja_JP] ,L[fr_CA] respectively as shown in step1.
5) Add Switch Block to switch to the Langauage based on value of “GlobalExtension”
6) Add Set Contact Info Block: To set the appropriate language for particular call flow.
If the value is “1033” , it will go to “English_l” label and have the language as English ( By set contact info) for entire call flow. Otherwise , if it is “5433” ,it will go to “Japanese_l” label and have the language as Japanese (By set contact info) for entire call flow.
7) You can have your own further steps
Note: All required languages should be installed in the system.
Hope that helps.
Thanks,
Gomahthy.
From: community(mailer list)
Sent: Friday, December 16, 2011 7:40 PM
To: Madhavi Cherukuri (kadiyala)
Subject: - Re: Create custom script for play right language based on country number
Cisco Communities <https://communities.cisco.com/index.jspa>
Re: Create custom script for play right language based on country number
created by Gomahthy Ganesan <https://communities.cisco.com/people/gomganes> in Unified Communications - View the full discussion <https://communities.cisco.com/message/81003#81003>
12-14-2011 10:01 AM
Adriaan,
Have you tried posting this question to the Cisco Support Community? The community offers great resources and content regarding custom scripts. Here is the link: https://supportforums.cisco.com/index.jspa
Hope that helps.
Kelli Glass
Moderator for the Cisco Collaboration Community
12-16-2011 06:09 AM
Hi Adriaan,
Please split the Incoming Number to get first 4 digits and then depending on the first 4 digits, set the appropriate language message setting for call flow.
The detailed steps are as below
1) Create new String "CallingNum"
2) Get Call Contact Info
-- Get Calling Number details (Ex:1033xxx) and save it in “CallingNum”.
3) Create New String “GlobalExtension” as shown in step 1 and set value as CallingNum.substring(0,4). This will set first 4 digits of calling Num (Ex:1033) only to “Global Extension”.
4) Create New Language variables (English , Japanese , French ) and assign L[en_US] , L[ja_JP] ,L[fr_CA] respectively as shown in step1.
5) Add Switch Block to switch to the Langauage based on value of “GlobalExtension”
6) Add Set Contact Info Block: To set the appropriate language for call flow.
If the value is “1033” , it will go to “English_l” label and have the language as English ( By set contact info) for entire call flow. Otherwise , if it is “5433” ,it will go to “Japanese_l” label and have the language as Japanese (By set contact info) for entire call flow.
7) You can have your own further steps
Note : All required languages should be installed in the system.
Hope that helps.
thanks,
Gomahthy.
12-16-2011 06:36 AM
I think the previous post didn’t add he pictures right. Here it is.
Please split the Incoming Number to get first 4 digits and then depending on the first 4 digits, set the appropriate language message setting for call flow.
The individual steps are as below:
1) Create New String “Calling Num”
2) Get Call Contact Info
-- Get Calling Number details (Ex:1033xxx) and save it in “CallingNum”.
3) Create New String “GlobalExtension” as shown in step 1 and set value as CallingNum.substring(0,4). This will set first 4 digits of calling Num (Ex:1033) only to “Global Extension”.
4) Create New Language variables (English , Japanese , French ) and assign L[en_US] , L[ja_JP] ,L[fr_CA] respectively as shown in step1.
5) Add Switch Block to switch to the Langauage based on value of “GlobalExtension”
6) Add Set Contact Info Block: To set the appropriate language for particular call flow.
If the value is “1033” , it will go to “English_l” label and have the language as English ( By set contact info) for entire call flow. Otherwise , if it is “5433” ,it will go to “Japanese_l” label and have the language as Japanese (By set contact info) for entire call flow.
7) You can have your own further steps
Note: All required languages should be installed in the system.
Hope that helps.
Thanks,
Gomahthy.
From: community(mailer list)
Sent: Friday, December 16, 2011 7:40 PM
To: Madhavi Cherukuri (kadiyala)
Subject: - Re: Create custom script for play right language based on country number
Cisco Communities <https://communities.cisco.com/index.jspa>
Re: Create custom script for play right language based on country number
created by Gomahthy Ganesan <https://communities.cisco.com/people/gomganes> in Unified Communications - View the full discussion <https://communities.cisco.com/message/81003#81003>
12-16-2011 10:55 AM
Thank you very much. Indeed , this piece of the script i need "CallingNum.substring(0,4)". Everything you wrote is very helpfull
I create the script and it's working, now we have a satisfied customer.
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: