tutorials:kamailio-and-mongodb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:kamailio-and-mongodb [2015/09/08 19:32] – miconda | tutorials:kamailio-and-mongodb [2019/01/07 08:24] (current) – small addtion henningw | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Kamailio and MongoDB ====== | ====== Kamailio and MongoDB ====== | ||
+ | Details about how to use Kamailio with a MongoDB backend. | ||
===== Kamailio Database ===== | ===== Kamailio Database ===== | ||
Line 51: | Line 52: | ||
> db.getCollection(" | > db.getCollection(" | ||
- | db.getCollection(" | + | > db.getCollection(" |
</ | </ | ||
Line 59: | Line 60: | ||
==== Other Tables ==== | ==== Other Tables ==== | ||
- | MongoDB doesn' | + | MongoDB doesn' |
- | ===== DB URL in Kamailio Config ===== | + | Anyhow, if you want, you can create the collections in advance, using: |
+ | |||
+ | < | ||
+ | > db.createCollection(" | ||
+ | </ | ||
+ | ===== Kamailio Config ===== | ||
+ | |||
+ | ==== DB URL ==== | ||
+ | |||
+ | You need to load the " | ||
The corresponding database URL in kamailio.cfg: | The corresponding database URL in kamailio.cfg: | ||
Line 75: | Line 85: | ||
< | < | ||
#!define DBURL " | #!define DBURL " | ||
+ | </ | ||
+ | |||
+ | ==== Other Parameters ==== | ||
+ | |||
+ | If you store location records in MongoDB, set the following parameter for usrloc modules: | ||
+ | |||
+ | < | ||
+ | modparam(" | ||
</ | </ |
tutorials/kamailio-and-mongodb.1441740749.txt.gz · Last modified: 2015/09/08 19:32 by miconda