Revision 07dd477d src/path_handlers.c

View differences:

src/path_handlers.c
149 149
	mg_get_http_var(&hm->body, "port", port, MAX_PORT_LENGTH);
150 150

  
151 151
	id = mg_uri_field(hm, 1);
152
	mg_conn_addr_to_str(nc, rtp_dst_ip, MAX_IPADDR_LENGTH, MG_SOCK_STRINGIFY_IP|MG_SOCK_STRINGIFY_REMOTE);
152
	strncpy(rtp_dst_ip, janus_instance_ipaddr(c->janus), MAX_IPADDR_LENGTH);
153 153

  
154
	info("POST request for resource %s from %s\n", id, rtp_dst_ip);
154
	info("POST request for resource %s to %s\n", id, rtp_dst_ip);
155 155
	ch = pschannel_bucket_find(c->pb, ipaddr, port);
156 156

  
157 157
	if (ch)
......
229 229
	char rtp_source_ip[MAX_IPADDR_LENGTH];
230 230
	char * id;
231 231
	const struct pstreamer * ps = NULL;
232
	const struct pschannel * ch = NULL;
233 232

  
234 233
	c = (const struct context *) nc->user_data;
235 234

  
236 235
	id = mg_uri_field(hm, 1);
237
	mg_conn_addr_to_str(nc, rtp_source_ip, MAX_IPADDR_LENGTH, MG_SOCK_STRINGIFY_IP);
236
	mg_conn_addr_to_str(nc, rtp_source_ip, MAX_IPADDR_LENGTH, MG_SOCK_STRINGIFY_IP); // PeerStreamer-ng ipaddr, shared with the psistances
238 237

  
239
	info("POST request for source resource %s from %s\n", id, rtp_source_ip);
238
	info("POST request for source resource %s to %s\n", id, rtp_source_ip);
240 239

  
241 240
	ps = pstreamer_manager_create_source_streamer(c->psm, id, rtp_source_ip, streamer_creation_callback_new(nc, c->pb, source_streamer_creation_handler)); 
242 241
	if(ps)

Also available in: Unified diff