You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you give it a quick skim and tell me if I am even on the right track, and provide any advice at all. No need to take longer than a few seconds if you don't want to, just want to know if I'm wasting my time or whether I'm rocking it up. Thanks mate :)
The text was updated successfully, but these errors were encountered:
You are definitely on the right track here, but there are a few issues. Most of them are due to the fact that my documentation isn't all that great. :-/ So... thanks for bringing this to my attention.
Checkout the documentation for Call.reject(). You cannot Call.say() and then Call.reject()
Once a call is done executing TwiML, it will hangup automatically. Your userCall will automatically hang-up since you did not put it on hold. To do this, just put it into an empty conference room and use waitURL for your hold music. When testing, be sure to set a time limit on your conference room just in case things go awry.
Also, BEWARE that you cannot do userCall.say() on line 73 of your Gist because of the async nature of your program. All TwiML generating functions simply queue TwiML for the Call object. What you actually need to do here is use the liveCb() function. This is a pretty common pitfall of this library, and I will provide additional documentation on this shortly. See issue docs: Clarify the use of TwiML-generating functions #4. Basically, whenever you call an async function inside of your 'connected' event, it is too late to call any TwiML functions on the Call object. If you want to execute TwiML later, you have to put the call on hold. Then, modify the live call using the liveCb() function.
Hey Blake,
I've been trying to build the following:
http://forum.twilio.com/twilio/topics/is_this_possible_receive_a_call_attempt_to_forward_to_two_other_numbers_simultaneously_if_that_fails_take_a_message
And came up with the following code:
https://gist.github.com/2011413
Can you give it a quick skim and tell me if I am even on the right track, and provide any advice at all. No need to take longer than a few seconds if you don't want to, just want to know if I'm wasting my time or whether I'm rocking it up. Thanks mate :)
The text was updated successfully, but these errors were encountered: