In the Connect applet, in the "Dial Whom" section, there is an option to "Dial phone number (or phone number returned by this URL)". You can specify a URL in the text box. When the text box contains a URL, Exotel will make a HTTP GET request to that URL. The URL should return a number in the HTTP response. This is the number that Exotel will now try dialing and connecting the caller to. 

The GET request that Exotel makes to the URL will have the following query parameters:

CallSid string; unique identifier of the call
From string; the number of the calling party
To string; the number that is being called (i.e., the customer's Exotel number). Currently this is the landline number.
CallStatus string, One of ('queued','ringing','in-progress','completed','busy','failed','no-answer','canceled')
Direction string, One of ('incoming', 'outbound-dial') depending on whether it is an inbound call or outbound call)

The response MUST ensure
- the HTTP response body must contain the phone number to be dialed out - and nothing else.

NOTE: This option will be available only if your KYC docs have been submitted & approved.

Need a techie for this integration?
Check our Phone a Friend App