Revision a972337c

View differences:

plugins/janus_audiobridge.c
956 956
			}
957 957
			/* Create the audio bridge room */
958 958
			janus_audiobridge_room *audiobridge = g_malloc0(sizeof(janus_audiobridge_room));
959
			audiobridge->room_id = atol(cat->name);
959
			audiobridge->room_id = g_ascii_strtoull(cat->name, NULL, 0);
960 960
			char *description = NULL;
961 961
			if(desc != NULL && desc->value != NULL && strlen(desc->value) > 0)
962 962
				description = g_strdup(desc->value);
plugins/janus_recordplay.c
1441 1441
			continue;
1442 1442
		}
1443 1443
		janus_config_category *cat = (janus_config_category *)cl->data;
1444
		guint64 id = atol(cat->name);
1444
		guint64 id = g_ascii_strtoull(cat->name, NULL, 0);
1445 1445
		if(id == 0) {
1446 1446
			JANUS_LOG(LOG_WARN, "Invalid ID, skipping...\n");
1447 1447
			janus_config_destroy(nfo);
plugins/janus_videoroom.c
783 783
			janus_config_item *rec_dir = janus_config_get_item(cat, "rec_dir");
784 784
			/* Create the video room */
785 785
			janus_videoroom *videoroom = g_malloc0(sizeof(janus_videoroom));
786
			videoroom->room_id = atol(cat->name);
786
			videoroom->room_id = g_ascii_strtoull(cat->name, NULL, 0);
787 787
			char *description = NULL;
788 788
			if(desc != NULL && desc->value != NULL && strlen(desc->value) > 0)
789 789
				description = g_strdup(desc->value);
sdp.c
575 575
	janus_ice_handle *handle = stream->handle;
576 576
	if(handle == NULL)
577 577
		return -2;
578
	guint32 ssrc = atol(ssrc_attr);
579
	if(ssrc == 0)
578
	guint64 ssrc = g_ascii_strtoull(ssrc_attr, NULL, 0);
579
	if(ssrc == 0 || ssrc > G_MAXUINT32)
580 580
		return -3;
581 581
	if(video) {
582 582
		if(stream->video_ssrc_peer == 0) {

Also available in: Unified diff