[pjsip] SRTP feature requests
klaus.mailinglists at pernau.at
Thu Feb 14 10:09:03 EST 2008
I did some SRTP tests and it mostly works, but:
1. It does not work if pjsip sends SAVP and 200 OK contains AVP - then
pjsip has an open call but does not send RTP. The logs say:
16:02:54.437 pjsua_call.c SDP negotiation has failed: SDP media
transport type mismatch in offer/answer (PJMEDIA_SDPNEG_EINVANSTP)
What should happen now? Should pjsua-lib hang up the call? It does not
and the call changes to "confirmed".
If the application should send the BYE, then there should be some
indication, e.g. PJSUA_CALL_MEDIA_SAVP_FAILED in the
call_media_state callback. Or is there already a callback which tell the
application about the SRTP failure?
2. If SRTP is optional and a call is established, it would be good to
retrieve SRTP status from pjsua (e.g. pjsua_call_get_info()) to indicate
SRTP status to the user.
More information about the pjsip