[asterisk-commits] mmichelson: branch group/CCSS r213875 - /team/group/CCSS/apps/app_dial.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 24 14:29:10 CDT 2009
Author: mmichelson
Date: Mon Aug 24 14:29:06 2009
New Revision: 213875
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213875
Log:
Add debug messages and remove an unnecessary linefeed
Modified:
team/group/CCSS/apps/app_dial.c
Modified: team/group/CCSS/apps/app_dial.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/CCSS/apps/app_dial.c?view=diff&rev=213875&r1=213874&r2=213875
==============================================================================
--- team/group/CCSS/apps/app_dial.c (original)
+++ team/group/CCSS/apps/app_dial.c Mon Aug 24 14:29:06 2009
@@ -1721,7 +1721,7 @@
struct ast_str *str = ast_str_alloca(2 * AST_MAX_EXTENSION);
struct ast_cc_interface *cc_interface;
- ast_str_set(&str, 0, "%s@%s\n", exten, context);
+ ast_str_set(&str, 0, "%s@%s", exten, context);
if (!(cc_interface = ast_calloc(1, sizeof(*cc_interface) + ast_str_strlen(str)))) {
return NULL;
@@ -1730,6 +1730,7 @@
cc_interface->id = ast_atomic_fetchadd_int(&dial_cc_interface_counter, +1);
cc_interface->parent_id = parent_id;
strcpy(cc_interface->name, ast_str_buffer(str));
+ ast_log(LOG_NOTICE, "Created an extension cc interface for '%s' with id %d and parent %d\n", cc_interface->name, cc_interface->id, cc_interface->parent_id);
return cc_interface;
}
@@ -1783,6 +1784,7 @@
strcpy(cc_interface->name, name);
cc_interface->id = ast_atomic_fetchadd_int(&dial_cc_interface_counter, +1);
cc_interface->parent_id = parent_id;
+ ast_log(LOG_NOTICE, "Created a device cc interface for '%s' with id %d and parent %d\n", cc_interface->name, cc_interface->id, cc_interface->parent_id);
return cc_interface;
}
@@ -1944,10 +1946,6 @@
pbx_builtin_setvar_helper(chan, "DIALSTATUS", pa.status);
return -1;
}
-
- ast_log(LOG_NOTICE, "Out of curiosity, what are the channel's exten and context?\n");
- ast_log(LOG_NOTICE, "Exten is '%s' and context is '%s'\n", chan->exten, chan->context);
- ast_log(LOG_NOTICE, "Macroexten is '%s' and macrocontext is '%s'\n", chan->macroexten, chan->macrocontext);
parse = ast_strdupa(data);
More information about the asterisk-commits
mailing list