User Tools

Site Tools


tutorials:kamailio-and-mongodb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
tutorials:kamailio-and-mongodb [2015/09/08 21:27]
miconda created
tutorials:kamailio-and-mongodb [2015/09/08 21:31]
miconda [Version Table Records]
Line 55: Line 55:
 </code> </code>
  
 +To learn what is the version number for a specific table, look inside **lib/srdb1/schema/**, there is an xml file with the name of the table and inside it you should see the **version** attribute.
 ===== Other Tables ===== ===== Other Tables =====
  
 MongoDB doesn't have a schema definition for documents stored in a collection. MongoDB doesn't have a schema definition for documents stored in a collection.
  
 +===== DB URL =====
 +
 +The corresponding database URL in kamailio.cfg:
 +
 +  * if MongoDB is on local host and there is no username and password to connect to it:
 +
 +<code>
 +#!define DBURL "mongodb://localhost/kamailio"
 +</code>
 +
 +  * if MongoDB is on local host and there is an username and password to connect to it:
 +
 +<code>
 +#!define DBURL "mongodb://username:password@localhost/kamailio"
 +</code>
tutorials/kamailio-and-mongodb.txt ยท Last modified: 2019/01/07 09:24 by henningw