J C Sunil Kumar Reddy <jcsun...@gmail.com> writes:
> Can we renegotiate a rtp call to srtp and vice-versa in midcall? May be
> with re-INVITE or UPDATE message? Is it a valid scenario if srtp is not
> mandated?
>
> In my scenario, server and client both supports RTP and SRTP and initially
> call is negotiated to srtp call. Midway, server is sending a re-INVITE
> asking to change to RTP.  What should client do in this case? Accept, as
> SRTP is not mandatory or drop the call?

The most relevant RFC is 3264, section 8, "Modifying the Session".  It
is permitted for either endpoint to request to modify the session.
Whether it does this by re-INVITE or UPDATE does not matter.  As 3264
says, almost any aspect of a media description (an "m-line section" of
the SDP) can be changed.  My memory is that the only part that cannot be
changed is the media type, e.g., "m=audio", "m=video".  In particular,
the "transport" (RTP/AVP, RTP/SAVP) can be changed.

The difficulty is that the other endpoint can always reject the change
for any reason it wants.  So although it is valid to request the change,
there is no assurance that the change will be accepted.

In general, you should avoid dropping the call if the remote end
requests something that that the UA does not want to act on.  There is
almost always a straightforward way to reject the request and the
requestor should handle this correctly.  Dropping the call should be
done only if there is evidence that the two UAs are no longer able to
continue communicating for some reason.

Dale
_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to