minoruta / ast_mongo Goto Github PK
View Code? Open in Web Editor NEWRealtime configuration engine and CDR&CEL backend for Asterisk with MongoDB
License: GNU General Public License v2.0
Realtime configuration engine and CDR&CEL backend for Asterisk with MongoDB
License: GNU General Public License v2.0
Hi,
How can we use realtime extensions like endpoints or auths ?
Hello.
We have been using sippeers and sipusers mapped to odbc. Trying to map it to mongodb.
However, when I load module res_config_mongodb.so, I'm getting
ERROR[15040]: loader.c:281 module_load_error: Error loading module 'res_config_mongodb.so': /usr/lib/asterisk/modules/res_config_mongodb.so: undefined symbol: ast_mongo_apm_stop
Also, as we're not using pjsip, rather old sip, is this possible?
I have an established asterisk. How can I add your module?
Minrouta,
Thanks for the awesome tool you created,
I am facing issue with realtime queue_log. Its not storing any logs whenever call landed in queue,
Here is my extconfig
queue_log => mongodb,asterisk
res_config_mongodb.conf
[mongodb]
uri=mongodb://admin:[email protected]:27017
asterisk cli log:
[Dec 6 21:56:41] DEBUG[9462][C-00000000]: res_config_mongodb.c:815 require: required model is "{ "data1" : 2, "data2" : 2, "data3" : 2, "data4" : 2, "data5" : 2 }"
[Dec 6 21:56:41] DEBUG[9462][C-00000000]: res_config_mongodb.c:361 model_register: queue_log already registered
[Dec 6 21:56:41] DEBUG[9462][C-00000000]: res_config_mongodb.c:858 store: database=asterisk, table=queue_log
when i checked on the mongodb database, there is no data. Can you find anything wrong with this one.
Thank you again for this amazing tool
Can you please include the patch for the most stable version of asterisk?
13.21-cert3
or any instruction?
Hello. I was checking old issues but I'm not finding a way around my problem.
My configure is outputing:
checking for bson_init in -lbson-1.0... yes
checking libbson-1.0/bson.h usability... yes
checking libbson-1.0/bson.h presence... yes
checking for libbson-1.0/bson.h... yes
checking for mongoc_init in -lmongoc-1.0... yes
checking libmongoc-1.0/mongoc.h usability... no
checking libmongoc-1.0/mongoc.h presence... no
checking for libmongoc-1.0/mongoc.h... no
and # pkg-config --libs libmongoc-1.0
-lmongoc-1.0 -lssl -lcrypto -lrt -lbson-1.0
What am I missing?
Hello. Thank you for creating this project.
I have an issue with compiling the project. As it is shown in the attached image, "make menuselect" command has some difficulties with dependencies. I have installed the mongo-c-driver. I am not professional in linux. It should be installed in a specific directory or does not matter? Should I install a specific version or the lastest?
in earlier issues, I saw you had reference to 2 links which I get 404 error when I click on them.
I am using Centos 7 and want to compile asterisk 11.25.3
Thanks for your help in advance
Hello, first of all great work on this plugin, minoruta,. It's very difficult to find something between Asterisk and Mongodb.
Secondly, I'm having trouble trying to install this plugin, I tryied many different ways, running .patch, compiling the .c and manually loading them to asterisk's modules, but had no success.
With the updates in the code I think some files went missing and it's difficult to understand how we must setup some .conf files, could you help? (I'm in a Debian 9 environment)
Im trying to put pjsips to mongo via asterisk.I build an asterisk with mongodb and it seems fine. I get to mongo cli and when i launch asterisk cli it says connected but when i try to put pjsip to asterisk via http request i get http 401 error. I am using 'http://0.0.0.0:8088/ari/asterisk/config/dynamic/res_pjsip/ ....' url in http request to asterisk. Url in asterisk confs is mongodb://127.0.0.1:27017 and i configured others as you presented. Could you please help me with this issue? Im willing to give you additional information
Hello. I'm testing this and once built, configuration seems simple.
However I would like to add some cdr custom fields the same way I've been doing with sql/odbc
Basically, in teh dialplan I use something like:
Set(CDR(recording)=/path/to/recording.gsm);
and the column 'recording' on the database gets populated with /path/to/recording
I tried adding a custom field but it is not in the cdr collection.
Is there a way to do this?
Deprecated function | New function |
---|---|
mongoc_collection_find | mongoc_collection_find_with_opts |
==> default: res_config_mongodb.c: In function ‘realtime’:
==> default: res_config_mongodb.c:448:9: warning: ‘mongoc_collection_find’ is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
==> default: cursor = mongoc_collection_find(collection, MONGOC_QUERY_NONE, 0, 1, 0, query, NULL, NULL);
==> default: ^
==> default: In file included from /usr/local/include/libmongoc-1.0/mongoc-client.h:27:0,
==> default: from /usr/local/include/libmongoc-1.0/mongoc.h:27,
==> default: from /home/vagrant/asterisk-14.2.1/include/asterisk/res_mongodb.h:17,
==> default: from res_config_mongodb.c:44:
==> default: /usr/local/include/libmongoc-1.0/mongoc-collection.h:143:1: note: declared here
==> default: mongoc_collection_find (mongoc_collection_t *collection,
==> default: ^
==> default: res_config_mongodb.c: In function ‘realtime_multi’:
==> default: res_config_mongodb.c:588:9: warning: ‘mongoc_collection_find’ is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
==> default: cursor = mongoc_collection_find(collection, MONGOC_QUERY_NONE, 0, 0, 0, query, NULL, NULL);
==> default: ^
==> default: In file included from /usr/local/include/libmongoc-1.0/mongoc-client.h:27:0,
==> default: from /usr/local/include/libmongoc-1.0/mongoc.h:27,
==> default: from /home/vagrant/asterisk-14.2.1/include/asterisk/res_mongodb.h:17,
==> default: from res_config_mongodb.c:44:
==> default: /usr/local/include/libmongoc-1.0/mongoc-collection.h:143:1: note: declared here
==> default: mongoc_collection_find (mongoc_collection_t *collection,
==> default: ^
==> default: res_config_mongodb.c: In function ‘load’:
==> default: res_config_mongodb.c:946:9: warning: ‘mongoc_collection_find’ is deprecated: Use mongoc_collection_find_with_opts instead [-Wdeprecated-declarations]
==> default: cursor = mongoc_collection_find(collection, MONGOC_QUERY_NONE, 0, 0, 0, root, fields, NULL);
==> default: ^
==> default: In file included from /usr/local/include/libmongoc-1.0/mongoc-client.h:27:0,
==> default: from /usr/local/include/libmongoc-1.0/mongoc.h:27,
==> default: from /home/vagrant/asterisk-14.2.1/include/asterisk/res_mongodb.h:17,
==> default: from res_config_mongodb.c:44:
==> default: /usr/local/include/libmongoc-1.0/mongoc-collection.h:143:1: note: declared here
==> default: mongoc_collection_find (mongoc_collection_t *collection,
==> default: ^
What kind of scheme should we use to be able to integrate queue.conf to mongodb ?
Hi,
is it possible to give also authentication credentials to cdr_mongo.conf file?
Kind regards!
Pawel
Hi!
Wich model I need to insert in mongo to use endpoints (on ps_endpoints, ps_auths, ps_aors)? I tested some models, but none of them worked.
I followed the same model as extensions.conf, sip.conf and others (which contains cat_metric, var_metric, var_name, var_val), but it doesnt work.
My last attempt was a model with all field in same document, on attachment
[ps_endpoints.txt](https://github.com/min
ps_auths.txt
oruta/ast_mongo/files/4896533/ps_endpoints.txt)
ps_aors.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.