Revision 5e9e29e0 sdp.c

View differences:

sdp.c
18 18
#include "ice.h"
19 19
#include "dtls.h"
20 20
#include "sdp.h"
21
#include "utils.h"
21 22

  
22 23

  
23 24
static su_home_t *home = NULL;
......
476 477
				anon->sdp_origin->o_id, anon->sdp_origin->o_version);
477 478
		g_strlcat(sdp, buffer, BUFSIZE);
478 479
	} else {
479
		gint64 sessid = g_get_monotonic_time();
480
		gint64 sessid = janus_get_monotonic_time();
480 481
		gint64 version = sessid;	/* FIXME This needs to be increased when it changes, so time should be ok */
481 482
		g_sprintf(buffer,
482 483
			"o=%s %"SCNi64" %"SCNi64" IN IP4 127.0.0.1\r\n",	/* FIXME Should we fix the address? */
......
506 507
	//~ /* Connection c= (global) */
507 508
	//~ if(anon->sdp_connection) {
508 509
		//~ g_sprintf(buffer,
509
			//~ "c=IN IP4 %s\r\n", janus_get_local_ip());
510
			//~ "c=IN IP4 %s\r\n", janus_get_public_ip());
510 511
		//~ g_strlcat(sdp, buffer, BUFSIZE);
511 512
	//~ }
512 513
	/* DTLS fingerprint a= (global) */
......
612 613
			/* Media connection c= */
613 614
			//~ if(m->m_connections) {
614 615
				g_sprintf(buffer,
615
					"c=IN IP4 %s\r\n", janus_get_local_ip());
616
					"c=IN IP4 %s\r\n", janus_get_public_ip());
616 617
				g_strlcat(sdp, buffer, BUFSIZE);
617 618
			//~ }
618 619
			/* What is the direction? */
......
633 634
			}
634 635
			/* RTCP */
635 636
			g_sprintf(buffer, "a=rtcp:%s IN IP4 %s\r\n",
636
				m->m_type == sdp_media_audio ? "ARTCP" : "VRTCP", janus_get_local_ip());
637
				m->m_type == sdp_media_audio ? "ARTCP" : "VRTCP", janus_get_public_ip());
637 638
			g_strlcat(sdp, buffer, BUFSIZE);
638 639
			/* RTP maps */
639 640
			if(m->m_rtpmaps) {
......
689 690
					"a=ssrc:%i msid:janus janusa0\r\n"
690 691
					"a=ssrc:%i mslabel:janus\r\n"
691 692
					"a=ssrc:%i label:janusa0\r\n",
692
						//~ janus_get_local_ip(),
693
						//~ janus_get_public_ip(),
693 694
						stream->ssrc, stream->ssrc, stream->ssrc, stream->ssrc);
694 695
				g_strlcat(sdp, buffer, BUFSIZE);
695 696
			} else if(m->m_type == sdp_media_video) {
......
699 700
					"a=ssrc:%i msid:janus janusv0\r\n"
700 701
					"a=ssrc:%i mslabel:janus\r\n"
701 702
					"a=ssrc:%i label:janusv0\r\n",
702
						//~ janus_get_local_ip(),
703
						//~ janus_get_public_ip(),
703 704
						stream->ssrc, stream->ssrc, stream->ssrc, stream->ssrc);
704 705
				g_strlcat(sdp, buffer, BUFSIZE);
705 706
			}

Also available in: Unified diff