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

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
2020connection
Posts: 6
Joined: Tue Dec 09, 2014 1:55 pm

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

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

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

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

Post 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

2020connection
Posts: 6
Joined: Tue Dec 09, 2014 1:55 pm

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

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

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

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

Post 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

Post Reply