HI,
I have a requirement where i want to assign a variable a combined value of two other variable. something like this
<var name="countryCode" expr="'+91'"/>
<var name="telNumber" expr="'9899478866'"/>
Now the provider number variable should have been assigned a value which is combination of values of two variable.
<var name="providerNumber" expr="'+919899478866'"/>
<transfer destexpr="providerNumber"/>
Regards,
Arvind
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Can i assign a variable a combined values from two vars
-
- Posts: 53
- Joined: Sun Feb 15, 2009 11:42 pm
- Contact:
IVR code to combine two variables
Hi,
Here is an example of the IVR tag, <transfer>, used in IVR code that should help you combine two variables:
Hope this helps.
Regards,
Plum Support
Here is an example of the IVR tag, <transfer>, used in IVR code that should help you combine two variables:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<var name="countryCode" expr="'+91'"/>
<var name="telNumber" expr="'9899478866'"/>
<block>
<prompt>
The provider number is <value expr="countryCode + telNumber"/>.
</prompt>
</block>
<transfer name="DestinationPhone" destexpr="'tel:+1' + countryCode + telNumber" bridge="true" connecttimeout="15s">
...
</transfer>
</form>
</vxml>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com