16:50:08 mc_ what's happening is the ecall fs route park, which is only based on the inbound channel sets the Account-Billing in the ecall ETS 16:52:07 the authz_response handler only sets "Channel-Authorized" true/false 16:52:44 _ = ecallmgr_fs_channel:set_authorized(CallId, was_authorized(AuthorizeReply)), 16:52:44 case AuthorizeReply of 16:52:44 {'true', JObj} -> 16:52:44 AccountBilling = kz_json:get_value(<<"Account-Billing">>, JObj), 16:52:44 ResellerBilling = kz_json:get_value(<<"Reseller-Billing">>, JObj), 16:52:44 _ = ecallmgr_fs_channel:set_billing(CallId, AccountBilling, ResellerBilling), 16:52:46 AuthorizeReply; 16:52:48 _ -> 16:52:51 AuthorizeReply 16:52:53 end. 16:53:04 i've added this and it all now works 17:16:38 Is anyone successfully using kazoo 4.3 number manager with telnyx to search for and order IPs? This used to work and it stopped some time ago. I see Telnyx updated their API. Is there a way we can get this working again? 17:26:35 Am I going to have to download the kazoo source, modify the knm_telnyx_util.erl file and compile who knows what to get an updated erlang binary that I can use to replace the outdated API calls? 17:29:22 do you know what's changed? 17:30:23 they went from an APIv1 to APIv2 and the calls appear to be different. 17:30:49 probably the authentication too 17:31:10 do you have the spec for v1 and v2? 17:33:55 https://developers.telnyx.com/docs/v2/development/apiv1_v2_migration_guide/call_control_migration_guide/ 17:41:01 doens't look that complicated to change 17:41:51 basically you need to change the auth headers to a bearer and wrap the payload in data: {} and change the endpoint format 17:42:24 what version of kazoo are you running and which ETS version? 17:49:20 you'll need to change this too core/kazoo_number_manager/src/carriers/knm_telnyx.erl 17:49:46 as all the endpoints have changed 17:52:51 api v2 is documented so yeah... simple enough. I just didn't want to have to compile junk 17:53:01 I'm 4.3-142 on this cluster. 17:54:01 erlang v22 18:08:11 You say easy... I say "is it time to learn erlang?" haha 18:08:57 lol...that's what i said about 2 years ago.. massive learning curve :) 18:09:19 haha 18:09:27 I think I'd pay someone to made the mods at this point. 18:09:40 happy to discuss :) 18:10:01 Like, I may be willing to spend a day working to figure it out. But, if I can't do it in a day... 18:50:24 nice one, barney__; re account billing patch 18:53:15 thanks gontran 18:56:14 if you and Ysean are discussing a deal for updating the telnyx integration, would you bring me into the conversation? either my day job or myself may be interested to contribute time or monies. 18:56:55 I'm not opposed 19:00:05 cool; if you all get discussing via IRC, please bring me in; otherwise feel free to hit me up on `gontran⊙lc` 19:28:53 gontran, speak with barney__ 20:44:04 mc_ can I assume that an account id and user id always be unique ? 21:31:21 mc_ next question, what would you say was the fastest/best way to check an account exists? kzd_accounts:fetch(AccountId) 23:03:08 barney__: yes, we use 32 char alpha-numeric strings, so 36^32 ~= 6.334028666297328e49 combinations 23:04:03 barney__: if you just want existence, kz_datamgr:db_exists/1 23:04:21 if you want the account doc or not_found, fetch is good