Twilio call forwarding for specific time of day -



Twilio call forwarding for specific time of day -

with twilio i'd implement service sends inbound calls voice recording during specific times of day.

can twilio provide behavior?

twilio developer evangelist here. can absolutely that! i'm not sure language or framework you're using, here's thought of how you'd accomplish this.

when twilio receives phone call on twilio number makes webhook request server respond , tell call. instructions built in xml (twiml). so, time based stuff want (my illustration in ruby using sinatra web framework):

post '/call' time = time.now content_type 'text/xml' response = "<response>" if out_of_hours?(time) response = "<say>please leave message</say><record />" else response = "<dial><number>your_phone_number</number></dial>" end response = "</response>" response end

you can define out_of_hours? follow rules want.

i hope help, please allow me know if have other questions.

twilio

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -