| 391 | } |
| 392 | |
| 393 | static mi_response_t *mi_script_wait_async_handler(void *hdl) |
| 394 | { |
| 395 | struct mi_script_async_hdl *async = NULL; |
| 396 | mi_response_t *resp = NULL;; |
| 397 | |
| 398 | if (ipc_recv_sync_reply((void **)&async) < 0) |
| 399 | LM_ERR("could not receive async reply!\n"); |
| 400 | else |
| 401 | resp = async->resp; |
| 402 | |
| 403 | shm_free(hdl); |
| 404 | return resp; |
| 405 | } |
| 406 | |
| 407 | static void mi_script_get_method(str *m, str *method, str *params) |
| 408 | { |
no test coverage detected