mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Allow doing digital PRI to PRI calls automatically
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -224,12 +224,48 @@ struct ast_channel {
|
||||
|
||||
unsigned int callgroup;
|
||||
unsigned int pickupgroup;
|
||||
|
||||
/*! channel flags of AST_FLAG_ type */
|
||||
int flag;
|
||||
|
||||
/*! For easy linking */
|
||||
struct ast_channel *next;
|
||||
|
||||
};
|
||||
|
||||
#define AST_FLAG_DIGITAL 1 /* if the call is a digital ISDN call */
|
||||
|
||||
static inline int ast_test_flag(struct ast_channel *chan, int mode)
|
||||
{
|
||||
return chan->flag & mode;
|
||||
}
|
||||
|
||||
static inline void ast_set_flag(struct ast_channel *chan, int mode)
|
||||
{
|
||||
chan->flag |= mode;
|
||||
}
|
||||
|
||||
static inline void ast_clear_flag(struct ast_channel *chan, int mode)
|
||||
{
|
||||
chan->flag &= ~mode;
|
||||
}
|
||||
|
||||
static inline void ast_set2_flag(struct ast_channel *chan, int value, int mode)
|
||||
{
|
||||
if (value)
|
||||
ast_set_flag(chan, mode);
|
||||
else
|
||||
ast_clear_flag(chan, mode);
|
||||
}
|
||||
|
||||
static inline void ast_dup_flag(struct ast_channel *dstchan, struct ast_channel *srcchan, int mode)
|
||||
{
|
||||
if (ast_test_flag(srcchan, mode))
|
||||
ast_set_flag(dstchan, mode);
|
||||
else
|
||||
ast_clear_flag(dstchan, mode);
|
||||
}
|
||||
|
||||
struct chanmon;
|
||||
|
||||
#define LOAD_OH(oh) { \
|
||||
|
Reference in New Issue
Block a user