问题
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