How can I implement sequential dialing?

You can integrate sequential dialing using a Dial XML element. 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 goes to the number 12025551111 with a timeout value of 30 seconds. That means if the call is not answered by 12025551111 within that time, then the call will be redirected to the second number, 12025552222. You can combine endpoints and phone numbers in the same XML element.

Example 1

<Response>

    <Dial timeout="30" action="https://yourdomain.com/dial_action/">

        <Number>12025551111</Number>

     </Dial>

     <Dial>

         <Number>12025552222</Number>

      </Dial>

</Response>

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

Example 2

<Response>

    <Dial timeout="30" action="https://yourdomain.com/dial_action/">

       <Number>12025551111</Number>

    </Dial>

    <Dial>

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

    </Dial>

</Response>

You can also use PHLO to set up sequential calling.

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