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

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 goes to the number 18217654321 with a timeout value of 30 seconds. If the call is not answered by 18217654321 within that time, 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>

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