| 343 | |
| 344 | |
| 345 | static int cfg_validate(void) |
| 346 | { |
| 347 | /* if the 'uac_auth' func is used, be sure the uac_auth API was loaded */ |
| 348 | if ( is_script_func_used("uac_auth", -1) ) { |
| 349 | if (uac_auth_api._do_uac_auth==NULL) { |
| 350 | LM_ERR("uac_auth() was found, but module started without support " |
| 351 | "for it, better restart\n"); |
| 352 | return 0; |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | /* if the 'uac_replace_*' funcs are used, be sure the support for |
| 357 | * replacing was initialized */ |
| 358 | if ( is_script_func_used("uac_replace_from", -1) || |
| 359 | is_script_func_used("uac_replace_to", -1) ) { |
| 360 | if (!uac_does_replace) { |
| 361 | LM_ERR("uac_replace_*() was found, but module started without " |
| 362 | "support for replacing, better restart\n"); |
| 363 | return 0; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | return 1; |
| 368 | } |
| 369 | |
| 370 | |
| 371 | /************************** fixup functions ******************************/ |
nothing calls this directly
no test coverage detected