chan_pjsip: Add support for picking up calls in the configured pickup group.

AST-1363

Review: https://reviewboard.asterisk.org/r/3478/


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@413117 f38db490-d61c-443f-a65b-d21fe96a405b
res_pjsip_sdp_rtp: Fix issue where sending a hold SDP twice could cause an unhold.

This change fixes a bug where if an SDP with media address and sendonly was
received twice the underlying call would go off hold, instead of remaining on hold.
This occured because the code did not properly take into account that the SDP
may contain both a valid media address and the sendonly attribute.

The code now examines the sendonly attribute and media address first, so if the
SDP is received again no change will occur.

ASTERISK-23558 #comment Reported by: John Bigelow

Review: https://reviewboard.asterisk.org/r/3472/


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@413119 f38db490-d61c-443f-a65b-d21fe96a405b
res_stasis: Add progress indications to operations which perform media.

This change fixes operations which did not account for the fact that they may
be executed on channels which have not been answered. These operations will
now indicate progress when invoked.

ASTERISK-23560 #close
ASTERISk-23560 #comment Reported by: Jan Svoboda

Review: https://reviewboard.asterisk.org/r/3495/


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@413121 f38db490-d61c-443f-a65b-d21fe96a405b
Websocket: Add session locking and delay close

This resolves a race condition where data could be written to a NULL
FILE pointer causing a crash as a websocket connection was in the
process of shutting down by adding locking to websocket session writes
and by deferring session teardown until session destruction.

(closes issue ASTERISK-23605)
Review: https://reviewboard.asterisk.org/r/3481/
Reported by: Matt Jordan
........

Merged revisions 413123 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@413124 f38db490-d61c-443f-a65b-d21fe96a405b