phone-call

Asterisk AGI - Originate a call using php agi

谁都会走 提交于 2019-12-05 10:59:54
Is anybody knows , how we can Originate an external number call using PHP AGI script ? MichelV69 You have got two possible options. One is use the "Originate" command. See http://www.voip-info.org/wiki/view/Asterisk+manager+Example:+Originate for an example. The other one, which is what I favor in my solutions, since it does not require AMI, is using spooled call files. See https://wiki.asterisk.org/wiki/display/AST/Asterisk+Call+Files for how to do them. The trick, and I cannot stress it enough, is to create the spool file in /tmp and then "move" the file into the ../spool/asterisk/outgoing

How to play audio file when call starts?

天涯浪子 提交于 2019-12-05 07:55:40
I am initiating a voice call from my application. Now i want that when the user on the other side picks up the call, i want to play a recorded audio file. How to go about this? Please help! I have found a workaround with this. I play an audio file on device's speakers with full sound when the phone state changes to TelephonyManager.CALL_STATE_OFFHOOK This ensures that the user on the other side can hear the recording. In simple and clear words you cant stream any sound on an Incoming call 来源: https://stackoverflow.com/questions/7495506/how-to-play-audio-file-when-call-starts

getting the group name to the according pri port in asterisk

匆匆过客 提交于 2019-12-05 01:39:07
I am using sagoma 8 port card My chan_dahdi.conf to configure the ports are ;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit ;autogenrated on 2015-06-12 ;Dahdi Channels Configurations ;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak [trunkgroups] [channels] context=default usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes relaxdtmf=yes rxgain=0.0 txgain=0.0 group=1 callgroup=1 pickupgroup=1 immediate=no

How to make an application default phone or Assistant handler on the device by giving user an option to make it default app

让人想犯罪 __ 提交于 2019-12-04 22:26:55
We have received a policy notice from playStore as: Your app manifest requests the Call Log permission group (e.g. READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS) It must be actively registered as the default Phone or Assistant handler on the device. I am not able to understand what Assistant handler on the device . Any inputs or suggestions are most welcome. what are the minimum requirements by the android application to fullfil the requirement. Check the documentation at: https://developer.android.com/reference/android/telecom/TelecomManager#ACTION_CHANGE_DEFAULT_DIALER Sample code:

Open source easy-to-customize call center solution?

假如想象 提交于 2019-12-04 22:06:46
Note: A have asked this question at the Superuser community first , but since it involves a lot of software-building-related topics I decided to move it here. I need to provide a simple call-center solution to a small local business. They have a local 6-digit land line number. They accept calls locally, i.e. nobody calls them from another cities. The problem is that they started to lose customers, because with a certain amount of calls every day it has become impossible to reach the local phone number (it is always busy). So, there is a call center solution needed. I assume that I can somehow

How to know callee is answered the call (What is the phone state when he lift the call)

一世执手 提交于 2019-12-04 16:45:28
问题 I am trying to know how to alert when the callee lifts the call. I have used PhoneStateListener along with BroadcastReceiver . Generally it has three states CALL_STATE_IDLE , CALL_STATE_OFFHOOK, CALL_STATE_RINGING . CALL_STATE_OFFHOOK state was calling when call is connecting, No state of the above three states was called after callee answered call. Here is my BroadcastReceiver. public class PhoneStateBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context

android:override incoming call screen

我的梦境 提交于 2019-12-04 16:32:32
I want to add some addition information to the incoming call screen. For that in my app i am checking the PHONE_STATE and on RINGING, i am calling an activity. In this activity i am setting a text view as below. Its working as expected. The text gets added to incoming call screen tHE iSSUE IS : If i am in my app , ie in a view of my app , and if an incoming call comes, the android incoming window comes and disappears. My app window comes to top and the text view which was supposed to override incoming call window also visible. Please explain this behavior. How can i fix this? super.onCreate

How to open number dialer pad programmatically in android?

岁酱吖の 提交于 2019-12-04 16:17:37
问题 I want to display Number Dial Keypad (Phone Call) Programmatically on button click in android. Code is available for direct number dialing but I only need to show the dial keypad when I click the Button. 回答1: Intent intent = new Intent(Intent.ACTION_DIAL); startActivity(intent); 回答2: Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:9999999999")); startActivity(intent); For this we don't need to add any permission in AndroidManifest.xml 回答3: Intent intent = new

Android open phone call application

戏子无情 提交于 2019-12-04 14:56:25
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 be the problem? Intents are intended (no pwn intended here (damn!)) to give you a more generic way of