18:27:29 is anybody using any of the knm_carriers to acquire numbers ? 18:27:42 mc_? ^ 18:37:02 Trying to acquire a number, but I can't see that anything calls ?CARRIER:acquire_number 19:07:46 barney_: i think there's a sys config for number_manager for default carrier module 19:07:58 and the phone_numbers API 19:08:16 we use knm_bandwidth2 i think? 19:08:22 I am using knm_simwood - searching for numbers works 19:09:08 but when I try and activate via cb.. it seems to search the numbers db and returns bad identifyrer the number could not be found 19:09:26 knm_search:433(<0.5271.140>) error requesting number from amqp: timeout 19:09:48 should there be something listening for this published amqp ? 19:11:03 https://docs.2600hz.com/supported/applications/crossbar/doc/phone_numbers/#buy-a-number-once-searched-for 19:11:26 "once searched for" seems to lead me to think that something is supposed to cache a previous search? 19:14:26 barney_: could be, i haven't worked in there for a while so rusty on particulars 19:14:43 but compare simwood to bw2 modules to see if they search/acquire diff 19:15:01 ok will do thanks mc_ 22:02:23 cb_phone_numbers is add a sodding + to the number so it's not matching the ETS table :S 22:06:38 barney_: in general kazoo likes to deal with E164 internally, and convert to expected formats before sending numbers out of kazoo 22:07:14 E164 (without the +) I assume 22:08:17 /v2/accounts/{$account_id}/phone_numbers/{$ddi}/activate 22:08:31 with the +, so "4158867900" would be converted to "+1415867900" for internal handling 22:08:32 DDI is 44XXXXXXXXXX 22:08:52 yeah, presumably that would become +44... 22:09:00 ok.. so you'd expect the ETS table key to be +44 22:09:30 yeah, the numbers dbs are the first 5 chars, so "+44\\d{3}" 22:09:49 then knm_simwood would convert to whatever simwood API expects the format 22:11:55 Num = list_to_binary([kz_json:get_binary_value(<<"country_code">>, JObj) 22:11:56 ,kz_json:get_binary_value(<<"number">>, JObj) 22:11:56 ]), 22:12:20 so that's the issue... (country_code) is just 44 22:13:12 look at using `knm_converters:normalize(Num)` 22:13:12 simwood returns <<"44">>, <<"1444XXXXXX">> 22:13:23 ok thanks 22:13:41 should build it back to +441444... 22:16:15 mv_ 22:16:16 response_jobj_to_number(JObj, QID) -> 22:16:16 Num = list_to_binary([kz_json:get_binary_value(<<"country_code">>, JObj) 22:16:16 ,kz_json:get_binary_value(<<"number">>, JObj) 22:16:16 ]), 22:16:16 Num2 = knm_converters:normalize(Num), 22:16:19 {QID, {Num2, ?MODULE, ?NUMBER_STATE_DISCOVERY, JObj}}. 22:16:24 Works like a dream! thanks :)