140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
# File 'lib/polylink_api/helper.rb', line 140
def self.get_cdr_from_string(string)
cdr = {}
attributes = string.split(',')
cdr[:did] = attributes[0]
cdr[:v2c_id] = attributes[1]
cdr[:device_name] = attributes[2]
cdr[:calling_number] = attributes[3]
cdr[:called_number] = attributes[4]
cdr[:starttime] = attributes[5]
cdr[:duration] = attributes[6]
cdr[:endtime] = attributes[7]
cdr[:recordpath] = attributes[8]
cdr[:call_status] = attributes[9]
return cdr
end
|