We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
How can i get 'from' and 'to' numbers in saved url
-
- Posts: 6
- Joined: Tue Dec 09, 2014 1:55 pm
How can i get 'from' and 'to' numbers in saved url
I need 'from number' the number calling to application number, and 'to number' the number associate with my application. I need both number in my php file. Does plum post 'from' and 'to' number in saved urls?
Re: How can i get 'from' and 'to' numbers in saved url
Hi,
Ani and dnis are session variables that are available within your script. Here's an example of capturing these values and playing them back to the caller:
A description of all session and application variable can be found here: http://www.plumvoice.com/docs/dev/voice ... essionvars
Hope that helps,
Plum Support
Ani and dnis are session variables that are available within your script. Here's an example of capturing these values and playing them back to the caller:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.1">
<var name="ani"/>
<var name="dnis"/>
<form>
<block>
<assign name="ani" expr="session.telephone.ani"/>
<assign name="dnis" expr="session.telephone.dnis"/>
<prompt>I have your telephone number as <say-as type="acronym"><value expr="ani"/></say-as></prompt>
<prompt>The number you dialed is <say-as type="acronym"><value expr="dnis"/></say-as></prompt>
<exit/>
</block>
</form>
</vxml>
Hope that helps,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
-
- Posts: 6
- Joined: Tue Dec 09, 2014 1:55 pm
Re: How can i get 'from' and 'to' numbers in saved url
It didn't work, it's sending last 4 digits of dnis, and nothing on ani. Is it because i'm on evolution account?
Re: How can i get 'from' and 'to' numbers in saved url
Hi,
Please note that this forum support questions for Plum DEV accounts. If you are using an Evolution account, please consult with Voxeo to have your questions answered.
Regards,
Plum Support
Please note that this forum support questions for Plum DEV accounts. If you are using an Evolution account, please consult with Voxeo to have your questions answered.
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com