<div dir="ltr">You tease!<div><br></div><div>Just kidding, thanks for sharing this. Did you just get this from the logs then? Or some other dark magic?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 1, 2020 at 11:02 PM Brian Meade <<a href="mailto:bmeade90@vt.edu">bmeade90@vt.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Lelio,<div><br></div><div>I'm actually starting to work on creating some Python scripts to allow bulk using the Quick User/Phone Add feature such as using it to add Jabber devices for all users very quickly. I'm also going to use this for bulk deploying Remote Destination Profiles/Device Profiles.</div><div><br></div><div>I'm not sure if I'll share the full code or keep that internal to ePlus but I'll share some of my findings around how these internal/non-documented API's seem to be working behind the scenes.</div><div><br></div><div>Create a DN with a specific line template:</div><div><p style="margin:0in;font-family:Calibri;font-size:11pt">POST https://<CUCM>/ucmadmin/directorynumber/addDn/
HTTP/1.1</p><p style="margin:0in;font-family:Calibri;font-size:11pt">Body:</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">{"dnorpattern":"8888888888","universallinetemplate":"3a63b9c6-e867-4a37-82ca-9f5ad55d515c"}</p></div><div><br></div><div>200 OK response will contain the PKID of the new Directory Number.</div><div><br></div><div>Set Primary Extension. Replace PKID after /enduser/ with PKID of the end user, fknumplan/sortorder is the important part.</div><div>This one may be easier to set via AXL API instead.</div><div><p style="margin:0in;font-family:Calibri;font-size:11pt">PUT https://<CUCM>/ucmadmin/enduser/98735c00-12d6-6e16-f985-7778d05806b1
HTTP/1.1</p><p style="margin:0in;font-family:Calibri;font-size:11pt">Body:</p>
<p style="margin:0in;font-family:Calibri;font-size:11pt">{"externData":{"groupAssociations":[],"extensions":[{"pkid":"","fknumplan":"f8cfccf4-a37a-37f9-3b68-e3fa71eb5522","sortorder":1,"lineDirectoryURI":{"fknumplan":"f8cfccf4-a37a-37f9-3b68-e3fa71eb5522","directoryuri":"","fkroutepartition":"","isprimary":false}}]},"credentialInfo":{"useDefaultCredential":false,"password":null,"passwordConfirm":null,"pin":null,"pinConfirm":null},"pkid":"98735c00-12d6-6e16-f985-7778d05806b1","firstname":"Brian","middlename":"","displayname":"","lastname":"Meade","userid":"bmeade-test","fkdirectorypluginconfig":null,"fkfeaturegrouptemplate":"41128559-bd7b-93cc-1166-01acf5b5bd4d","fkucuserprofile":"b2d3d9d0-a6bd-0136-d54f-bfee73f3ed74","userRank":"1","directoryuri":"","telephonenumber":"","mailid":"","manager":"","department":""}</p><p style="margin:0in;font-family:Calibri;font-size:11pt"><br></p><p style="margin:0in;font-family:Calibri;font-size:11pt"><br></p><p style="margin:0in;font-family:Calibri;font-size:11pt">Find a phone to move to a user. Replace PKID in POST URI with PKID of end user. Device list shows PKID of device you want to move:</p><p style="margin:0in;font-family:Calibri;font-size:11pt">POST https://<CUCM>/ucmadmin/enduser/movePhones/98735c00-12d6-6e16-f985-7778d05806b1
HTTP/1.1</p><p style="margin:0in;font-family:Calibri;font-size:11pt">Body:</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
</p><p style="margin:0in;font-family:Calibri;font-size:11pt">{"devicelist":[{"pkid":"3784d3e8-62c9-4b26-bfaa-1e7c741511bd"}]}</p><p style="margin:0in;font-family:Calibri;font-size:11pt"><br></p><p style="margin:0in;font-family:Calibri;font-size:11pt"><br></p><p style="margin:0in;font-family:Calibri;font-size:11pt">Add a new phone for a user. Replace PKID in POST with PKID of end user. Replace device template PKID with the device template you want to use. tkproduct is the model number from the typeproduct table. isProfile is used to say it's a device profile for extension mobility:</p><p style="margin:0in;font-family:Calibri;font-size:11pt">POST https://<CUCM>/ucmadmin/enduser/addPhone/98735c00-12d6-6e16-f985-7778d05806b1
HTTP/1.1</p><p style="margin:0in;font-family:Calibri;font-size:11pt">Body:</p><p style="margin:0in;font-family:Calibri;font-size:11pt">
</p><p style="margin:0in;font-family:Calibri;font-size:11pt">{"tkproduct":"30041","tkdeviceprotocol":"0","name":"SEPBMEADE","fkcommondevicetemplate":"580497c1-15e1-4e27-91ef-6f1e00f2e417","isprofile":"f","moduleCount":0}</p><p style="margin:0in;font-family:Calibri;font-size:11pt"><br></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 1, 2020 at 2:06 PM Lelio Fulgenzi <<a href="mailto:lelio@uoguelph.ca" target="_blank">lelio@uoguelph.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello all. Looking for feedback and opinions and caveats. <br>
<br>
Right now, we’re deploying Jabber only to those with phones/DNs. But, we need to start deploying Jabber for those individuals without phones/DNs. <br>
<br>
Our SOPs include using Quick Add feature. (Thanks a million time Brian Meade for the pointer). <br>
<br>
My choices so far, to address Jabber for new those without phones:<br>
<br>
(a) Create a fake hardware phone first. This has many benefits, namely, all SOPs remain the same. Hardware phone would be deleted afterwards. <br>
<br>
(b) Use Directory Number admin page to create/update a DN first, then use Quick Add page to assign DN to user accordingly and then click manage devices and follow remaining SOP steps. <br>
<br>
(c) create line templates and use those when creating new extensions under quick add. The issue with this is we have so many combinations, I’d need a lot of templates. <br>
<br>
I’m leaning towards (b), since it gives me the best of both worlds. <br>
<br>
Thoughts? <br>
<br>
Lelio<br>
<br>
Sent from my iPhone<br>
_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</blockquote></div>
_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</blockquote></div>