How do I implement sequential dialing?

You can integrate sequential dialing using a Dial XML. Add a list of phone numbers, endpoints, or a combination of numbers and endpoints so that the calls are sequential for each recipient one after the other. 

The following example shows sequential calls to a list with two numbers. The first call will be to the number 18217654321 with a timeout value of 30 secs. That means if the call is not answered by 18217654321 within 30 seconds, then the call will be redirected to the second number, 15671234567. You can combine endpoints and phone numbers in the same XML.

Example: 1

<Response>

    <Dial timeout="30" action="http://foo.com/dial_action/">

        <Number>18217654321</Number>

     </Dial>

     <Dial>

         <Number>15671234567</Number>

      </Dial>

</Response>

The second example shows sequential calling to a list containing one number and one endpoint. The first call will be to the number 18217654321 with a timeout value of 30 seconds., If the call is not answered by 18217654321 within 30 seconds, then the call will be redirected to the endpoint sip:john1234@phone.plivo.com.

Example: 2

<Response>

    <Dial timeout="30" action="http://foo.com/dial_action/">

       <Number>18217654321</Number>

    </Dial>

    <Dial>

       <User>sip:john1234@phone.plivo.com</User>

    </Dial>

</Response>

Sequential calling can be achieved through the PHLO as well.

Screenshot__9_.png

Was this article helpful?
0 out of 0 found this helpful
Didn’t find what you are looking for? Create new ticket