mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
chan_pjsip: Add support for passing hold and unhold requests through.
This change adds an option, moh_passthrough, that when enabled will pass hold and unhold requests through using a SIP re-invite. When placing on hold a re-invite with sendonly will be sent and when taking off hold a re-invite with sendrecv will be sent. This allows remote servers to handle the musiconhold instead of the local Asterisk instance being responsible. Review: https://reviewboard.asterisk.org/r/4103/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -434,7 +434,7 @@ static int channel_read_rtp(struct ast_channel *chan, const char *type, const ch
|
||||
} else if (!strcmp(type, "secure")) {
|
||||
snprintf(buf, buflen, "%d", media->srtp ? 1 : 0);
|
||||
} else if (!strcmp(type, "hold")) {
|
||||
snprintf(buf, buflen, "%d", media->held ? 1 : 0);
|
||||
snprintf(buf, buflen, "%d", media->remotely_held ? 1 : 0);
|
||||
} else {
|
||||
ast_log(AST_LOG_WARNING, "Unknown type field '%s' specified for 'rtp' information\n", type);
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user