<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks a lot ! :D <br>A followed your advices and now everything work pretty well and I have the expected behavior from kamailio !<br><br>I use rtpengine instead of rtpproxy and I have not segfault anymore (I think there were some because of my bad conf that made rtpproxy enter in bad states).<br><br>Here is my new conf in case someone would be interested by it:<br><br>------------------------------------------------------<br><br>#!KAMAILIO<br><br>####### Defined Values #########<br><br>#!define ASTERISK 192.168.51.43<br><br>####### Global Parameters #########<br><br>#!ifdef WITH_DEBUG<br>debug=4<br>log_stderror=no<br>#!else<br>debug=2<br>log_stderror=no<br>#!endif<br><br>memdbg=5<br>memlog=5<br><br>log_facility=LOG_LOCAL0<br><br>fork=yes<br>children=2<br><br>auto_aliases=no<br><br># to avoid simple attacks, use unconventional port<br>port=5060<br><br>####### Modules Section ########<br><br>mpath="/usr/local/lib/kamailio/modules"<br><br>loadmodule "tm.so"<br>loadmodule "db_text.so"<br>loadmodule "mi_fifo.so"<br>loadmodule "kex.so"<br>loadmodule "sl.so"<br>loadmodule "rr.so"<br>loadmodule "pv.so"<br>loadmodule "maxfwd.so"<br>loadmodule "textops.so"<br>loadmodule "siputils.so"<br>loadmodule "xlog.so"<br>loadmodule "sanity.so"<br>loadmodule "ctl.so"<br>loadmodule "cfg_rpc.so"<br>loadmodule "mi_rpc.so"<br>loadmodule "path.so"<br>loadmodule "rtpengine.so"<br><br>#!ifdef WITH_DEBUG<br>loadmodule "debugger.so"<br>#!endif<br><br># ----------------- setting module-specific parameters ---------------<br><br><br>modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")<br><br><br># add value to ;lr param to cope with most of the UAs<br>modparam("rr", "enable_full_lr", 1)<br># do not append from tag to the RR (no need for this script)<br>modparam("rr", "append_fromtag", 0)<br><br>modparam("path", "use_received", 1)<br>modparam("rtpengine", "rtpengine_sock", "udp:127.0.0.1:12221")<br><br>#!ifdef WITH_DEBUG<br># ----- debugger params -----<br>modparam("debugger", "cfgtrace", 1)<br>#!endif<br><br>####### Routing Logic ########<br><br><br>route {<br>    if (!sanity_check()) {<br>        exit;<br>    }<br><br>    if ( !mf_process_maxfwd_header("10") )<br>    {<br>        sl_send_reply("483","To Many Hops");<br>        xlog("L_NOTICE", "$si $rm $ru -- too many hops\n");<br>        exit;<br>    }<br><br>    force_rport();<br>    if (src_ip != ASTERISK)<br>    {<br>        $du = "sip:192.168.51.43:5060";<br>        add_path_received();<br>        route(RTPPROXY);<br>        record_route();<br>    }<br>    else<br>    {<br>        loose_route();<br>        route(RTPPROXY);<br>        record_route();<br>     }<br>    <br>    t_relay();<br>}<br><br><br>route[RTPPROXY] {<br>        t_on_reply("1");<br>        rtpengine_manage();<br>}<br><br>onreply_route[1] {<br>    rtpengine_manage();<br>}<br><br>-------------------------------------------------<br><br>Guillaume<br><br><br><div>> Date: Thu, 17 Dec 2015 01:30:55 -0700<br>> From: vasiliy.ganchev@wildix.com<br>> To: sr-users@lists.sip-router.org<br>> Subject: Re: [SR-Users] Kamailio as a SBC<br>> <br>> hi!<br>> <br>> for reply, to pass rtpproxy_manage, look in this function (in your config it<br>> is not used, and onreply_route is not passed for replies)<br>> http://kamailio.org/docs/modules/4.2.x/modules/tm#tm.f.t_on_reply<br>> <br>> about segfaults - provide more info<br>> <br>> also can suggest, try using rtpengine instead of rtpproxy<br>> <br>> cheers<br>> <br>> <br>> <br>> --<br>> View this message in context: http://sip-router.1086192.n5.nabble.com/Kamailio-as-a-SBC-tp144010p144022.html<br>> Sent from the Users mailing list archive at Nabble.com.<br>> <br>> _______________________________________________<br>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>> sr-users@lists.sip-router.org<br>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-user<br></div>                                          </div></body>
</html>