kazoo
kazoo copied to clipboard
4.3.caller id numbers
Selecting a rate for an inbound call with caller_id_numbers filter was failing here:
https://github.com/2600hz/kazoo/blob/1fbde96c344c63fa0db5f7b63fcdbc3d0b134c65/applications/hotornot/src/hon_util.erl#L258
kzd_rates:caller_id_numbers(Rate, [<<".">>]) should be returning the list of regexes but it was returning a binary instead.
Also fixed up the CSV import/export so now the export CSV has the same format as the import CSV.
When we exported a ratedeck the caller_id_numbers in the CSV were in the internal regex format and so if that file was then imported back the field was corrupted and the filter no longer worked.
The CSV format of the caller_id_numbers should be ':' seperated list of prefixes in both import and export files