<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi, see inlines.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 09.09.2015 18:09, Sasmita Panda
wrote:<br>
</div>
<blockquote
cite="mid:CALf-Q44GqR_CYCYh070Q5-QsL1bcXZTuRp-_W1oPv1dwMSdc0A@mail.gmail.com"
type="cite">
<p dir="ltr">Hi ,</p>
<p dir="ltr"> Thank you so much for the early response . </p>
<p dir="ltr"> First of all I don't want to store the
accounting information in opensips data base . because it's
getting overloaded with lots of data . </p>
<p dir="ltr"> As you suggested , is this possible I can
convert SQL db to no SQL db in directly ,without storing the
information in account table of opensips ? </p>
</blockquote>
[bogdan]<br>
with the db_cachedb module, the SQL operations are translated on the
fly to noSQL operations without any middle storage.<br>
<blockquote
cite="mid:CALf-Q44GqR_CYCYh070Q5-QsL1bcXZTuRp-_W1oPv1dwMSdc0A@mail.gmail.com"
type="cite">
<p dir="ltr"> Aa of now , my opensips is compiled with acc
module , SQL module , cache_redis module and all other module
which are necessary. </p>
<p dir="ltr"> I will try your option too by computing it with
db_cachedb . <br>
</p>
</blockquote>
[bogdan]<br>
Set the acc module to use DB backend, set a db url to point to the
db_cachedb backend, load the cache_redis module. See example:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/db_cachedb.html#id249605">http://www.opensips.org/html/docs/modules/1.11.x/db_cachedb.html#id249605</a><br>
<blockquote
cite="mid:CALf-Q44GqR_CYCYh070Q5-QsL1bcXZTuRp-_W1oPv1dwMSdc0A@mail.gmail.com"
type="cite">
<p dir="ltr">
<br>
Before that I wanted to do something else . I wanted to
parse some variable of accounting information and wanted to
store that in redis . <br>
For example , $ci : call_I'd , $rd: remote destination . <br>
Similarly , can't I get the accounting data in above
variable format ? May be I need to do some changes in acc module
code . But excatly where should I change I don't know . </p>
</blockquote>
[bogdan]<br>
See the extra accounting option in the acc module:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/acc.html#ACC-extra-id">http://www.opensips.org/html/docs/modules/1.11.x/acc.html#ACC-extra-id</a><br>
<br>
<blockquote
cite="mid:CALf-Q44GqR_CYCYh070Q5-QsL1bcXZTuRp-_W1oPv1dwMSdc0A@mail.gmail.com"
type="cite">
<p dir="ltr"> I appropriate your response. But consider my
query one more time and reply if there is any other convenient
option .</p>
<p dir="ltr"> Regards <br>
Sasmita</p>
<div class="gmail_quote">On Sep 9, 2015 8:13 PM, "Bogdan-Andrei
Iancu" <<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Sasmita,<br>
<br>
The acc module supports the log, sql and AAA interfaces
when comes to writing the CDRs.<br>
<br>
To get to a redis DB (a noSQL DB), you should use acc
module with the sql (db) support plus the db_cachedb
module to convert from sql to nosql.<br>
<br>
Best regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>On 09.09.2015 14:01, Sasmita Panda wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div><br>
</div>
<div> I wanted to store the accounting data of a
call in redis cache .</div>
<div>I had compiled the opensips module with cache_redis
and acc module successfully.</div>
<div><br>
</div>
<div> Now , as for my understanding , acc module
print the logs of accounting information directly .</div>
<div><br>
</div>
<div> for acc module i have done be bellow
configuration .</div>
<div> loadmodule "acc.so"</div>
<div> modparam("acc", "log_flag", 2)</div>
<div> Then I have done , setflag(2) , where i wanted
to do accounting .</div>
<div><br>
</div>
<div> Can anyone help me how to store that accounting
information in a variable, so that I can use that
variable to store the data in redis server ?</div>
<div><br>
</div>
<div>Please reply or let me know if any further details
needed .</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>