diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-05 09:23:20 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-05 09:23:20 +0200 |
commit | 64de0edac5cb100d9b8296af8300c60fca197961 (patch) | |
tree | 381b69c1dce4f7b7fad32f48d6e90c4906ddba2e /misc/freeswitch/scripts/dialplan/dialplan.lua | |
parent | 9a15a154da657961a5430225503852d3347e3e08 (diff) |
preserve caller_id
Diffstat (limited to 'misc/freeswitch/scripts/dialplan/dialplan.lua')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/dialplan.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/dialplan.lua b/misc/freeswitch/scripts/dialplan/dialplan.lua index 56a5def..43a71ac 100644 --- a/misc/freeswitch/scripts/dialplan/dialplan.lua +++ b/misc/freeswitch/scripts/dialplan/dialplan.lua @@ -896,9 +896,10 @@ function Dialplan.run(self, destination) self.caller:set_variable('sound_prefix', common.array.try(self.config, 'sounds.' .. tostring(self.caller.language))); self.log:info('DIALPLAN start - caller_id: ',self.caller.caller_id_number, ' "', self.caller.caller_id_name, '" , number: ', destination.number, ', language: ', self.caller.language); - self.caller.static_caller_id_number = self.caller.caller_id_number; self.caller.static_caller_id_name = self.caller.caller_id_name; + self.caller:set_variable('gs_caller_id_number', self.caller.caller_id_number); + self.caller:set_variable('gs_caller_id_name', self.caller.caller_id_name); local result = { continue = false }; local loop = self.caller.loop_count; |