- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在开发一个 VoIP 应用。
My app registers to a SIP based back-end server using a User-ID and password.
Once the registration is successful, the user can make sip calls through this app.
If the user uses the native phone dialer to dial out a number, My app intercepts the call and places the call through SIP.
Once the call is intercepted, the native phone dialer goes to background and my app's 'call status' screen is displayed(my app comes to foreground).
我的要求如下:
一旦通话被拦截,我们需要显示 native 拨号器(默认电话拨号器)“通话状态”/“通话进度”屏幕(如三星手机的三星 Touchwiz,HTC 的 HTC Sense),而不是显示我的应用程序的用户界面电话等),但调用应通过我的应用程序(SIP)进行。我们的应用程序应控制 native 拨号器“通话状态”屏幕的所有功能。
例如:如果用户在 native 拨号器的“通话状态”屏幕上点击“通话结束”按钮,我的应用程序应该结束通话。同样, native 拨号器“调用状态”屏幕上的所有控件都应将控制权移交给我的应用程序以采取必要的操作。
请告诉我是否有可能实现这一点以及如何实现。
*public void onReceive(final Context context, Intent intent) {
final String intentAction = intent.getAction();
if (intentAction.equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
SharedPreferences getPrefs = PreferenceManager
.getDefaultSharedPreferences(context);
boolean bool_CustomFlag = getPrefs.getBoolean(
"use_custom_dialer_preference", true);
if (bool_CustomFlag == true) {
setResultData(null);
final String strPhoneNum = intent*
.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
(new Thread() {
public void run() {
try {
Intent intent = new Intent(Intent.ACTION_CALL,Uri.fromParts("my_data_scheme",
Uri.decode(strPhoneNum),null));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
} catch (Exception e) {
e.printStackTrace();
}
}
}).start();
}}*
我已经为我的呼出 Activity 创建了我自己的数据方案,以便 brodcastreciver 可以收听 Action_outgoing_call 并在通过 native 拨号器调用电话时启动我的呼出 Activity 。
*<activity
android:name=".OutgoingCallActivity"
android:screenOrientation="portrait">
<intent-filter >
<action android:name="android.intent.action.CALL" />
<category android:name= "android.intent.category.DEFAULT" />
<data android:scheme = "sip" />
<data android:scheme="my_data_scheme" />
</intent-filter>
</activity>*`
最佳答案
抱歉,Android 没有任何 API 可以使用内置调用状态屏幕执行您想要执行的操作。
唯一记录在案的方法是调出您自己的通话状态屏幕。许多 SIP 应用程序模拟内置的 android 通话状态屏幕,因此看起来都一样。
关于android - 需要帮助才能在第 3 方 VOIP 应用程序中使用 native IN-CALL 屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11624779/
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 7年前关闭。 Improve thi
在 VOIP 和与 VOIP 系统的集成方面,我非常陌生。 这是我正在尝试做的事情: 来电者呼入,接线员接听电话。 1.1。开始将调用者的音频流式传输到云中的分析服务。 一旦执行了音频分析(通常在几秒
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'PushKit a
我想在推送通知到来时将我的本地数据库与服务器同步,但我无法使用静默通知来同步,因为 application:didReceiveRemoteNotification:fetchCompletionHa
我在应用商店中有一个使用静默推送通知的应用,新版本将改为使用 Voip 推送。 以前,我已经能够连接开发推送证书和产品推送证书,然后在发送推送的服务器代码中使用该组合证书。这样做的好处是,如果服务器代
我正在使用 voip 推送通知制作 ios 应用程序。 我想从 Node js 发送 voip 推送通知,但不是很好。 我阅读了本教程 CallKit iOS Swift Tutorial for V
在请求带有CXEndCallAction的CXTransaction时,事务失败并显示错误代码 错误Domain = com.apple.CallKit.error.requesttransactio
我有一堆 RTP 数据包,我想将它们重新组合成音频流。对于每个数据包,我都有序列号、SSRC、时间戳和一个表示数据本身的字节数组。 目前,我通过它们的 SSRC 获取每个数据包子集,然后按时间戳对它们
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 5年前关闭。 Improve thi
我必须计算 RTP 流中数据包之间的时间偏移。对于使用 Theora 编解码器编码的视频流,我有时间戳字段,如 2856000 2940000 3024000 ... 所以我假设传输偏移量是
当调用从队列转移到代理时,是否有一种简单的方法可以将代理扩展捕获到 Asterisk 变量中? 编辑:我们正在使用动态代理。座席接听电话后,将电话转接到另一分机。在该扩展的上下文中,我们需要使用一个
Closed. This question does not meet Stack Overflow guidelines 。它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 Stack Ov
我想用 SIP 协议(protocol)实现一个 Voip 应用程序。我已使用 tutorial 管理接收和拨号.我遇到的问题是,我的应用程序在关闭时不会接听来电。我曾尝试使用服务,但没有帮助我解决问
我正在做一个在 android 中录制 VOIP 通话的项目,我没有找到任何解决方案,有很多应用程序支持手机上的 VOIP 录音。我找不到任何教程和帮助。 Cube Call Recorder是提供此
我刚刚编写了我的 Twilio 应用程序,以便向我在印度尼西亚的电话号码进行出站语音调用。 当我接听语音电话时,在第一个音频播放之前大约有 3-5 秒的延迟,无论是使用 或使用 动词。 你们知道为什么
我正在尝试在 ubuntu 上安装 mod_java。 我已经安装了最新的 java(1.6)。 我在 module.conf.xml 中配置了启用 mod_java 模块的 freeswitch 然
我正在开发一个需要定期(经常)在后台执行某些工作的应用程序,即使该应用程序本身未显示。我已经宣布它为VOIP应用程序,使其启动,甚至在10分钟(600秒)后自动重新启动。该应用程序不适用于App St
我有用 Java/SWT 编写的独立应用程序。现在我需要在这个应用程序中实现软件电话功能。有没有完全用 java 编写的现成可用的 VOIP 框架,它可以让我快速开发软件电话,而不会弄乱低级 sip/
我正在使用 iOS 版本 9 和 swift。我可以在应用程序处于事件状态时接听电话,但当应用程序关闭或在后台时,我遇到了一个问题,它只收到通知,而不是完整的铃声(我正在使用 SinchService
我正在开发一个通过 Wi-Fi 与非 iOS 设备通信的 iPhone 应用程序。我的应用程序正在使用 VOIP。我已经配置了流并将必要的 UIBackgroundModes 添加到我的 plist
我是一名优秀的程序员,十分优秀!