| 288 | |
| 289 | |
| 290 | int 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 | |
| 307 | int cc_db_delete_call(struct cc_call *call) |
no test coverage detected