samjones39
samjones39

Reputation: 163

Twilio integration: How to play audio while forwarding a call to a number

I've integrated twilio with a application i am coding, everything works great. i read almost all of the documentation but i cannot find a way to play an audio while forwarding a call. i can play it before forwarding the call but i would like to play the audio while the phone is ringing. anyone has a solution?

 <Play loop="<?php echo $loop_audio_track; ?>"><?php echo $audio_track ?> 
 </Play>

 <Say voice="<?php echo $voice; ?>" language="<?php echo $language_code; ?
>"><?php echo $busy_message ?></Say>

Upvotes: 1

Views: 214

Answers (1)

StevenDStanton
StevenDStanton

Reputation: 866

The only way I could think for this to work is to use a conference room to connect the two parties.

<Response>
  <Dial>
    <ConferencewaitUrl="http://twimlets.com/holdmusic?Bucket=com.twilio.music.classical&amp;Message=please%20wait">
    1000
    </Conference>
  </Dial>

Maybe one of the twilio evegalists on here will have a better suggestion

Upvotes: 1

Related Questions