<div dir="ltr"><span style="color:rgb(80,0,80);font-size:12.8px">modparam("cachedb_mongodb", "cachedb_url","mongodb:</span><span style="color:rgb(80,0,80);font-size:12.8px">replicaset1://</span><a href="http://root:password@1.2.3.4:27017/" target="_blank" style="font-size:12.8px">1.2.3.4:27017</a><span style="color:rgb(80,0,80);font-size:12.8px">,</span><a href="http://2.3.4.5:27017/jack.db.CallCenter_Info" target="_blank" style="font-size:12.8px">2.3.4.5:27017/jack.db.CallCenter_Info</a><span style="color:rgb(80,0,80);font-size:12.8px">")</span><br><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><font color="#500050"><span style="font-size:12.8px">This says , I am using two IPs for the replica set . If its like jack is the data base . In this case If I am setting " jack.callCenter_Info " , Its not working , and if I am setting "db.CallCenter_Info" its also not working . Opensips is not even get started in these two cases .</span></font></div><div><span style="font-size:12.8px;color:rgb(80,0,80)"><br></span></div><div><span style="font-size:12.8px;color:rgb(80,0,80)"> This is the only case what I have written is working . </span></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><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>
<br><div class="gmail_quote">On Fri, Jun 3, 2016 at 3:50 PM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi, Sasmita!</tt></p>
<p><tt>Are you using multiple IPs in the replica set, or only one?
Because if you are using only one, the replica set feature is
not enabled, and the "jack.db.CallCenter_Info" is treated as
database "jack" and collection "db.CallCenter_Info", as in your
case. Is this your problem? Are you setting multiple IPs in the
cachedb_url?</tt></p><span class="">
<p><tt>Best regards,<br>
</tt></p>
<pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
</span><div><div class="h5"><div>On 06/03/2016 12:01 PM, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I have tried this . But its not working .
<div><br>
</div>
<div>Now I got something interesting . I changed the cache_store
command and now its working .</div>
<div><span style="font-size:12.8px">This is "
replicasetname.db.collection " this is the format what I get
from opensips documentation .</span><br>
</div>
<div><br>
</div>
<div><span style="font-size:12.8px">modparam("cachedb_mongodb",
"cachedb_url","mongodb:</span><span style="font-size:12.8px">replicaset1://</span><a href="http://root:password@1.2.3.4:27017/" style="font-size:12.8px" target="_blank">1.2.3.4:27017</a><span style="font-size:12.8px">,</span><a href="http://2.3.4.5:27017/jack.db.CallCenter_Info" style="font-size:12.8px" target="_blank">2.3.4.5:27017/jack.db.CallCenter_Info</a><span style="font-size:12.8px">")</span><br>
</div>
<div><span style="font-size:12.8px">cache_store("mongodb:replicaset1","</span><span style="font-size:12.8px">$ci","$ci,$var(c)");</span><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"> </span></div>
<div><span style="font-size:12.8px"> What opensips is doing
is . Its creating a database jack and inside that a
collection db.CallCenter_Info and storing data on that
collections .</span></div>
<div><br>
</div>
<div><span style="font-size:12.8px"> But I have created a
database db and i have also created a collection in that
CallCenter_Info and I was expecting the data will goes to
this collection .</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"> I am doing anything
wrong ? I am getting the data so I think my problem is
almost solved . But my acc and sip_trace collection and
CallCenter_Info collection are in different data base . I
wanted them to present inside a single data base so that it
will be easier for me which searching something .</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"> Let me know if I am
doing anything wrong . </span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"> One problem i am
facing is , I am not able to connect to the replica set with
authentication . Without authentication its working like
above .</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"> </span></div>
<div><span style="font-size:12.8px"> </span></div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div data-smartmail="gmail_signature">
<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>
<br>
<div class="gmail_quote">On Fri, Jun 3, 2016 at 12:56 PM, Răzvan
Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><tt>Hi, Sasmita!<br>
</tt></p>
<p><tt>Are these two the only errors you see in the logs?<br>
</tt></p>
<p><tt>Can you confirm that replicaset "jack" exists and
that the "CallCenter_Info" table exists? What about
the "db" collection? Have you tried to set the
cachedb_url like this:</tt></p>
<div><tt><span style="font-size:12.8px">modparam("db_cachedb","</span></tt><tt><span style="font-size:12.8px">cachedb_url","mongodb:</span></tt><tt><span style="font-size:12.8px">replicaset1://</span></tt><tt><font color="#0000ff"><a href="http://root:password@1.2.3.4:27017/" style="font-size:12.8px" target="_blank">1.2.3.4:27017</a><span style="font-size:12.8px"></span><a href="http://2.3.4.5:27017/jack.db.test" style="font-size:12.8px" target="_blank">/jack.db</a></font></tt><tt><span style="font-size:12.8px">")<br>
<br>
Best regards,<br>
</span></tt></div>
<pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
<div>
<div>
<div>On 06/02/2016 03:23 PM, Sasmita Panda wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi All ,
<div><br>
</div>
<div> I am using opensips-1.11 and I am
using cachedb_mongodb module . I am able to
connect to mongodb replica set without
authentication .</div>
<div><br>
</div>
<div><span style="font-size:12.8px">modparam("cachedb_mongodb",
"cachedb_url","mongodb:</span><span style="font-size:12.8px">replicaset1://</span><a href="http://root:password@1.2.3.4:27017/" style="font-size:12.8px" target="_blank">1.2.3.4:27017</a><span style="font-size:12.8px">,</span><a href="http://2.3.4.5:27017/jack.db.CallCenter_Info" style="font-size:12.8px" target="_blank">2.3.4.5:27017/jack.db.CallCenter_Info</a><span style="font-size:12.8px">")</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">modparam("db_cachedb","</span><span style="font-size:12.8px">cachedb_url","mongodb:</span><span style="font-size:12.8px">replicaset1://</span><font color="#0000ff"><a href="http://root:password@1.2.3.4:27017/" style="font-size:12.8px" target="_blank">1.2.3.4:27017</a><span style="font-size:12.8px">,</span><a href="http://2.3.4.5:27017/jack.db.test" style="font-size:12.8px" target="_blank">2.3.4.5:27017/jack.db.</a>db</font><span style="font-size:12.8px">")</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">modparam("acc",
"db_url", "cachedb://mongodb:</span><span style="font-size:12.8px">replicaset1")</span></div>
<div><span style="font-size:12.8px"> I am able to
connect to mongodb for account module . By
this line .</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"> But I am not
able to store any data through raw query like
bellow .</span></div>
<div><span style="font-size:12.8px">cache_store("mongodb:group1","$ci","$ci,$var(c)");</span><br>
</div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Its giving
bellow error .</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div>
<div><span style="font-size:12.8px">
DBG:core:cachedb_store: from script
[mongodb] - with grp [group1]</span></div>
<div><span style="font-size:12.8px">
ERROR:core:cachedb_store: failed to get
connection for grp name [group1]</span></div>
</div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">What does it
mean ? If I am changing the group1 to
replicaset1 then also its giving error . What
should I do ? Please help me . Am I doing
something wrong in the opensips config file or
I need to do something in the mongodb replica
set ?</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Thanks in
advance . any kind of suggestion is welcome .</span></div>
<div><span style="font-size:12.8px"><br clear="all">
</span>
<div>
<div data-smartmail="gmail_signature">
<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>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>