与SIP本地VoIP呼叫 [英] Local VoIP call with SIP

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

问题描述

我要让SIP点对点android的VoIP呼叫。此调用应该没有任何需要访问互联网取得了本地网络。其实我不想使用任何外部服务器注册的配置文件。但我不知道在配置文件生成器写SERVERDOMAIN什么。 这是构造

I wanna make SIP peer to peer VoIP call in android. This call should be made in local network without any need to access to internet. In fact I don't want to use any external server to register the profiles. But I don't know what to write in serverDomain in profile builder. This is the constructor

public SipProfile.Builder (String username, String serverDomain)

假设一个IP为192.168.1.2 而另一个是192.168.1.3

Suppose that one ip is 192.168.1.2 and the other is 192.168.1.3

因此​​,在初始化函数应该怎么传递的SERVERDOMAIN到构造?

So in initializing function what should I pass as serverDomain to the constructor?

推荐答案

我猜的URI的From:头出来为username @ SERVERDOMAIN,所以当地的IP地址将是美好的。没有足够的其它信息有任何注册回事呢。

I would guess the URI in the From: header comes out as username@ServerDomain, so your local IP address would be OK. There is not enough other information there for any registration going on anyway.

这篇关于与SIP本地VoIP呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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