impiantitel Posted June 9, 2019 Report Share Posted June 9, 2019 hi, You can create DIDs one at a time on DID Management, can somehow mass DID creation be possible? if you have to create 1000 for example is a very long job one at a time Quote Link to comment Share on other sites More sharing options...
Support Posted June 10, 2019 Report Share Posted June 10, 2019 Yes, that's true but unfortunately it has to be manual at this point. Quote Link to comment Share on other sites More sharing options...
impiantitel Posted June 10, 2019 Author Report Share Posted June 10, 2019 I hope you'll consider an "automatism" With reference to the DID an application, Is it possible to differentiate each DID on the example day/night situation? scenario: DID 0343383222 -> 222 the customer would like that in the day that DID is intended for 222 and in the night the same DID goes in message of company closure. I don't understand if it is possible to associate a service flag or how? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted June 10, 2019 Report Share Posted June 10, 2019 You can always use curl to automate things - it is actually not very difficult. There is a web page for this https://api.vodia.com/ though it might not be perfect you get the idea. Quote Link to comment Share on other sites More sharing options...
impiantitel Posted June 10, 2019 Author Report Share Posted June 10, 2019 I'm not so good at using APIs, I just allowed myself to suggest to implement the mass addition of DIDs in the next versions. With reference to the possibility instead of managing the "day/night" for each DID? Quote Link to comment Share on other sites More sharing options...
Support Posted June 10, 2019 Report Share Posted June 10, 2019 Please use this API command to make new DID entries: (You have to fire this command from the terminal of your laptop) curl -u admin:password -D - http://pbx_ip_or_domain/rest/system/did -X POST -d "{'cmd':'add', 'did':'9999999', 'dom':'1', 'user':'2', 'outbound':'true'}" Everything else should be fairly self explanatory apart from these fields: "Dom" is the ID number of the domain (which you will have to find out before you begin to write API for the DID) which you can find using this: https://api.vodia.com/domains_lists_api (please crl + f for the word "id" to be more visible) "user" is the user to which you want to assign the DID to and that has an ID too. Which has to be found before hand using the same API page as above. Quote Link to comment Share on other sites More sharing options...
impiantitel Posted June 10, 2019 Author Report Share Posted June 10, 2019 I appreciate the effort, but this is a programmer's thing Quote Link to comment Share on other sites More sharing options...
Support Posted June 11, 2019 Report Share Posted June 11, 2019 Yes, your programmer should look into it if you need that functionality. But it's really not that difficult. It's just one simple command in a loop of 100 or 1000 depending on number of DID's you want implemented. Google for simple bash script should get this sorted real soon. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.