Call Forwarding and Callee ID
My recommendation would be to not forward the calls to Twilio and call the Twilio number directly. The ability to capture the original called number is carrier dependent and not reliable.
ForwardedFrom - https://www.twilio.com/docs/voice/twiml#request-parameters
You could also forward the call to Twilio via SIP (rather then over the Public Switched Telephone Network), and possibly pass an X-Header with the original Caller ID, but that is most likely not possible with your existing carrier.
Android : Set Call forwarding after a delay
UUID Code Links :
http://www.theunwired.net/?item=how-to-diverting-voice-calls-by-using-ussd-codes>UUID Code 21 Diverts all Calls
So to Divert if no Reply we have to Use
UUID Code 61
So Replace :
String fwdMobNumVar = ("**21*" + mobNumVar + "#");
with
=> For 5 Sec Delay :
String fwdMobNumVar = ("**61*" + mobNumVar + "*" + 5 + "#");
=> For 10 Sec Delay :
String fwdMobNumVar = ("**61*" + mobNumVar + "*" + 10 + "#");
How can I speed up call forwarding on Twilio? - Django
Twilio developer evangelist here.
It appears that you are both reading data from and then saving data to a database before you respond with the TwiML to tell Twilio to forward the call. To get the quickest forwarding you should return TwiML as quick as you can.
Perhaps you can test the same forwarding without hitting the database and see if there is a difference. If there is, then I can see you need to read the database to get the number to forward to, but perhaps you could set up the saving of a new Lead to be done in a background job rather than block the response with it.
Another thing to try is to set answerOnBridge="true" on your .
Let me know if that helps at all.
Related Topics
How to Show Text in Android System Status Bar
How to Use Broadcast Receiver in Different Applications in Android
Android: Showing Wrong Screen Resolution
Finding Current Location of the User in Android
How to Set Toolbar Text and Back Arrow Color
How to Put a Constraintlayout Inside a Scrollview
There Is No Debug.Keystore in .Android Folder
Android Layout Animations from Bottom to Top and Top to Bottom on Imageview Click
Access to Google API - Googleaccountcredential.Usingoauth2 VS Googleauthutil.Gettoken()
Converting Preview Frame to Bitmap
Displaying Contact Number and Contact Name in a Custom List View
How to Change Images on Imageview After Some Interval
How to Filter the Data in Realm Adapter
Adb Cannot Start Daemon, Createprocess Failure, Error 2
Get List of Active Pendingintents in Alarmmanager
Add 'Tools:Replace="Android:Value"' to <Meta-Data> Element at Androidmanifest