Giter VIP home page Giter VIP logo

ast_mongo's People

Contributors

minoruta avatar viktike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ast_mongo's Issues

Trying to map extconfig sippeers and sipusers to mongodb - is this possible?

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?

How to install?

I have an established asterisk. How can I add your module?

Realtime Queue Log is not storing

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

Patch for asterisk 13?

Can you please include the patch for the most stable version of asterisk?
13.21-cert3

or any instruction?

configure not finding mongoc.h

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?

Dependencies are installed but not met!

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
image

Installing without Docker

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)

I am getting "HTTP 401" error when i try to put pjsip to asterisk

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

for the patch command

  1. first of all showing not found error.
  2. after changing the patch file path it is showing following error.
    **** Only garbage was found in the patch input.

cdr custom field, is it possible?

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?

Update deprecated mongoc function with new one

From MongoDB C Driver 1.5.0, the following function has been deprecated

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:  ^

Model to use pjsip endpoint on Mongo

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.