diff options
author | Matthew Jordan <mjordan@digium.com> | 2013-06-19 01:28:40 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2013-06-19 01:28:40 +0000 |
commit | 68103abba38b3ccd362dd1e9018b4045b9b7cb57 (patch) | |
tree | 27546c663cc6fa131b1e2051947947f0321ce8f4 /main/cel.c | |
parent | da1f4f0c3d62c23316471a87ccd6101c17329197 (diff) |
Handle variable substitution in dummy variables
When func_cdr is used for variable substitution, there is no channel name
and hence no run-time information available for CDR variable substitution.
In that case, the correct thing to do is to use the CDR object on the channel
passed to the function. This patch checks to see if the channel passed in
has a name - if not, it uses ast_cdr_format_var instead of ast_cdr_get_var.
This allows CDR backends to continue to use variable substitution in order to
resolve ast_cdr object properties.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cel.c')
0 files changed, 0 insertions, 0 deletions