mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
chan_pjsip, app_transfer: Add TRANSFERSTATUSPROTOCOL variable
When a Transfer/REFER is executed, TRANSFERSTATUSPROTOCOL variable is 0 when no protocl specific error SIP example of failure, 3xx-6xx for the SIP error code received This allows applications to perform actions based on the failure reason. ASTERISK-29252 #close Reported-by: Dan Cropp Change-Id: Ia6a94784b4925628af122409cdd733c9f29abfc4
This commit is contained in:
@@ -2578,6 +2578,18 @@ int ast_settimeout_full(struct ast_channel *c, unsigned int rate, int (*func)(co
|
||||
*/
|
||||
int ast_transfer(struct ast_channel *chan, char *dest);
|
||||
|
||||
/*!
|
||||
* \brief Transfer a channel (if supported) receieve protocol result.
|
||||
* \retval -1 on error
|
||||
* \retval 0 if not supported
|
||||
* \retval 1 if supported and requested
|
||||
* \param chan current channel
|
||||
* \param dest destination extension for transfer
|
||||
* \param protocol specific error code in case of failure
|
||||
* Example, sip 0 success, else sip error code
|
||||
*/
|
||||
int ast_transfer_protocol(struct ast_channel *chan, char *dest, int *protocol);
|
||||
|
||||
/*!
|
||||
* \brief Inherits channel variable from parent to child channel
|
||||
* \param parent Parent channel
|
||||
|
Reference in New Issue
Block a user