直接IP调用android [英] Direct IP call android

查看:180
本文介绍了直接IP调用android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Android应用程序,其中客户端可以在不使用SIP代理(服务器)的情况下相互呼叫。

Im creating an Android App in which the clients can call each other without using a SIP proxy (server).

我下载了CSipSimple,它有一个本地本地网络中的客户端可以直接相互呼叫的选项。

I downloaded the CSipSimple, it has a "local" option in which the clients in a local network can call each other directly.

如果我连接到移动网络怎么办?如果我知道目的地的公共IP,我可以直接给他打电话吗?

What if I am connected to the mobile network. If i know the public IP of the destination, can I call him direclty?

如果您可以建议其他满足上述要求的应用程序,请提及它们。

If you can suggest another applications that fulfill the mentioned requirements please do mention them.

谢谢

推荐答案

是的,您应该可以直接拨打电话所有SIP客户端。我正在使用 mizudroid 并与之合作。

Yes, you should be able to make direct call with almost all SIP clients. I am using mizudroid and works with that.

在这种情况下,您只需输入目的地的完整URI,而不仅仅是扩展名。

In this case, you just need to enter the full URI for the destination and not just the extension name.

所以不要打电话给约翰,你必须输入

So instead of calling to "john" you will have to enter

john@ipaddress:port

示例:

john@192.168.1.33:14321

某些SIP客户端可能需要在所有这些前缀为sip:前缀:

Some sip clients might require to prefix all these with "sip:":

sip:john@192.168.1.33:14321

如您所见,棘手的部分是找出正确的端口。 SIP客户端默认使用随机本地端口,但其中一些允许您显式设置端口。 (不要与SIP标准之后通常为5060的服务器SIP信令端口混淆。)

As you can see, the tricky part is to find out the correct port. SIP clients are using random local ports by default, but some of them allows you to set the port explicitly. (Don't be confused with the server sip signaling ports which is usually 5060 after the SIP standards.)

另请注意,sip注册器的角色正是这个:所以你不必找到对等方的确切地址,因为服务器可以自动为你处理这个。

Also please note that the role of a sip registrar is exactly this: so you don't have to play finding out the peer's exact address as the server can handle this for you automatically.

有些sip客户端可能需要输入sip服务器设置/登录中的地址,但是大多数地址允许您在没有输入任何地址的情况下使用软电话,或者他们可以选择指定无服务器/本地/无注册,或者您可能只输入虚假地址(然后软电话可能会显示注册失败)但你应该可以直接打电话,如上所述)

Some sip clients might require to enter a sip server address in settings/login, however most of them allows you to use the softphone without any address entered or they have an option to specify serverless/local/registerless or you might just enter a fake address (then the softphone might display "register failed" but you should be able to make direct calls as i have described above)

这篇关于直接IP调用android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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