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

Function mi_script_get_method

modules/mi_script/mi_script.c:407–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static void mi_script_get_method(str *m, str *method, str *params)
408{
409 char *p = q_memchr(m->s, ' ', m->len);
410 if (p) {
411 method->s = m->s;
412 method->len = p - m->s;
413 params->s = p + 1;
414 params->len = m->len - method->len - 1;
415 } else {
416 *method = *m;
417 params->len = 0;
418 }
419 trim(method);
420}
421
422static int mi_script_handle_response(mi_response_t *resp, char **res, int *release)
423{

Callers 2

mi_script_funcFunction · 0.85
mi_script_async_funcFunction · 0.85

Calls 2

q_memchrFunction · 0.85
trimFunction · 0.85

Tested by

no test coverage detected