Local VoIP call with SIP

2019-02-15 13:49发布

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)

Suppose that one ip is 192.168.1.2 and the other is 192.168.1.3

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

标签: android sip
1条回答
【Aperson】
2楼-- · 2019-02-15 14:35

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.

查看更多
登录 后发表回答