Local VoIP call with SIP

2019-02-15 14:27发布

问题:

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?

回答1:

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.



标签: android sip