Jump to content

Recommended Posts

Posted

So, I am trying to auto attach a device during extension creation through the API.

image.png.36fa3786a65b8a8073213c05cf9a8cda.png

 

There is a "mac" parameter, but there are there vendor and model parameters?

Thanks!

Posted

After creating the extension with the MAC, you can set the vendor and model like this.

curl -u admin:password -D - http://127.0.0.1/rest/domain/localhost/macs -X POST -d '{"mac":"001565123456","vendor":"Yealink","model":"T26P"}'

You can see it "in action" in /dom_macs.htm

Posted

Yea keeping the API documentation up to date is a sisyphean task... For the tasks that you can do from the web front end, I would always just take a look at the browser PBX interaction and replicate it with curl or whatever you are using.

Posted

That's exactly what I have been doing actually. I just leave console open and examine the network tab for any api calls I want to replicate. 

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.

×
×
  • Create New...