We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Identifying inbound and related outbound calls

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
sking@xosphere.com
Posts: 18
Joined: Fri Dec 28, 2007 5:20 pm

Identifying inbound and related outbound calls

Post by sking@xosphere.com »

Hello guys, we have an application that generates outbound calls. We would like to identify which outbound call were generated from which inbound calls.

Is there any ID already defined that we can use in both?


Thank you

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

IVR code that uses session.id to identify in and outbound

Post by support »

Hi,

Yes, you can use "session.id" to identify IVR inbound and IVR outbound calls. Here is an IVR code example that shows how to use session.id:

Code: Select all

<?xml version="1.0" encoding="latin-1"?>
<vxml version="2.0">
  <form>
    <block>
      <prompt>
        Your phone number is
        <say-as type="acronym">
          <value expr="session.telephone.ani"/>
        </say-as>.
        You called from
        <say-as type="acronym">
          <value expr="session.telephone.dnis"/>
        </say-as>.
        Your session id is
        <say-as type="acronym">
          <value expr="session.id"/>
        </say-as>.
      </prompt>
    </block>
  </form>
</vxml>
For the session id, the IVR application would return a unique id such as "000005;000;1190752725" where the number before the first semicolon is a six character server identifier, the number before the second semicolon is a three digit channel identifier, and the last number is a timestamp of when the channel was ready to receive the next IVR call.

Hope this helps.

Regards,
Plum Support

Post Reply