PJSUA HOLD and media_status

R
ramon
Fri, Jun 12, 2020 11:28 AM

Hello,
When I HOLD a call with  pjsua_call_set_hold, the call_info. media_status
changes from PJSUA_CALL_MEDIA_ACTIVE (1) to PJSUA_CALL_MEDIA_NONE (0)
instead PJSUA_CALL_MEDIA_LOCAL_HOLD (2).  When I reinvite teh media_status
return to PJSUA_CALL_MEDIA_ACTIVE.

When the remote holds the call PJSUA_CALL_MEDIA_REMOTE_HOLD  (3) its
correctly returned.

Why  local hold don't  change the status to PJSUA_CALL_MEDIA_LOCAL_HOLD?

Another question is if it's necessary to disconnect conference ports when a
PJSUA_CALL_MEDIA_NONE i'ts received in on_call_media_state callback?

Thanks,

Hello, When I HOLD a call with pjsua_call_set_hold, the call_info. media_status changes from PJSUA_CALL_MEDIA_ACTIVE (1) to PJSUA_CALL_MEDIA_NONE (0) instead PJSUA_CALL_MEDIA_LOCAL_HOLD (2). When I reinvite teh media_status return to PJSUA_CALL_MEDIA_ACTIVE. When the remote holds the call PJSUA_CALL_MEDIA_REMOTE_HOLD (3) its correctly returned. Why local hold don't change the status to PJSUA_CALL_MEDIA_LOCAL_HOLD? Another question is if it's necessary to disconnect conference ports when a PJSUA_CALL_MEDIA_NONE i'ts received in on_call_media_state callback? Thanks,