[Asterisk-cvs] asterisk manager.c,1.32,1.33
markster at lists.digium.com
markster at lists.digium.com
Sun Nov 30 23:06:07 CST 2003
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv10145
Modified Files:
manager.c
Log Message:
Add variable/account code to manager create
Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- manager.c 1 Oct 2003 21:01:30 -0000 1.32
+++ manager.c 1 Dec 2003 05:32:31 -0000 1.33
@@ -418,6 +418,8 @@
char *priority = astman_get_header(m, "Priority");
char *timeout = astman_get_header(m, "Timeout");
char *callerid = astman_get_header(m, "CallerID");
+ char *variable = astman_get_header(m, "Variable");
+ char *account = astman_get_header(m, "Account");
char *app = astman_get_header(m, "Application");
char *appdata = astman_get_header(m, "Data");
char *tech, *data;
@@ -448,9 +450,9 @@
*data = '\0';
data++;
if (strlen(app)) {
- res = ast_pbx_outgoing_app(tech, AST_FORMAT_SLINEAR, data, to, app, appdata, &reason, 0, strlen(callerid) ? callerid : NULL, NULL, NULL);
- } else {
- res = ast_pbx_outgoing_exten(tech, AST_FORMAT_SLINEAR, data, to, context, exten, pi, &reason, 0, strlen(callerid) ? callerid : NULL, NULL, NULL);
+ res = ast_pbx_outgoing_app(tech, AST_FORMAT_SLINEAR, data, to, app, appdata, &reason, 1, strlen(callerid) ? callerid : NULL, variable, account);
+ } else {
+ res = ast_pbx_outgoing_exten(tech, AST_FORMAT_SLINEAR, data, to, context, exten, pi, &reason, 1, strlen(callerid) ? callerid : NULL, variable, account);
}
if (!res)
astman_send_ack(s, m, "Originate successfully queued");
More information about the svn-commits
mailing list