[Asterisk-cvs] asterisk pbx.c,1.217,1.218
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Fri Apr 1 13:31:07 CST 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv1440
Modified Files:
pbx.c
Log Message:
ensure that variables supplied to ast_pbx_outgoing_exten are applied to the channel even in 'sync' mode (bug #3922, for HEAD only)
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.217
retrieving revision 1.218
diff -u -d -r1.217 -r1.218
--- pbx.c 29 Mar 2005 06:18:58 -0000 1.217
+++ pbx.c 1 Apr 2005 19:24:29 -0000 1.218
@@ -4835,6 +4835,13 @@
ast_cdr_start(chan->cdr);
}
+ if (variable) {
+ tmp = ast_strdupa(variable);
+ for (var = strtok_r(tmp, "|", &tmp); var; var = strtok_r(NULL, "|", &tmp)) {
+ pbx_builtin_setvar( chan, var );
+ }
+ }
+
if (chan->_state == AST_STATE_UP) {
res = 0;
if (option_verbose > 3)
More information about the svn-commits
mailing list