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

VXML to Get Channel Usage or Availability

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
ckrosnowski
Posts: 7
Joined: Wed Dec 08, 2010 11:25 am

VXML to Get Channel Usage or Availability

Post by ckrosnowski »

Hello Everyone,
Wondering if it is possible to get the current channel usage or availability in the PlumVoice system via vxml? We have a vxml application that transfers people around to different outside phone numbers after call in and authenticate themselves. When this happens the person calling in will take up another channel for the transfer (one for their original call into the system and then another for the transfer).

What I would like to do is when someone calls in; query the PlumVoice system to make sure there is at least one more channel free for the transfer before letting the call continue. If not I would forward them to a generic "The system is busy, please call back later."

Any help or ideas would be appreciated.
Thanks,

Chris

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

Re: VXML to Get Channel Usage or Availability

Post by support »

Hi Chris,

Regarding your question, you wouldn't be able to check the channel usage or availability in the Plum Voice system via VXML. So, you wouldn't be able to check this before attempting a transfer.

However, in your <transfer> tag, you can set up <if> conditionals if a transfer call resulted in a "busy" or "noanswer".

Here is some sample code below that demonstrates this:

Code: Select all

<transfer name="mycall" dest="tel:+1-XXX-XXX-XXXX" connecttimeout="20s" bridge="true">

<prompt>
  Transferring your call now.
</prompt>

<filled>
  <if cond="mycall == 'busy'">
    <prompt>
      Henry's line is busy. Please call again later.
    </prompt>
  <elseif cond="mycall == 'noanswer'"/>
    <prompt>
      Henry can't answer the phone now. 
    </prompt>
  </if>
</filled>
</transfer>
Hope this helps.

Regards,
Plum Support

Post Reply