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

Function mi_script_new_async_handler

modules/mi_script/mi_script.c:379–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379static struct mi_handler *mi_script_new_async_handler(void)
380{
381 struct mi_script_async_hdl *async;
382 struct mi_handler *hdl = shm_malloc(sizeof *hdl + sizeof *async);
383 if (!hdl) {
384 LM_ERR("could not start async handler\n");
385 return NULL;
386 }
387 memset(hdl, 0, sizeof *hdl);
388 async = (struct mi_script_async_hdl *)(hdl + 1);
389 hdl->handler_f = mi_script_notify_async_handler;
390 return hdl;
391}
392
393static mi_response_t *mi_script_wait_async_handler(void *hdl)
394{

Callers 1

mi_script_funcFunction · 0.85

Calls 1

shm_mallocFunction · 0.85

Tested by

no test coverage detected