<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Ohhh, blindly missed the assignment before. You should run both
kamailio and rtpengine with higher debug level and see if you get
any hints from the log messages.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 29.04.21 11:51, Володимир Іванець
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOQgkjadgD=YwKSVjdPUA4Pe0R8+G6k7LwdvKZ42sbNprdGZkw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello Daniel,
<div><br>
</div>
<div>That is correct. My <i>$var(call_id)</i> variable contains
concatenation of the "call-id=" string and a Call-Id value.</div>
<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>:
<a class="moz-txt-link-abbreviated" href="mailto:call-id=3de74068278ede4417086eb82bdf5a06@127.0.0.1:5080.0">call-id=3de74068278ede4417086eb82bdf5a06@127.0.0.1:5080.0</a></i></div>
</blockquote>
<div><br>
</div>
<div>Thank you!</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">чт, 29 квіт. 2021 о 09:58
Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
пише:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hello,</p>
<p>related to the initial config snippet example, the
call-id is expected to be provide as a named flag, like:</p>
<p>start_recording("call-id=$var(call_id)");<br>
</p>
<p>See the readme of the rtpengine module for more details.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>On 29.04.21 08:23, Володимир Іванець wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">Hello Richard,
<div dir="auto"><br>
</div>
<div dir="auto">Thank you very much for the suggestion!
I will give it a try.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">ср, 28 квіт. 2021,
20:00 користувач Richard Fuchs <<a
href="mailto:rfuchs@sipwise.com" target="_blank"
moz-do-not-send="true">rfuchs@sipwise.com</a>>
пише:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<div>On 28/04/2021 10.53, [ EXT ] Володимир Іванець
wrote:<br>
</div>
<blockquote type="cite">
<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:0px 0px 0px
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>
</blockquote>
</div>
</blockquote>
<p>If you have to reason to go through Kamailio for
this, you can simply trigger the command from any
other external application. There's a sample
script included in the repo that can be used for
this purpose directly (making use of the Perl
module that is also included): <a
href="https://github.com/sipwise/rtpengine/blob/master/utils/rtpengine-ng-client"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://github.com/sipwise/rtpengine/blob/master/utils/rtpengine-ng-client</a></p>
<p>There's also a nodejs client that I'm aware of: <a
href="https://github.com/davehorton/rtpengine-client" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://github.com/davehorton/rtpengine-client</a></p>
<p>Or you can hand-roll the request and talk to
rtpengine via HTTP or Websocket for example.</p>
<p>Cheers<br>
</p>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial
Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org"
rel="noreferrer" target="_blank"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do
not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
* <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank" moz-do-not-send="true">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</div>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>