Revision 84c1291c events/janus_sampleevh.c

View differences:

events/janus_sampleevh.c
161 161
											janus_flags_set(&janus_sampleevh.events_mask, JANUS_EVENT_TYPE_PLUGIN);
162 162
										} else if(!strcasecmp(index, "transports")) {
163 163
											janus_flags_set(&janus_sampleevh.events_mask, JANUS_EVENT_TYPE_TRANSPORT);
164
										} else if(!strcasecmp(index, "core")) {
165
											janus_flags_set(&janus_sampleevh.events_mask, JANUS_EVENT_TYPE_CORE);
164 166
										} else {
165 167
											JANUS_LOG(LOG_WARN, "Unknown event type '%s'\n", index);
166 168
										}
......
465 467
					 * above, with a "transport" property instead of "plugin"
466 468
					 * to contain the transport package name. */
467 469
					break;
470
				case JANUS_EVENT_TYPE_CORE:
471
					/* This is a core related event. This can contain different
472
					 * information about the health of the Janus instance, or
473
					 * more generically on some events in the Janus life cycle
474
					 * (e.g., when it's just been started or when a shutdown
475
					 * has been requested). Considering the heterogeneous nature
476
					 * of the information being reported, the content is always
477
					 * a JSON object (event). Core events are the only ones
478
					 * missing a session_id. Here's an example:
479
						{
480
						   "type": 256,
481
						   "timestamp": 28381185382,
482
						   "event": {
483
							  "status": "started"
484
						   }
485
						}
486
					*/
487
					break;
468 488
				default:
469 489
					JANUS_LOG(LOG_WARN, "Unknown type of event '%d'\n", type);
470 490
					break;

Also available in: Unified diff