Jump to content

Mass DID creation


impiantitel
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...