issue #5499
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 1 Nov 2005 20:29:36 +0000 (20:29 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 1 Nov 2005 20:29:36 +0000 (20:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6931 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
res/res_features.c

index 4fa546c..f074fd7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-11-01  Kevin P. Fleming  <kpfleming@digium.com>
 
+       * res/res_features.c (ast_feature_request_and_dial): ensure that channel variables are inherited from the channel placing the call (issue #5499)
+
        * utils.c (getloadavg): change to using _BSD_SOURCE as the indicator for whether this function is present or not (issue #5549)
        
        * include/asterisk/utils.h (ast_slinear_saturated_add): force to be inlined whenever possible
index 2d1f852..b973da5 100755 (executable)
@@ -1087,7 +1087,7 @@ static struct ast_channel *ast_feature_request_and_dial(struct ast_channel *call
        
        if ((chan = ast_request(type, format, data, &cause))) {
                ast_set_callerid(chan, cid_num, cid_name, cid_num);
-               
+               ast_channel_inherit_variables(caller, chan);    
                if (!ast_call(chan, data, timeout)) {
                        struct timeval started;
                        int x, len = 0;