jchavanton commented on this pull request.


> +     char sdp_o[128];
+       snprintf(
+                       sdp_o, 128, "o=- 1028316687 1 IN IP4 %s\r\n", 
sdp_info->local_ip.s);
+       body->len += strlen(sdp_o);
+
+       // (connection information -- not required if included in all media)
+       char sdp_c[128];
+       snprintf(sdp_c, 128, "c=IN IP4 %s\r\n", sdp_info->local_ip.s);
+       body->len += strlen(sdp_c);
+
+       char sdp_m[128];
+       snprintf(sdp_m, 128, "m=audio %d RTP/AVP %d\r\n", 
sdp_info->udp_local_port,
+                       payload_type_number);
+       body->len += strlen(sdp_m);
+
+       body->s = pkg_malloc(body->len + 1);

check that none was left unchecked

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1701#discussion_r230570516
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to