是否有可能将VoIP呼叫GSM [英] Is it possible to forward VoiP call to GSM

查看:598
本文介绍了是否有可能将VoIP呼叫GSM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用Android手机作为一个简单的GSM网关?结果
这款手机将接收使用VoIP呼叫(preferably)的Andr​​oid内置的SIP协议栈,发起GSM呼叫,以及桥接音频两种方式。一个呼叫终止后,另外一个端部,也

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.

我怎么能解决这个问题?我较早尝试连接处之间的桥接音频失败。是否有这样做的SDK支持的方法,我错过了什么?或者我需要实现某种变通方法吗?

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?

推荐答案

有两个问题你问:


  1. 如何获得在蜂窝式呼叫的传入的音频流。

  2. 如何获得在蜂窝电话的出音频流。

录制音频蜂窝

看看这个链接关于如何的一些细节可以在部分设备来完成。他们使用的API是 MediaRecorder API。一旦你的音频流,你可以再带code和发送下来的SIP呼叫方。

Check out this link for some details on how it can be done on some devices. The API they use is the MediaRecorder api. Once you have the audio stream you can then encode it and send it down the SIP call side.

播放音频蜂窝呼叫

这是最有可能是最棘手的位因为没有谷歌API来获取在直接传出音频流。我只能想到两个可能的方法来做到这一点。

This is most likely the most tricky bit as there is no Google API to get at the outgoing audio stream directly. I can only think of two possible ways to do this.


  1. 改写了Android拨号器应用程序,这恰好是在Android中的电话栈。通过直接(只)访问串行端口链接到蜂窝无线电堆栈你的可能的能够得到的输出音频流。这就要求你的根设备能够做到这一点寿。

  2. 打开扬声器电话模式,然后通过扬声器,这样的麦克风应能与正在播放皮卡播放音频。您可能有问题,量(包括播放和麦克风)以及麦克风将会在该地区的其他声音拾取器好。

  1. Rewrite the Android dialer application, which happens to be the "telephony stack" in Android. With direct (only) access to the serial port link to the cellular radio stack you may be able to get to the outgoing audio stream. This would require you to root the device to be able to do this tho.
  2. Turn on speaker phone mode and then play audio through the speaker, that way the microphone should be able to pickup with is being played. You may have volume problems (both playing and microphone) and also the microphone will pickup on other sounds in the area as well.

我个人不认为这些建议是值得追求的,你是关闭后的评议意见及去有点像VOIP PABX像阿斯特里克斯用的PSTN / GSM网关更好。

I personally don't think any of these suggests are worth pursuing and you are better off following the commenters advise and go with something like a VOIP PABX like Asterix with a PTSN/GSM gateway.

这篇关于是否有可能将VoIP呼叫GSM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆