<div dir="ltr">Hello, I want to do dynamic configuration for fetching data from mongodb database and putting it into opensips.<div>I am using openSIPS version 2.4 .<br><div><br></div><div>My script : </div><div>loadmodule "cachedb_mongodb.so"<br></div><div>modparam ("cachedb_mongodb", "cachedb_url","mongodb:instance://localhost:27017/opensipsDB.login")</div><div>route{</div><div>...</div><div>...</div><div>cache_fetch("mongodb:instance","PBX_IP",$var(PBXip));</div><div>xlog("L_INFO","-------->>> [$var(PBXip)]") ;<br></div><div>...</div><div>}<br></div></div><div><br></div><div>where login is a collection and PBX_IP is an index of mongodb. </div><div><br></div><div>Also I am not getting any errors. and i get $var(PBXip)->>[NULL].</div><div>Please give me suggestions </div></div>
<br>
<div><font face="Arial" size="2" style="background-color:white" color="#808080"><b>Disclaimer</b></font></div><div><div><span style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small">In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence, contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded.</span></div></div><div><span style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><br></span></div><div><font face="Arial" size="2" style="background-color:white" color="#808080"><b>Confidentiality</b></font></div><div><font face="Arial" size="2" style="background-color:white" color="#808080">This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited. Please inform originator if you have received it in error.</font></div><div><font face="Arial" size="2" style="background-color:white" color="#808080"><br></font></div><div><span style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><b>Caution for viruses, malware etc.</b></span></div><div><font face="Arial" size="2" style="background-color:white" color="#808080">This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or any other computer problems. </font></div>