<div dir="ltr">Hello!<div><br></div><div>I'm testing call recording with Rtpengine. It works fine when the "record-call=on" flag is added to the <i>rtpengine_offer</i> or <i>start_recording</i> is used in the <b>request_route</b>.</div><div><br></div><div>But I was wondering if the call recording can be managed by a separate application. So I add the following lines to the <b>event_route[xhttp:request]</b> and triggered it with an HTTP request after the call was established. The call-id value was taken from the Rtpengine log and sent with the request.</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>  if ($hu =~ "^/CALL_RECORD_START/") {</i></div><div><i>    $var(call_id) = </i>"call-id=" + <i>$(hu{s.select,2,/});</i></div><div>    xlog("L_DBG", "$var(call_id)");<br></div><div><i>    start_recording($var(call_id));</i></div><div><i>    </i>exit;</div><div><i>  }</i></div><div><i><br></i></div></blockquote>In this case, Kamailio will log errors and will not send the Rtpengine command to start call recording. <blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>Apr 27 18:25:00 test /usr/sbin/kamailio[5347]: DEBUG: <script>: call-id=3de74068278ede4417086eb82bdf5a06@127.0.0.1:5080.0</i></div><div><i>Apr 27 18:25:00 

test /usr/sbin/kamailio[5347]: DEBUG: <core> [core/parser/msg_parser.c:89]: get_hdr_field(): found end of header</i></div><div><i>Apr 27 18:25:00 

test /usr/sbin/kamailio[5347]: ERROR: rtpengine [rtpengine_funcs.c:294]: get_callid(): call-id not found</i></div><div><i>Apr 27 18:25:00 

test /usr/sbin/kamailio[5347]: ERROR: rtpengine [rtpengine.c:2383]: rtpp_function_call(): can't get Call-Id field</i></div><div><i><br></i></div></blockquote>Have anyone tried to call functions <i>start_recording</i> and <i>stop_recording</i> inside <b>event_route[xhttp:request]</b>?<div><br></div><div>Thanks a lot!</div></div>