Skip to main content
Participant
April 13, 2013
Question

DTMF data comparision in workflow.xml

  • April 13, 2013
  • 1 reply
  • 580 views

How can I authenticate/ campare enetered DTMF digits in workflow. Any idea to add if else condition in args property?

Example :

User entered 12 digits meeting ID and i want to compare it from database/flat file or hard coded value for authentication of  meeting ID.

See below my dial plan:

<Condition variable="destNum" value="^16465031196$">

        <AppNode sequence="1" app="playfile" args="welcome.wav"/>

        <AppNode sequence="2" app="getDTMF" args="1|12|3|10|meeting.raw|valid-meetingid.raw"/>

        <AppNode sequence="3" app="statusCheck" args="4|8"/>

        <AppNode sequence="4" app="getDTMF" args="1|4|3|10|pincode.raw|valid-pincode.raw"/>

        <AppNode sequence="5" app="statusCheck" args="6|9"/>

        <AppNode sequence="6" app="bridge" args="rtmp|${dtmfDigits}@profile_default"/>

        <AppNode sequence="7" app="hangup" args="null"/>

        <AppNode sequence="8" app="playfile" args="valid-meetingid.raw"/>

        <AppNode sequence="9" app="playfile" args="valid-pincode.raw"/>

        <AppNode sequence="10" app="Goto" args="1"/>

    </Condition>

Quick response will be highly appriciated.

Thanks,

Anjum

    This topic has been closed for replies.

    1 reply

    July 16, 2014

    Although your question has been posted a year ago, I hope I can help even your readers. This project published at Codeproject can be a possible solution for your problem: How to create an IVR-based telephone client gate system in C#/XML/HTTP/PHP by using DTMF authentication - CodeProject It's based on this VoIP SIP SDK.