Page 1 of 1

VXML to Get Channel Usage or Availability

Posted: Thu Feb 17, 2011 8:53 am
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

Re: VXML to Get Channel Usage or Availability

Posted: Thu Feb 17, 2011 10:04 am
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