diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-22 15:27:09 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-09-22 15:27:09 +0000 |
commit | afd7d66d7fce31a65e9ba0c33152ea51c0f51368 (patch) | |
tree | 3847bb85d068ba5039561c73c0bc5a9c2aeda993 /include/asterisk/channel.h | |
parent | cb741d4947db6afbe80d406456c9d3d740460874 (diff) |
Create better 'failed' CDRs for outgoing spool calls with context,extension,priority
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1538 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-x | include/asterisk/channel.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index f33bb62d3..16a148302 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -230,6 +230,22 @@ struct ast_channel { struct chanmon; +#define LOAD_OH(oh) { \ + oh.context = context; \ + oh.exten = exten; \ + oh.priority = priority; \ + oh.callerid = callerid; \ + oh.variable = variable; \ +} + +struct outgoing_helper { + char *context; + char *exten; + int priority; + char *callerid; + char *variable; +}; + #define AST_CDR_TRANSFER (1 << 0) #define AST_CDR_FORWARD (1 << 1) #define AST_CDR_CALLWAIT (1 << 2) @@ -327,6 +343,8 @@ int ast_device_state(char *device); */ struct ast_channel *ast_request_and_dial(char *type, int format, void *data, int timeout, int *reason, char *callerid); +struct ast_channel *__ast_request_and_dial(char *type, int format, void *data, int timeout, int *reason, char *callerid, struct outgoing_helper *oh); + //! Registers a channel /*! * \param type type of channel you are registering |