How to call group using PJSIP

百般思念 提交于 2021-02-20 00:43:58

问题


How can I make a call between three, four and more accounts using PJSIP API in iOS? To make a call between two account, I use pjsua_call_make_call function.

char *destUri = "sip:account@example.com";
pj_status_t status;
pj_str_t uri = pj_str(destUri);

status = pjsua_call_make_call(_acc_id, &uri, 0, NULL, NULL, NULL);
if (status != PJ_SUCCESS) error_exit("Error making call", status);

回答1:


I have no experience to run PJSIP on iOS yet (may be there is some restrictions on call count in iOS version of PJSIP?).

Based on my experience of using PJSIP on desktop, you should call all the parties with different calls to pjsua_call_make_call (execute pjsua_call_make_call 4 times for 4 accounts in group for example). After calls are estabilished, you should connect them in PJSIP's conference bridge all-with-all with pjsua_conf_connect function.



来源:https://stackoverflow.com/questions/27501442/how-to-call-group-using-pjsip

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