[asterisk-commits] mmichelson: branch group/CCSS r213633 - /team/group/CCSS/apps/app_dial.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 21 15:49:50 CDT 2009
Author: mmichelson
Date: Fri Aug 21 15:49:47 2009
New Revision: 213633
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213633
Log:
Fix a few logic errors I found just from reading code.
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=213633&r1=213632&r2=213633
==============================================================================
--- team/group/CCSS/apps/app_dial.c (original)
+++ team/group/CCSS/apps/app_dial.c Fri Aug 21 15:49:47 2009
@@ -1700,7 +1700,7 @@
return -1;
}
- if (!(cc_interface = cc_extension_interface_init(chan->exten, chan->context, 1))) {
+ if (!(cc_interface = cc_extension_interface_init(chan->exten, chan->context, 0))) {
ast_free(interfaces);
return -1;
}
@@ -1866,7 +1866,9 @@
goto done;
}
- create_root_cc_interface(chan);
+ if (create_root_cc_interface(chan)) {
+ goto done;
+ }
if (ast_test_flag64(&opts, OPT_OPERMODE)) {
opermode = ast_strlen_zero(opt_args[OPT_ARG_OPERMODE]) ? 1 : atoi(opt_args[OPT_ARG_OPERMODE]);
@@ -2740,6 +2742,7 @@
res = ast_register_application_xml(app, dial_exec);
res |= ast_register_application_xml(rapp, retrydial_exec);
+ dial_cc_interface_counter = 1;
return res;
}
More information about the asterisk-commits
mailing list