[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.16,1.17
markster at lists.digium.com
markster at lists.digium.com
Fri Oct 1 20:56:26 CDT 2004
- Previous message: [Asterisk-cvs] asterisk/include/asterisk callerid.h, 1.7,
1.8 channel.h, 1.55, 1.56 pbx.h, 1.25, 1.26 vmodem.h, 1.11, 1.12
- Next message: [Asterisk-cvs] asterisk/apps Makefile, 1.77,
1.78 app_alarmreceiver.c, 1.4, 1.5 app_chanisavail.c, 1.8,
1.9 app_db.c, 1.6, 1.7 app_dial.c, 1.94, 1.95 app_directory.c,
1.27, 1.28 app_disa.c, 1.17, 1.18 app_enumlookup.c, 1.10,
1.11 app_groupcount.c, 1.5, 1.6 app_hasnewvoicemail.c, 1.7,
1.8 app_image.c, 1.3, 1.4 app_lookupblacklist.c, 1.5,
1.6 app_lookupcidname.c, 1.3, 1.4 app_macro.c, 1.15,
1.16 app_meetme.c, 1.60, 1.61 app_osplookup.c, 1.2,
1.3 app_parkandannounce.c, 1.8, 1.9 app_privacy.c, 1.6,
1.7 app_queue.c, 1.87, 1.88 app_sendtext.c, 1.2,
1.3 app_setcallerid.c, 1.4, 1.5 app_setcidname.c, 1.4,
1.5 app_setcidnum.c, 1.4, 1.5 app_sms.c, 1.10,
1.11 app_system.c, 1.11, 1.12 app_talkdetect.c, 1.4,
1.5 app_transfer.c, 1.4, 1.5 app_txtcidname.c, 1.7,
1.8 app_url.c, 1.5, 1.6 app_voicemail.c, 1.151,
1.152 app_zapateller.c, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv31663/pbx
Modified Files:
pbx_spool.c
Log Message:
Huge callerid rework (might break H.323, others)
Index: pbx_spool.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_spool.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- pbx_spool.c 8 Aug 2004 17:15:02 -0000 1.16
+++ pbx_spool.c 2 Oct 2004 00:58:31 -0000 1.17
@@ -3,7 +3,7 @@
*
* Full-featured outgoing call spool support
*
- * Copyright (C) 2002, Digium
+ * Copyright (C) 2002-2004, Digium, Inc.
*
* Mark Spencer <markster at digium.com>
*
@@ -15,6 +15,7 @@
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
+#include <asterisk/callerid.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
#include <asterisk/options.h>
@@ -67,7 +68,8 @@
int priority;
/* CallerID Information */
- char callerid[256];
+ char cid_num[256];
+ char cid_name[256];
/* Channel variables */
char variable[10*256];
@@ -132,7 +134,7 @@
o->tech[0] = '\0';
}
} else if (!strcasecmp(buf, "callerid")) {
- strncpy(o->callerid, c, sizeof(o->callerid) - 1);
+ ast_callerid_split(c, o->cid_name, sizeof(o->cid_name), o->cid_num, sizeof(o->cid_num));
} else if (!strcasecmp(buf, "application")) {
strncpy(o->app, c, sizeof(o->app) - 1);
} else if (!strcasecmp(buf, "data")) {
@@ -222,11 +224,11 @@
if (!ast_strlen_zero(o->app)) {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Attempting call on %s/%s for application %s(%s) (Retry %d)\n", o->tech, o->dest, o->app, o->data, o->retries);
- res = ast_pbx_outgoing_app(o->tech, AST_FORMAT_SLINEAR, o->dest, o->waittime * 1000, o->app, o->data, &reason, 2 /* wait to finish */, o->callerid, o->variable, o->account);
+ res = ast_pbx_outgoing_app(o->tech, AST_FORMAT_SLINEAR, o->dest, o->waittime * 1000, o->app, o->data, &reason, 2 /* wait to finish */, o->cid_num, o->cid_name, o->variable, o->account);
} else {
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Attempting call on %s/%s for %s@%s:%d (Retry %d)\n", o->tech, o->dest, o->exten, o->context,o->priority, o->retries);
- res = ast_pbx_outgoing_exten(o->tech, AST_FORMAT_SLINEAR, o->dest, o->waittime * 1000, o->context, o->exten, o->priority, &reason, 2 /* wait to finish */, o->callerid, o->variable, o->account);
+ res = ast_pbx_outgoing_exten(o->tech, AST_FORMAT_SLINEAR, o->dest, o->waittime * 1000, o->context, o->exten, o->priority, &reason, 2 /* wait to finish */, o->cid_num, o->cid_name, o->variable, o->account);
}
if (res) {
ast_log(LOG_NOTICE, "Call failed to go through, reason %d\n", reason);
- Previous message: [Asterisk-cvs] asterisk/include/asterisk callerid.h, 1.7,
1.8 channel.h, 1.55, 1.56 pbx.h, 1.25, 1.26 vmodem.h, 1.11, 1.12
- Next message: [Asterisk-cvs] asterisk/apps Makefile, 1.77,
1.78 app_alarmreceiver.c, 1.4, 1.5 app_chanisavail.c, 1.8,
1.9 app_db.c, 1.6, 1.7 app_dial.c, 1.94, 1.95 app_directory.c,
1.27, 1.28 app_disa.c, 1.17, 1.18 app_enumlookup.c, 1.10,
1.11 app_groupcount.c, 1.5, 1.6 app_hasnewvoicemail.c, 1.7,
1.8 app_image.c, 1.3, 1.4 app_lookupblacklist.c, 1.5,
1.6 app_lookupcidname.c, 1.3, 1.4 app_macro.c, 1.15,
1.16 app_meetme.c, 1.60, 1.61 app_osplookup.c, 1.2,
1.3 app_parkandannounce.c, 1.8, 1.9 app_privacy.c, 1.6,
1.7 app_queue.c, 1.87, 1.88 app_sendtext.c, 1.2,
1.3 app_setcallerid.c, 1.4, 1.5 app_setcidname.c, 1.4,
1.5 app_setcidnum.c, 1.4, 1.5 app_sms.c, 1.10,
1.11 app_system.c, 1.11, 1.12 app_talkdetect.c, 1.4,
1.5 app_transfer.c, 1.4, 1.5 app_txtcidname.c, 1.7,
1.8 app_url.c, 1.5, 1.6 app_voicemail.c, 1.151,
1.152 app_zapateller.c, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list