chan_pjsip: Allow topology/session refreshes in early media state

With this change, session modifications in the early media state are
possible if the SDP was sent reliably and confirmed by a PRACK. For
details, see RFC 6337, escpecially section 3.2.

Resolves: #73
This commit is contained in:
Maximilian Fridrich
2023-05-10 16:38:04 +02:00
parent 22b599d86f
commit 1a7dada804
2 changed files with 37 additions and 1 deletions

View File

@@ -231,6 +231,8 @@ struct ast_sip_session {
unsigned int ended_while_deferred:1;
/*! Whether to pass through hold and unhold using re-invites with recvonly and sendrecv */
unsigned int moh_passthrough:1;
/*! Whether early media state has been confirmed through PRACK */
unsigned int early_confirmed:1;
/*! DTMF mode to use with this session, from endpoint but can change */
enum ast_sip_dtmf_mode dtmf;
/*! Initial incoming INVITE Request-URI. NULL otherwise. */