首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到命令append_branch

找不到命令append_branch
EN

Stack Overflow用户
提问于 2017-03-23 13:49:10
回答 1查看 569关注 0票数 1

我是kamailio的新用户。我正在尝试使用fork.cfg将sip注册发送到%2目的地。我得到了以下错误,但我已经添加了装入模块tm.so,为什么我仍然得到这个错误?

代码语言:javascript
复制
Mar 22 15:53:48 emps116 kamailio[14065]: ERROR: <core> [cfg.y:3295]: yyparse(): cfg. parser: failed to find command append_branch (params 1)
Mar 22 15:53:48 emps116 kamailio[14065]: : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kamailio/fork.cfg, line 45, column 43: unknown command, mi
Mar 22 15:53:48 emps116 kamailio[14065]: ERROR: bad config file (1 errors)
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/
Mar 22 15:53:48 emps116 kamailio[14065]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Mar 22 15:53:48 emps116 systemd[1]: kamailio.service: Control process exited, code=exited status=255
Mar 22 15:53:48 emps116 systemd[1]: Failed to start Kamailio (OpenSER) - the Open Source SIP Server.

我的脚本如下所示(默认脚本):

代码语言:javascript
复制
mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules"


loadmodule "sl.so"
loadmodule "tm.so"
.
.
.
.
route{
        # for testing purposes, simply okay all REGISTERs
        if (method=="REGISTER") {
                log("REGISTER");
                sl_send_reply("200", "ok");
                exit;
        };
        # try these two destinations first in parallel; the second
        # destination is targeted to sink port -- that will make ser
        # wait until timer hits
        seturi("sip:nobody@kamailio.org");
        append_branch("sip:parallel@kamailio.org");
        # if we do not get a positive reply, continue at reply_route[1]
        #t_on_failure("1");
        # forward the request to all destinations in destination set now
        t_relay();
}

我到底需要哪个模块才能让append_branch正常工作?

感谢您的帮助!

EN

回答 1

Stack Overflow用户

发布于 2017-04-22 03:25:18

append_branch()函数曾经在核心中,但自从几个版本前以来,它被移到了corex模块:

当您不知道函数(或其他配置元素)驻留在何处时,请查看kamailio.org维基中的字母索引:

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42968189

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档