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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -