为什么在Dialout并将new uers合并到当前运行的Confbridge Asterik-11.5.1.中时创建了
why new Confbridge created when Dialout and merge New uers into Current running Confbridge Asterisk-11.5.1
任务:
从当前运行的ConferenceBridge(例如:1010101)拨出并添加Sip用户(例如:我的网络上的Sip/7001)
问题:当我在功能的帮助下使用拨号应用程序拨号时。pbx_exec用户不合并当前正在运行的ConferenceBridge(例如:1010101),而是创建其他新的ConferencyBridge。(例如:名称:conference_bridge->Name)
帮助:如何将conference_bridge->name传递到拨号应用程序字符串中。?
so that new user merge place into current running Conferencebridge
[macro-CONFDAILOUT]
exten => s,1,Verbose("================== USER has PICKUPED OR ANSWERED so placed him/her into Conf no : ${ARG1} =================== ")
;same => n,Set(MEETME_ROOMNUM=1010101)
;same => n,ConfBridge(${MEETME_ROOMNUM},,,conf-admin-sub-dialout)
same => n,ConfBridge(${ARG1},,,conf-admin-sub-dialout)
same => n,macroexit()
struct ast_app *dialapp = pbx_findapp("Dial");
char dialstr[100];
char confnum[8];
ast_copy_string(confnum,conference_bridge->name,sizeof(confnum));
ast_verb(3,"n *************Confnum :%s ************n",confnum);
ast_verb(3,"n *************&Confnum :%s ************n",&confnum);
strcpy (dialstr,"SIP");
//strcpy (dialstr,"SIP");
strcat (dialstr,"/");
strcat (dialstr,Sphone);
strcat (dialstr,",");
strcat (dialstr,"30");
strcat (dialstr,",");
//for o/p:1
strcat (dialstr,"hgM(CONFDAILOUT^&confnum)");
//for o/p:2
//strcat (dialstr,"hgM(CONFDAILOUT^&conference_bridge->name)");
ast_verb(3,"n=====Dialing string: '%s' =====n", dialstr);
ast_log(LOG_NOTICE,"n=====Dialing string: '%s' =====n", dialstr);
res=pbx_exec(bridge_channel->chan,dialapp,dialstr);
//res=pbx_exec(bridge_channel->chan,Originate,dialstr);
ast_verb(3,"n ========Return from pbx_exec '%i' n",res);
ast_log(LOG_NOTICE,"n ======Return from pbx_exec '%i'",res);
pbx_builtin_setvar_helper(bridge_channel->chan, "sourcemeetme",conference_bridge->name);
ast_verb(3,"n ====Return from Disposition: '%s'n",pbx_builtin_getvar_helper(bridge_channel->chan, "DIALSTATUS"));
conference_bridge->name is [1010101]
and &conference_bridge->name:[1010101]
=====Dialing string: 'SIP/7001,30,hgM(CONFDAILOUT^conference_bridge->name)' =====
o/p:1
Conference Bridge Name Users Marked Locked?
================================ ====== ====== ========
conference_bridge->name 1 0 unlocked
1010101 1 1 unlocked
o/p:2
Conference Bridge Name Users Marked Locked?
================================ ====== ====== ========
1010101 1 1 unlocked
&confnum 1 0 unlocked
strcat (dialstr,"CONFDAILOUT");
strcat (dialstr,"^");
strcat (dialstr,conference_bridge->name);
strcat (dialstr,")")
现在新用户Megre进入当前运行的Conference。
相关文章:
- 无法找到/读取配置文件.conf-FileIOException
- MSVC是否支持C++11样式的属性而不是__declspec
- 创建LinkedList退出,返回代码为-11(SIGSEGV)
- 我可以将一个用clang c++11编译的对象与另一个用c++17编译的对象链接起来吗
- 继承:构造函数,初始化C++11中基类的类C数组成员
- 如何将模板转换为C++11之前的模板
- c++11评估顺序(未定义的行为)
- C++中的VLA,扩展名为std=C++11
- 代码在我的计算机上运行良好,但是在将其提交给coursera时遇到未知的信号11问题
- "类模板示例<int>;"语句对 C++11 是什么意思?
- this_thread::sleep_for和计时时钟之间的关系是否由C++11标准指定
- 如何使用lock_guard在c++11中实现scoped_lock功能
- C++11 中不同类型的对象的 std::array 的替代方案
- 为什么 -mmacosx-version-min=10.10 不阻止使用标记为从 10.11 开始的函数?
- 为什么我的C++代码中出现'Segmentation Fault: 11'行?
- 强枚举类型定义:Clang Bug 还是 C++11 标准不确定性?
- 别名模板的专业化 C++11 中没有开销的最佳替代方案
- STLPort using C++11
- Qt 5.11.2 (Clang 8.0 (Apple), 64 位), 找不到 QJSEngine 文件
- 为什么在Dialout并将new uers合并到当前运行的Confbridge Asterik-11.5.1.中时创建了