2017-03-23 10 views
0

私はkamailioの新しいユーザーです。私は2つの宛先にSIP登録を送信するためにfork.cfgを使用しようとしています。次のエラーが表示されますが、loadmodule tm.soを追加しました。なぜこのエラーが表示されるのですか?コマンドappend_branchを見つけることができませんでした

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. 

私のスクリプトは、この(デフォルト1)のようになります。

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:[email protected]"); 
     append_branch("sip:[email protected]"); 
     # 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作業を取得するために、どのモジュールが必要ですか?

ありがとうございました!

+0

corexモジュールがあります:) – anu

答えて

0

コアにあったappend_branch()関数を、それがバージョンのカップルの前からのCorexモジュールに移動されました:

あなたがどこかわからないときはいつでも機能(またはその他のconfig要素)に存在する、kamailio.orgのwikiで、アルファベットのインデックスを見て:

関連する問題