[OpenSIPS-Devel] [OpenSIPS/opensips] 887f9f: cachedb_mongodb: Allow specifying URL options

Liviu Chircu noreply at github.com
Fri Apr 19 12:11:00 EDT 2019


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 887f9f0e032da4bf092540cb92369a6daee90ffa
      https://github.com/OpenSIPS/opensips/commit/887f9f0e032da4bf092540cb92369a6daee90ffa
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-04-19 (Fri, 19 Apr 2019)

  Changed paths:
    M cachedb/cachedb_id.c
    M cachedb/cachedb_id.h
    M modules/cachedb_mongodb/cachedb_mongodb.c
    M modules/cachedb_mongodb/cachedb_mongodb_dbase.c

  Log Message:
  -----------
  cachedb_mongodb: Allow specifying URL options

This patch allows script writers to append essential connect string
options near the end of a cachedb_mongodb URL, such as:

    * ?replSet=mongo-set-1
    * ?readConcernLevel=local

Consult the MongoDB connect string docs for a full listing of available
URL options.

Reported by Vasilios Tzanoudakis
Fixes #1656





More information about the Devel mailing list