function - Run Dial & Say at the same time on Twilio? -


when user calls number, wish have twilio <say> them while <dial>ing number, issue is, can seem 1 or other (i.e. say, dial (delaying dial), or, dial, (not saying until call over)). want either of following (first 1 preferable, although answers both best (in case need opposite 1 in future/someone googling)):-

  1. initiate call new number and start saying "lorem ipsum...", if finishes first silence until call picked up, if phone number picks first, let finish transfer them/combine calls.

  2. initiate call new number and start saying "lorem ipsum...", if finishes first silence until call picked up, if phone number picks first, cut command off , instantly transfer/combine calls.

thanks!

twilio evangelist here.

there no way using twiml twilio processes twiml sequentially going finish <say> before moving on <dial>.

you combine twiml rest api however. in same http request generating twiml in it, make call out rest api have twilio start outbound phone call.

twilio <say> want caller while dialing caller b. when caller b answers, put them conference. once caller finishes listening <say> put them same conference.

this way, regardless of gets first, caller or caller b, either wait other. can use statuscallback parameter detect if caller b never answers , in scenario redirect caller out of conference.

hope helps.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -