phone-call

Asterisk / FreePBX - Perform action when receiving a call

霸气de小男生 提交于 2019-12-23 04:49:12
问题 I'm using FreePBX and have this configuration in extensions_custom.conf so that I can receive a notification via Pushover . [macro-dialout-trunk-predial-hook] exten => s,1,System(/usr/bin/sendpush.php "Call from ${CALLERID(num)} to ${OUTNUM}") I also need to receive notifications on incoming calls, but can't figure it out on what context should I apply it. (If it makes any difference, I'm using 4 trunks and want notifications from all of them) 回答1: Solved by just adding: [ext-did-custom]

Call to a phone number through iPhone App

不想你离开。 提交于 2019-12-23 03:26:52
问题 I want to add features in my iPhone app: call to a phone number in my app play a recorded mp3 voice to that number after call ends, relaunch the previous app I know I have to use following code snippet for dialing to a number XXXXXX: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:XXXXXX"]]; My be play record not worked, as my app will terminate when call dial launch. Is there any way to do this? And, after the call ends or fails, will my previous app relaunch? 回答1: Not

How to call (dialing) with “ * ” char in IOS?

亡梦爱人 提交于 2019-12-22 11:07:34
问题 I hope to call with * character. ex> *711313. Currently, I'm using this code: NSString *str = [NSString stringWithFormat:@"tel:%@", tmp]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; I tested two cases: tmp = @"719929292"; //this is ok. make call. tmp = @"*7128282"; //app no reaction. not to call. How can I call with *(star character)? 回答1: The star may have to be encoded for use in a URL. Try %2A

CallerID Detection: Doesnt work with some phones

雨燕双飞 提交于 2019-12-22 05:17:45
问题 I am using the following method to detect the Caller ID when someone calls. On form load I set the following code: this.serialPort1.PortName = "COM3"; this.serialPort1.BaudRate = 9600; this.serialPort1.DataBits = 8; this.serialPort1.RtsEnable = true; this.serialPort1.DataReceived += new SerialDataReceivedEventHandler(serialPort1_DataReceived); this.serialPort1.Open(); this.serialPort1.WriteLine("AT#cid=1" + System.Environment.NewLine); void serialPort1_DataReceived(object sender,

Android open phone call application

懵懂的女人 提交于 2019-12-21 19:51:05
问题 I just want to open phone call application of android device. I dont want to provide that application a phone number. Just want to open it. I am using phone application's package name to open it. Because I am able to open any application I want through that package name with the code below. Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.android.contacts"); startActivity(launchIntent); I am not able to open Phone and Contacts application with the above code. What can

Best way to call activity Method with Phonegap 3.0 from js

坚强是说给别人听的谎言 提交于 2019-12-21 12:21:58
问题 I'm trying to make a phone call from my index.html in phonegap using a native method from MainActivity. I'm using phonegap 3.0 and android 4.3 platform. I tried the second answer on this post but it is not working for this versions. I would like to know what is the best approach to get through this? 回答1: You can create a custom plugin to call any method from the native side. Create a separate JavaScript file, say customplugin.js, and put this into it: var CustomPlugin = {}; CustomPlugin

How to know if a call has been established?

夙愿已清 提交于 2019-12-21 05:22:34
问题 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? 回答1: listen to the broadcast ACTION_PHONE_STATE_CHANGED, for more information check this out here 来源: https://stackoverflow.com

Simulate an incoming call from a private number

a 夏天 提交于 2019-12-21 04:49:19
问题 How can I simulate an incoming call from a private number -- in an emulator? 回答1: connect to your PC using telnet on the port of your emulator, e.g. telnet localhost 5554 and use the gsm call command with a number of # instead of digits gsm call # and you'll receive your unknown call on the emulator's phone. 来源: https://stackoverflow.com/questions/10004162/simulate-an-incoming-call-from-a-private-number

Android play audio file during phone call

*爱你&永不变心* 提交于 2019-12-20 20:38:42
问题 For my Android app, I want to play an audio file after answering the call from my application. App will initiate phone call and once receiver pick up the call, app should start playing recorded audio file. By searching a lot in Google I found that this is not directly possible for unrooted device. But any alternative of this or any other way to achieve this? I want to implement this because functionality of the app is: if App user is in trouble, he can just press help button in the app and

how to create auto answering machine for android [closed]

喜欢而已 提交于 2019-12-20 09:38:20
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . is it possible to write an auto answering machine for android ? for example when incoming call event occurs, this application start to play voice. how can i do this ? 回答1: Android applications do not have access to the in-call audio stream at this time. So, presently, your