asp.net mvc - c# twilio client browser to browser calls -
i in process of writing c# mvc.net application , need know if can end twilio client calls after amount of time , play recording during call when call has reached time limit or recording says "this call end in 30 seconds". help.
you'll have little work make work duration
empty value until after call terminates. instead, use starttime
parameter on call , calculate duration manually in application.
after implementing can modify call using <play>
verb play recording during call warning message , <hangup>
call once reached specified time.
an example modification in c# like:
// download twilio-csharp library twilio.com/docs/csharp/install using system; using twilio; class example { static void main(string[] args) { // find account sid , auth token @ twilio.com/user/account string accountsid = "account_sid"; string authtoken = "auth_token"; var twilio = new twiliorestclient(accountsid, authtoken); twilio.redirectcall("call_sid", "http://demo.twilio.com/docs/voice.xml", "post"); }
Comments
Post a Comment