mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Revert revision 367163.
This should have been committed to my team trunk-digiumphones branch instead of trunk. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@367183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -671,8 +671,7 @@ static const struct sip_reasons {
|
|||||||
{ AST_REDIRECTING_REASON_FOLLOW_ME, "follow-me" },
|
{ AST_REDIRECTING_REASON_FOLLOW_ME, "follow-me" },
|
||||||
{ AST_REDIRECTING_REASON_OUT_OF_ORDER, "out-of-service" },
|
{ AST_REDIRECTING_REASON_OUT_OF_ORDER, "out-of-service" },
|
||||||
{ AST_REDIRECTING_REASON_AWAY, "away" },
|
{ AST_REDIRECTING_REASON_AWAY, "away" },
|
||||||
{ AST_REDIRECTING_REASON_CALL_FWD_DTE, "unknown"},
|
{ AST_REDIRECTING_REASON_CALL_FWD_DTE, "unknown"}
|
||||||
{ AST_REDIRECTING_REASON_SEND_TO_VM, "send_to_vm"},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -24258,8 +24257,6 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
|
|||||||
int localtransfer = 0;
|
int localtransfer = 0;
|
||||||
int attendedtransfer = 0;
|
int attendedtransfer = 0;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
struct ast_party_redirecting redirecting;
|
|
||||||
struct ast_set_party_redirecting update_redirecting;
|
|
||||||
|
|
||||||
if (req->debug) {
|
if (req->debug) {
|
||||||
ast_verbose("Call %s got a SIP call transfer from %s: (REFER)!\n",
|
ast_verbose("Call %s got a SIP call transfer from %s: (REFER)!\n",
|
||||||
@@ -24564,16 +24561,6 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
|
|||||||
}
|
}
|
||||||
ast_set_flag(&p->flags[0], SIP_DEFER_BYE_ON_TRANSFER); /* Delay hangup */
|
ast_set_flag(&p->flags[0], SIP_DEFER_BYE_ON_TRANSFER); /* Delay hangup */
|
||||||
|
|
||||||
/* When a call is transferred to voicemail from a Digium phone, there may be
|
|
||||||
* a Diversion header present in the REFER with an appropriate reason parameter
|
|
||||||
* set. We need to update the redirecting information appropriately.
|
|
||||||
*/
|
|
||||||
ast_party_redirecting_init(&redirecting);
|
|
||||||
memset(&update_redirecting, 0, sizeof(update_redirecting));
|
|
||||||
change_redirecting_information(p, req, &redirecting, &update_redirecting, FALSE);
|
|
||||||
ast_channel_update_redirecting(current.chan2, &redirecting, &update_redirecting);
|
|
||||||
ast_party_redirecting_free(&redirecting);
|
|
||||||
|
|
||||||
/* Do not hold the pvt lock during the indicate and async_goto. Those functions
|
/* Do not hold the pvt lock during the indicate and async_goto. Those functions
|
||||||
* lock channels which will invalidate locking order if the pvt lock is held.*/
|
* lock channels which will invalidate locking order if the pvt lock is held.*/
|
||||||
/* For blind transfers, move the call to the new extensions. For attended transfers on multiple
|
/* For blind transfers, move the call to the new extensions. For attended transfers on multiple
|
||||||
|
@@ -400,7 +400,6 @@ enum AST_REDIRECTING_REASON {
|
|||||||
AST_REDIRECTING_REASON_OUT_OF_ORDER,
|
AST_REDIRECTING_REASON_OUT_OF_ORDER,
|
||||||
AST_REDIRECTING_REASON_AWAY,
|
AST_REDIRECTING_REASON_AWAY,
|
||||||
AST_REDIRECTING_REASON_CALL_FWD_DTE, /* This is something defined in Q.931, and no I don't know what it means */
|
AST_REDIRECTING_REASON_CALL_FWD_DTE, /* This is something defined in Q.931, and no I don't know what it means */
|
||||||
AST_REDIRECTING_REASON_SEND_TO_VM,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@@ -1203,7 +1203,6 @@ static const struct ast_value_translation redirecting_reason_types[] = {
|
|||||||
{ AST_REDIRECTING_REASON_OUT_OF_ORDER, "out_of_order", "Called DTE Out-Of-Order" },
|
{ AST_REDIRECTING_REASON_OUT_OF_ORDER, "out_of_order", "Called DTE Out-Of-Order" },
|
||||||
{ AST_REDIRECTING_REASON_AWAY, "away", "Callee is Away" },
|
{ AST_REDIRECTING_REASON_AWAY, "away", "Callee is Away" },
|
||||||
{ AST_REDIRECTING_REASON_CALL_FWD_DTE, "cf_dte", "Call Forwarding By The Called DTE" },
|
{ AST_REDIRECTING_REASON_CALL_FWD_DTE, "cf_dte", "Call Forwarding By The Called DTE" },
|
||||||
{ AST_REDIRECTING_REASON_SEND_TO_VM, "send_to_vm", "Call is being redirected to user's voicemail"},
|
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user