How can I make call between direct IP to IP without SIP Server

匿名 (未验证) 提交于 2019-12-03 08:46:08

问题:

Is there any way to make call by just dialing a local IP address? Simply an IP to IP call. How can I do this? What changes should I make in pjsip code? I don't want to register in any server or VOIP provider. The call will happen only in local WiFi, just like SJPhone applications do in Mac (http://www.sjlabs.com/sjp.html).

回答1:

You can happily make LAN-only calls with SIP - it is primarily a peer-to-peer protocol, after all.

It's a standard part of SIP, in other words.

It looks like pjsip already supports calling a SIP URI directly (as it should!) so you shouldn't need to adjust anything. Just place calls to sip:10.0.0.1 or sip:foo.home or whatever you want to call.

(Nitpick: there's no such thing as "without SIP Server", because all SIP user agents act as both clients and servers. I presume you meant something like "without using SIP proxies or similar infrastructure".)



回答2:

You dont need to register your pjsua clients. You can start 2 pjsua programs on the same machine and create separate pjsua accounts, one for each pjsua. Then make and receive p2p calls directly from one pjsua to the other using each account.



回答3:

You SIP Client must be able to handle direct IP calls and you can find more about it on this link.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!