<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>maybe my response was not that clear, but I meant to say to look
at ndb_redis module C code, see how it does the authentication,
then develop a similar capability inside cnxcc. So it requires to
do C code development.</p>
<p>So the answer it is yes to your last question.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 05.03.18 11:36, Donat Zenichev
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANLwQCk1mEE3R1odPdbeQvfayPkhxNxEPiSvwXVBsYmXmupKhw@mail.gmail.com">
<div dir="ltr">
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Hi
Daniel, first of all thanks for your attention.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Perhaps
I missed something. I read documentation about cnxcc and
ndb_redis again, but I haven't found information that can help
me with my goal.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">ndb_redis
is separate module that implements connections to redis
databases (and also is able to perform authentication), has
it's own functions like redis_cmd() to interact directly with
redis.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">But
cnxcc stores real-time amounts in redis hash keys using it's
own parameter - modparam("cnxcc", "redis",
"addr=127.0.0.1;port=6379;db=<wbr>1")</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">And
I can't see possibility to use ndb_redis to perform
authentication for cnxcc module, correct me if I'm wrong.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Do
you offer me to read ndb_redis code sources to use them to
edit cnxcc code sources?</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Thanks
in advance for your advice.</div>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-03-01 9:28 GMT+02:00 Donat
Zenichev <span dir="ltr"><<a
href="mailto:donat.zenichev@gmail.com" target="_blank"
moz-do-not-send="true">donat.zenichev@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>Hi Daniel, first of all thanks for your attention.</div>
<div><br>
</div>
<div>Perhaps I missed something. I read documentation
about cnxcc and ndb_redis again, but I haven't found
information that can help me with my goal.</div>
<div>ndb_redis is separate module that implements
connections to redis databases (and also is able to
perform authentication), has it's own functions like
redis_cmd() to interact directly with redis.</div>
<div><br>
</div>
<div>But cnxcc stores real-time amounts in redis hash keys
using it's own parameter - modparam("cnxcc", "redis",
"addr=127.0.0.1;port=6379;db=<wbr>1")</div>
<div>And I can't see possibility to use ndb_redis to
perform authentication for cnxcc module, correct me if
I'm wrong.</div>
<div><br>
</div>
<div>Do you offer me to read ndb_redis code sources to use
them to edit cnxcc code sources?</div>
<div>Thanks in advance for your advice.</div>
<div>
<div class="h5">
<div><br>
</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-02-28 14:33 GMT+02:00
Daniel-Constantin Mierla <span dir="ltr"><<a
href="mailto:miconda@gmail.com"
target="_blank" moz-do-not-send="true">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>maybe authentication support was not
implemented in cnxcc. Eventually it can be
extracted from the ndb_redis, that module
has it implemented already.</p>
<p> *
<a
class="m_-5867615748979250083m_-4689119502056126091moz-txt-link-freetext"
href="https://www.kamailio.org/docs/modules/stable/modules/ndb_redis.html#ndb_redis.p.server"
target="_blank" moz-do-not-send="true">https://www.kamailio.org/docs/<wbr>modules/stable/modules/ndb_red<wbr>is.html#ndb_redis.p.server</a></p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="m_-5867615748979250083h5"> <br>
<div
class="m_-5867615748979250083m_-4689119502056126091moz-cite-prefix">On
27.02.18 14:39, Donat Zenichev wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_-5867615748979250083h5">
<div dir="ltr">
<div>Nevertheless, I want to find the
needed solution.</div>
<div>In my opinion - If module is able
to connect to redis databases, it'd
better to perform it with
authentication.</div>
<div><br>
</div>
<div>Because, there are cases when db
located on localhost is improper
solution or other users mustn't see
hkeys, amounts inside hkeys it etc.</div>
<div>So I think no one will be mind,
to have whole possibility -
real-time billing (cnxcc) working
with redis securely.</div>
<div><br>
</div>
<div>So please don't be apathetic to
my request.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-02-26
9:44 GMT+02:00 Donat Zenichev <span
dir="ltr"><<a
href="mailto:donat.zenichev@gmail.com"
target="_blank"
moz-do-not-send="true">donat.zenichev@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>Hi community.</div>
<div>This message is specially
dedicated to developers of
the kamailio project.</div>
<div><br>
</div>
<div>I need to find solution
how to make authentication
for connections of cnxcc
with redis.</div>
<div>For that moment, cnxcc
module is able to connect to
redis only without password
(Carlos Ruiz Díaz will add
this possibility later?).</div>
<div>So that, this makes
database vulnerable.</div>
<div><br>
</div>
<div>Well, furthermore I don't
want to use local redis
database, cuz I think
machine that contains
kamailio daemon, must
perform just this kind of
actions - SIP proxying
(kamailio server is not to
be a database server or
anything else).</div>
<div><br>
</div>
<div>For that moment we use
separate redis db for cases
like that, but this is not
best practice I think.</div>
<div>I already tried to find
solution (for e.g.
connections via another
module like db_redis:</div>
<div><a
href="https://github.com/kamailio/kamailio/pull/1432"
target="_blank"
moz-do-not-send="true">https://github.com/kamailio/ka<wbr>mailio/pull/1432</a>)
but I got advice - achieving
my goal by sr-users mailing
list.</div>
<div><br>
</div>
<div>Please pay attention for
my request. I think this
will be very helpfull for
others.</div>
</div>
<span
class="m_-5867615748979250083m_-4689119502056126091HOEnZb"><font
color="#888888">
<div><br>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div
class="m_-5867615748979250083m_-4689119502056126091m_6570915029787229492gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
style="background-color:rgb(255,255,255)" color="#0b5394">-- <br>
BR, Donat
Zenichev <br>
Wnet VoIP team<br>
Tel Ukraine:
+380(44)
5-900-800 <br>
Tel USA:
+164(67)
8-174-17 (ext
1320)<br>
<a
href="http://wnet.ua"
target="_blank" moz-do-not-send="true">https://w-net.us/</a></font></div>
</div>
</div>
</div>
</div>
</div>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div
class="m_-5867615748979250083m_-4689119502056126091gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
style="background-color:rgb(255,255,255)"
color="#0b5394">-- <br>
BR, Donat Zenichev <br>
Wnet VoIP team<br>
Tel Ukraine: +380(44)
5-900-800 <br>
Tel USA: +164(67)
8-174-17 (ext 1320)<br>
<a href="http://wnet.ua"
target="_blank"
moz-do-not-send="true">https://w-net.us/</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset
class="m_-5867615748979250083m_-4689119502056126091mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-5867615748979250083m_-4689119502056126091moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="m_-5867615748979250083m_-4689119502056126091moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="m_-5867615748979250083HOEnZb"><font color="#888888">
</font></span></pre>
<span class="m_-5867615748979250083HOEnZb"><font
color="#888888"> </font></span></blockquote>
<span class="m_-5867615748979250083HOEnZb"><font
color="#888888"> <br>
<pre class="m_-5867615748979250083m_-4689119502056126091moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-5867615748979250083m_-4689119502056126091moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_-5867615748979250083m_-4689119502056126091moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_-5867615748979250083m_-4689119502056126091moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_-5867615748979250083m_-4689119502056126091moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-5867615748979250083gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
style="background-color:rgb(255,255,255)"
color="#0b5394">-- <br>
BR, Donat Zenichev
<br>
Wnet VoIP team<br>
Tel Ukraine: +380(44) 5-900-800
<br>
Tel USA: +164(67) 8-174-17 (ext 1320)<br>
<a href="http://wnet.ua"
target="_blank"
moz-do-not-send="true">https://w-net.us/</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><font
style="background-color:rgb(255,255,255)"
color="#0b5394">-- <br>
BR, Donat Zenichev
<br>
Wnet VoIP team<br>
Tel Ukraine: +380(44) 5-900-800
<br>
Tel USA: +164(67) 8-174-17 (ext 1320)<br>
<a href="http://wnet.ua" target="_blank"
moz-do-not-send="true">https://w-net.us/</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<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 - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>