diff options
Diffstat (limited to 'misc/freeswitch/scripts/event')
-rw-r--r-- | misc/freeswitch/scripts/event/cdr_save.lua | 1 | ||||
-rw-r--r-- | misc/freeswitch/scripts/event/presence_update.lua | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/event/cdr_save.lua b/misc/freeswitch/scripts/event/cdr_save.lua index e7ac64a..03eccf7 100644 --- a/misc/freeswitch/scripts/event/cdr_save.lua +++ b/misc/freeswitch/scripts/event/cdr_save.lua @@ -81,6 +81,7 @@ function CdrSave.channel_destroy(self, event) cdr.forwarding_service = common.str.to_sql(event:getHeader('variable_gs_forwarding_service')); cdr.forwarding_account_id = common.str.to_sql(event:getHeader('variable_gs_auth_account_id')); cdr.forwarding_account_type = common.str.to_sql(camelize_type(event:getHeader('variable_gs_auth_account_type'))); + cdr.forwarding_path = common.str.to_sql(event:getHeader('variable_gs_forwarding_path')); cdr.account_id = common.str.to_sql(event:getHeader('variable_gs_account_id')); cdr.account_type = common.str.to_sql(camelize_type(event:getHeader('variable_gs_account_type'))); cdr.bleg_account_id = common.str.to_sql(event:getHeader('variable_gs_destination_id')); diff --git a/misc/freeswitch/scripts/event/presence_update.lua b/misc/freeswitch/scripts/event/presence_update.lua index fd85f03..cf29ca9 100644 --- a/misc/freeswitch/scripts/event/presence_update.lua +++ b/misc/freeswitch/scripts/event/presence_update.lua @@ -134,6 +134,9 @@ function PresenceUpdate.presence_in(self, event) self.log:info('[', uuid,'] PRESENCE_CONFERENCE_', call_direction:upper(), ' ', common.str.to_i(account), ' - identifier: ', account, ', state: ', state); self:conference(direction, account, domain, state, uuid); elseif protocol == 'sip' or protocol == 'any' then + if common.str.blank(state) then + state = event:getHeader('answer-state'); + end if protocol == 'sip' and common.str.blank(state) then self.log:debug('[', uuid,'] PRESENCE_', call_direction:upper(),' no state - protocol: ', protocol, ', account: ', account); return; |