[SR-Users] Load htable from MongoDB

Sergiu Pojoga pojogas at gmail.com
Tue Mar 2 16:38:38 CET 2021


Hi there,

Question: is it possible to load a htable, defined by columns, from a
MongoDB collection, when a certain "column" is an object with multiple
elements?

For example:
modparam("htable", "htable",
"users=>size=10;dbtable=users;cols='FirstName,LastName,Location:Prefix';")

Fails when trying to load the value of Location.Prefix

{
    "FirstName": "John",
    "LastName": "Doe",
    "Language" : "en",
    "Location" : {
        "Country" : "USA",
        "City" : "New York",
        "Prefix" : "+1"
    }
}

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210302/140eee67/attachment.htm>


More information about the sr-users mailing list