The dialing API should inherit datastores as well as variables
authorTerry Wilson <twilson@digium.com>
Fri, 3 Oct 2008 17:35:37 +0000 (17:35 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 3 Oct 2008 17:35:37 +0000 (17:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146052 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/dial.c

index 199d05c..be1cc69 100644 (file)
@@ -271,6 +271,7 @@ static int begin_dial_channel(struct ast_dial_channel *channel, struct ast_chann
        /* Inherit everything from he who spawned this dial */
        if (chan) {
                ast_channel_inherit_variables(chan, channel->owner);
+               ast_channel_datastore_inherit(chan, channel->owner);
 
                /* Copy over callerid information */
                S_REPLACE(channel->owner->cid.cid_num, ast_strdup(chan->cid.cid_num));