2017-03-23 4 views
0

Ich bin ein neuer Benutzer Kamailio zu finden. Ich versuche, die fork.cfg zu verwenden, um SIP-Registrierung an 2 Ziel zu senden. Ich bekomme den folgenden Fehler, aber ich habe loadmodule tm.so hinzugefügt, warum bekomme ich immer noch diesen Fehler?Fehler beim Befehl 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. 

Mein Skript sieht wie folgt aus (default eins):

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

Welches Modul muss ich genau arbeiten bekommen append_branch?

Schätzen Sie jede Hilfe!

+0

nie gefunden mind..i Corex-Modul ist das ein :) – anu

Antwort

0

Die append_branch() Funktion im Kern sein, aber es war zu Corex-Modul seit einigen Versionen vor bewegt:

Jedes Mal, wenn Sie nicht wissen, wo ein Funktion (oder andere Konfigurationselemente) residiert, Blick auf die alphabetischen Indizes in der kamailio.org wiki:

Verwandte Themen