MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / init_cc_rt_db

Function init_cc_rt_db

modules/call_center/cc_db.c:290–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289
290int init_cc_rt_db(const str *rt_db_url)
291{
292 /* Find a database module */
293 if (db_bind_mod(rt_db_url, &cc_rt_dbf) < 0){
294 LM_ERR("Unable to bind to a database driver\n");
295 return -1;
296 }
297
298 if (cc_connect_rt_db(rt_db_url)!=0){
299 LM_ERR("unable to connect to the database\n");
300 return -1;
301 }
302
303 return 0;
304}
305
306
307int cc_db_delete_call(struct cc_call *call)

Callers 1

mod_initFunction · 0.85

Calls 2

db_bind_modFunction · 0.85
cc_connect_rt_dbFunction · 0.85

Tested by

no test coverage detected