Add original party id and reason support.

ISDN ETSI PTP and Q.SIG (And SS7 in future) have support for reporting who
was the original redirecting party of a call.

* Added support for the original redirecting party and reason to the
REDIRECTING function and the system core as well as to the stubbed
locations in sig_pri.c.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2012-04-20 00:57:13 +00:00
parent 92ca507d72
commit 73f48997f9
6 changed files with 307 additions and 28 deletions

View File

@@ -449,6 +449,9 @@ struct ast_set_party_connected_line {
* \note NULL and "" must be considered equivalent.
*/
struct ast_party_redirecting {
/*! \brief Who originally redirected the call (Sent to the party the call is redirected toward) */
struct ast_party_id orig;
/*! \brief Who is redirecting the call (Sent to the party the call is redirected toward) */
struct ast_party_id from;
@@ -460,6 +463,9 @@ struct ast_party_redirecting {
/*! \brief enum AST_REDIRECTING_REASON value for redirection */
int reason;
/*! \brief enum AST_REDIRECTING_REASON value for redirection by original party */
int orig_reason;
};
/*!
@@ -467,6 +473,8 @@ struct ast_party_redirecting {
* \brief Indicate what information in ast_party_redirecting should be set.
*/
struct ast_set_party_redirecting {
/*! What redirecting-orig id information to set. */
struct ast_set_party_id orig;
/*! What redirecting-from id information to set. */
struct ast_set_party_id from;
/*! What redirecting-to id information to set. */