如何使用 PJSIP 呼叫群组 [英] How to call group using PJSIP

查看:138
本文介绍了如何使用 PJSIP 呼叫群组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 iOS 中使用 PJSIP API 在三个、四个或更多帐户之间进行通话?要在两个帐户之间拨打电话,我使用 pjsua_call_make_call 函数.

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);

推荐答案

我还没有在 iOS 上运行 PJSIP 的经验(可能是在 iOS 版本的 PJSIP 中对调用次数有一些限制?).

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

根据我在桌面上使用 PJSIP 的经验,您应该将所有不同呼叫的各方都呼叫到 pjsua_call_make_call(例如,对组中的 4 个帐户执行 pjsua_call_make_call 4 次)).通话建立后,您应该使用 pjsua_conf_connect 函数.

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.

这篇关于如何使用 PJSIP 呼叫群组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆