Page 1 of 1

How can i get 'from' and 'to' numbers in saved url

Posted: Fri Dec 12, 2014 8:32 pm
by 2020connection
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

Posted: Mon Dec 15, 2014 10:22 am
by support
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:

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>
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

Re: How can i get 'from' and 'to' numbers in saved url

Posted: Mon Dec 15, 2014 3:59 pm
by 2020connection
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

Posted: Tue Dec 16, 2014 9:11 am
by support
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