diff options
Diffstat (limited to 'pjmedia/src')
-rw-r--r-- | pjmedia/src/pjmedia/transport_ice.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia/transport_ice.c b/pjmedia/src/pjmedia/transport_ice.c index 77a2e346..7c36787c 100644 --- a/pjmedia/src/pjmedia/transport_ice.c +++ b/pjmedia/src/pjmedia/transport_ice.c @@ -1273,6 +1273,14 @@ static pj_status_t transport_media_start(pjmedia_transport *tp, return PJ_SUCCESS; } + /* Special case for Session Timer. The re-INVITE for session refresh + * doesn't call transport_encode_sdp(), causing current_oa_role to + * be set to ROLE_NONE. This is a workaround. + */ + if (current_oa_role == ROLE_NONE) { + current_oa_role = ROLE_OFFERER; + } + /* Processing depends on the offer/answer role */ if (current_oa_role == ROLE_OFFERER) { /* |