telephony

What happens at the system level on an incoming call?

风流意气都作罢 提交于 2019-12-04 10:51:02
问题 I've downloaded the entire source code for the master branch from https://android.googlesource.com/platform/frameworks/base/+/master, and am trying to decipher the chain of events on an incoming call. I assume that the ACTION_ANSWER intent is started but beyond that don't know what happens before or after. Can anyone help? 回答1: Let's begin by looking at CallNotifier: /** * Phone app module that listens for phone state changes and various other * events from the telephony layer, and triggers

What's your Interactive Voice Response Platform? [closed]

我的梦境 提交于 2019-12-04 10:16:24
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . For those of you working in the voice space, what are you using as your IVR platform? I am using Microsoft Speech Server 2007. What are some equivalent packages? Is anyone using open source software for handling inbound or outbound calls? Note that I'm not just talking about speech recognition, which is one component of a comprehensive package. An IVR platform would consist of speech recognition,

Is it possible to forward VoiP call to GSM

筅森魡賤 提交于 2019-12-04 06:02:12
Is it possible to use an Android phone as a simple GSM gateway? The phone would receive a VoiP call using (preferably) Android built-in SIP stack, initiate a GSM call, and bridge audio both ways. After one call is terminated, the other one ends, too. How could I approach the problem? My earlier attempts failed at bridging audio between connections. Is there a SDK supported way of doing this, that I missed? Or do I need to implement some sort of a workaround? There are two problems with what you are asking: How to get at the incoming audio stream of the cellular call. How to get at the outgoing

How to make live voice phone call using Twilio instead of just playing an MP3 when call is answered?

别等时光非礼了梦想. 提交于 2019-12-03 21:10:58
To call phone number from notebook through Twilio I created ASP.NET-MVC 5.2 application. I can call a number and answer the phone but I don't know how to achieve live voice(to be able to talk) connection instead of just playing music. I created an action method inside HomeController : public ActionResult Call(string to) { client = new TwilioRestClient(Settings.AccountSid, Settings.AuthToken); var result = client.InitiateOutboundCall(Settings.TwilioNumber, to, "http://twimlets.com/message?Message%5B0%5D=http://demo.kevinwhinnery.com/audio/zelda.mp3"); //it causes to play zelda theme when call

How to know if a call has been established?

我只是一个虾纸丫 提交于 2019-12-03 20:21:17
Well, I did a program to make a call to any number of my contact list and it works like a charm. The problem is that I would like to know if the connection has been estabilished (the other person has picked up the phone), and I have not any idea about how to do it. Is there something like an interrupt that can alert me when the connection has been estabilished? listen to the broadcast ACTION_PHONE_STATE_CHANGED, for more information check this out here 来源: https://stackoverflow.com/questions/8955024/how-to-know-if-a-call-has-been-established

How to disconnect incoming call in android by programatically

允我心安 提交于 2019-12-03 17:25:14
I want to disconnect incoming call for a particular time. How can i do this is it impossible ? I searched and i find it is impossible. please help me. public class Telephony3 extends Service { Context context; public IBinder onBind(Intent intent) { return null; } public void onCreate() { super.onCreate(); try { StateListener phoneStateListener = new StateListener(); TelephonyManager telephonymanager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); telephonymanager.listen(phoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); }catch(Exception e) { e.printStackTrace(); } } class

Automatically revert to previous default SMS app

浪子不回头ぞ 提交于 2019-12-03 16:26:17
I have an app that requires temporary access to the device's SMS. In KitKat and above, this access is only granted to the default SMS app, so I'm using: Intent intent = new Intent(Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT); intent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME, getPackageName()); startActivity(intent); This brings up a dialog asking the user if they let my app become the default SMS app. So far so good. Problem is, once my app completes its operation, I have to ask the user again, if they want to restore their previous app as their default SMS app. I'd like a way to avoid

Android: get CellID and RSS for Base Station and Neigboring Cells

蹲街弑〆低调 提交于 2019-12-03 14:19:44
I'm trying to get the following data: Base station: CellID and RSS (recognition which one is the base station) For all neigbouring stations: CellID and RSS There are various APIs and it looks like i'd have to use different APIs telephonyManager and PhoneStateListener. I'm a littlebit confused, as I think this should be available in one interface. Also I think that it should be possible to poll the CellID of the current Base Station instead of having to listen to State Changes to determine int, since the Neighbouring Cell Stations cal also be polled from the telephonyManager. Can you tell me

Android - How to detect outgoing call is answered or received?

你。 提交于 2019-12-03 13:55:26
问题 Is there any way to detect outgoing call is successfully received or answered ? I am using Intent.ACTION_CALL for dialing a call and PhoneCallListener to find the state of a call when outgoing call answered but I couldn't have been achieving this. Is this possible in android ? 回答1: After deeply working on this issue, I reached this conclusion: PhoneStateListener won't work for outgoing calls, it calls OFFHOOK instead of RINGING and OFFHOOK is never called on ANSWER. Using

Phone call state

ぃ、小莉子 提交于 2019-12-03 13:10:06
How do we know programmatically that the call I am making is received in the other side ? I know that there are some phone states like IDLE, OFFHOOK and RINGING. I want to be notified that the outgoing call I am making is received, is disconnected by the other side or is unattended by the other side. Please suggest. You need a PhoneStateListener . With that is is possible to check the state of a phone call. You have to implement onCallStateChanged . This method is called every time the state of a phone call changes. Then you can do something like this: switch(state) { case TelephonyManager