diff options
author | Richard Mudgett <rmudgett@digium.com> | 2009-08-04 16:36:41 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2009-08-04 16:36:41 +0000 |
commit | 28ad5ced1a0837966bd402aadf45172e5ee3ff79 (patch) | |
tree | 5414127383a3033771cb74465f7a6235874331b7 /include/asterisk | |
parent | e5b19910edfdafbe48c84096acd025d8b81a0334 (diff) |
Initial minimum ast_party_caller support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/channel.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index dffca516c..0f414e7a9 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -285,6 +285,23 @@ struct ast_party_id { /*! * \since 1.6.3 + * \brief Caller Party information. + * \note All string fields here are malloc'ed, so they need to be + * freed when the structure is deleted. + * \note NULL and "" must be considered equivalent. + */ +struct ast_party_caller { + struct ast_party_id id; /*! \brief Caller party ID */ + + /*! \brief Automatic Number Identification (ANI) (Malloced) */ + char *ani; + + /*! \brief Automatic Number Identification 2 (Info Digits) */ + int ani2; +}; + +/*! + * \since 1.6.3 * \brief Connected Line/Party information. * \note All string fields here are malloc'ed, so they need to be * freed when the structure is deleted. @@ -2325,6 +2342,16 @@ void ast_channel_set_linkgroup(struct ast_channel *chan, struct ast_channel *pee /*! * \since 1.6.3 + * \brief Initialize the given caller structure. + * + * \param init Caller structure to initialize. + * + * \return Nothing + */ +void ast_party_caller_init(struct ast_party_caller *init); + +/*! + * \since 1.6.3 * \brief Copy the source caller information to the destination caller. * * \param dest Destination caller |