| 105 | {{{ |
| 106 | pjsua_media_channel_init() |
| 107 | { |
| 108 | pjmedia_transport_srtp_create(); |
| 109 | } |
| 110 | |
| 111 | pjsua_media_channel_create_sdp(): |
| 112 | { |
| 113 | pjmedia_endpt_create_sdp(); |
| 114 | pjmedia_transport_media_create(); |
| 115 | } |
| 116 | |
| 117 | pjsua_media_channel_update(): |
| 118 | { |
| 119 | pjmedia_transport_media_start(); |
| 120 | pjmedia_session_create(); |
| 121 | } |
| 122 | |
| 123 | pjsua_media_channel_deinit(): |
| 124 | { |
| 125 | stop_media_session(); |
| 126 | pjmedia_transport_media_stop(); |
| 127 | pjmedia_transport_close(srtp); |
| 128 | } |
| 129 | }}} |
| 130 | |
| 131 | == Create Media Transport On-Demand == |
| 132 | |
| 133 | Media transport (including SRTP) will be created before call. |
| 134 | |