Hi, This patch adds a attach2() member function to pjmedia_transport_op and the corresponding pjmedia_transport_attach2() function. These new functions take an additional explicit parameter for the media stream. This allows all transport adapters in the chain to have access to the media stream. Currently only the first transport adapter can get access to the stream by casting the user_data parameter, although this is also undocumented. This change has been implemented in a way that allows existing code to continue to work unmodified as before. New transports should implement attach2() instead of attach(). I look forward to hearing your feedback on this change. Best Regards, Kal
Attachment:
0001-pjmedia-Add-attach2-to-pjmedia-transport-interface.patch
Description: Binary data
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org