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

Function janus_brief_parse_msg

modules/janus/janus_common.c:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58static event_id_t janus_notify_event = EVI_ERROR;
59
60void janus_brief_parse_msg(struct janus_req *r)
61{
62 cJSON *obj=NULL;
63 char *parse_end;
64
65 obj = cJSON_ParseWithOpts(r->buf,(const char **)&parse_end,0);
66 if (obj == NULL) {
67 LM_ERR("NO parse :( \n");
68 } else {
69 r->complete=1;
70 r->body = obj;
71 }
72}
73
74int janus_register_event(void)
75{

Callers 2

Calls 1

cJSON_ParseWithOptsFunction · 0.85

Tested by

no test coverage detected