digitauusa Posted June 3, 2018 Report Share Posted June 3, 2018 Hello Guys, New to this forum, was told by 2600hz.org that this would be a great place to start. We have completed the install of the open source platform, however, we do not see an option to add phone numbers in to the spare numbers form. Curios as to if anyone knows what I need to do to enable adding phone numbers in to the spare account of numbers? Also, how do we obtain credentials for api requests to start building the platform out? https://docs.2600hz.com/supported/#introduction-to-crossbar-rest-apis Link to comment Share on other sites More sharing options...
amn Posted June 3, 2018 Report Share Posted June 3, 2018 (edited) Not sure what you mean by not being able to add numbers. I just went to Number Manager > +Add and was able to add a number. To read about the API you can use these docshttps://github.com/2600hz/kazoo/tree/master/applications/crossbar/doc Maybe start here for credentialshttps://docs.2600hz.com/sysadmin/doc/install/configure_kazoo/https://github.com/2600hz/kazoo/blob/master/applications/crossbar/doc/basic_auth.md You will probably want to look at using PostMan which can automate a lot of the things such as using credentials.https://docs.2600hz.com/ui/docs/using-postman-as-a-crud/ Edited June 3, 2018 by amn (see edit history) Link to comment Share on other sites More sharing options...
digitauusa Posted June 3, 2018 Author Report Share Posted June 3, 2018 When I go to the number management, It does not show the + Add, I have attached a screenshot of the screen. Link to comment Share on other sites More sharing options...
digitauusa Posted June 3, 2018 Author Report Share Posted June 3, 2018 # User/Pass credentials hash echo -n "{USERNAME}:{PASSWORD}" | md5sum {MD5_HASH} - # Copy the {MD5_HASH} and create an Auth Token curl -v -X PUT -H "content-type:application/json" \ -d '{"data":{"credentials":"{MD5_HASH}","account_name":"{ACCOUNT_NAME}"}}' \ http://ip.add.re.ss:8000/v2/user_auth | python -mjson.tool # Export the "auth_token" and "account_id" for easy use in later API requests export AUTH_TOKEN="{AUTH_TOKEN}" export ACCOUNT_ID="{ACCOUNT_ID}" This where I tried to start with, however, it gives me this following issue: Link to comment Share on other sites More sharing options...
amn Posted June 3, 2018 Report Share Posted June 3, 2018 Are you logged in as the top (superduper) user in master account? You should see "+Add" option in Number Manager but I believe you only see that if you are superadmin or superduper. If it says invalid credentials then there is (obviously) something wrong with your credentials. Make sure you are generating a hash using the proper user/pass. That screen shot is not telling me anything. It looks like you are missing all the important bits at the beginning such as the generation of the user hash etc and then the actual curl command. Link to comment Share on other sites More sharing options...
digitauusa Posted June 4, 2018 Author Report Share Posted June 4, 2018 Ok, how would I log in as a superadmin or superduper? I have logged in as the account I created during installation as root. Link to comment Share on other sites More sharing options...
digitauusa Posted June 4, 2018 Author Report Share Posted June 4, 2018 I was logged in a super user, please see attached a copy of database which shows superduper as true. Not sure if this help much, just not sure what to do. Link to comment Share on other sites More sharing options...
2600Hz Employees ... Posted June 5, 2018 2600Hz Employees Report Share Posted June 5, 2018 On 6/3/2018 at 10:45 AM, digitauusa said: When I go to the number management, It does not show the + Add, I have attached a screenshot of the screen. In order to add spare numbers to an account, you need to buy them. To do so, just click the `Buy` button corresponding to the account to which you want to add spare numbers to, and pick the number type and area code. Once that's done, the numbers will be listed as spare numbers under the account you chose when buying them. Link to comment Share on other sites More sharing options...
digitauusa Posted June 5, 2018 Author Report Share Posted June 5, 2018 Ok, got the numbers in the system. Can’t seem to get a yealink t40g to register, any guidance as to why it would continue trying to register instead of failing registration or registering. Thank you. Link to comment Share on other sites More sharing options...
2600Hz Employees mc_ Posted June 5, 2018 2600Hz Employees Report Share Posted June 5, 2018 Please open a new thread and include logs related to the registration attempt, how you created the device and callflow, and anything else that might be relevant. Link to comment Share on other sites More sharing options...
digitauusa Posted June 7, 2018 Author Report Share Posted June 7, 2018 Ok, Thank you. I have opened a new thread on this. Link to comment Share on other sites More sharing options...
Recommended Posts