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

Function connect_http_db

modules/pi_http/http_db_handler.c:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35int connect_http_db(ph_framework_t *framework_data, int index)
36{
37 ph_db_url_t *ph_db_urls = framework_data->ph_db_urls;
38
39 if (*ph_db_urls[index].http_db_handle) {
40 LM_CRIT("BUG - db connection found already open\n");
41 return -1;
42 }
43 if ((*ph_db_urls[index].http_db_handle =
44 ph_db_urls[index].http_dbf.init(&ph_db_urls[index].db_url)) == NULL) {
45 return -1;
46 }
47 return 0;
48}
49
50int use_table(ph_db_table_t *db_table)
51{

Callers 2

init_http_dbFunction · 0.85
child_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected