<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I've never really tried an all in one statement like that but good to know you can't do that. Maybe someday. I just assumed you could... <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Some of the change controls we have strongly suggest that we keep a log of devices being updated so that there's a way to rollback a DB update. I end up with a logfile of 100s of update statements which is easier to have someone else rollback (since I give
them the opposite version.) I would try doing that with AXL instead. Get the devices to update and then update them in fixed batches.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Anthony Holloway <avholloway+cisco-voip@gmail.com><br>
<b>Sent:</b> Wednesday, September 11, 2019 9:12 AM<br>
<b>To:</b> Tucci, Ben <btucci1@paychex.com><br>
<b>Cc:</b> Cisco VoIP List <cisco-voip@puck.nether.net><br>
<b>Subject:</b> Re: [cisco-voip] Where does CUCM/informix store the recordingMediaSource and recordingFlag for phones/lines?</font>
<div> </div>
</div>
<div>
<div dir="ltr">"... You could update based on criteria after joining..."
<div><br>
</div>
<div>Keep in mind that you cannot use UPDATE with JOIN on CUCM, due to the level of DB CUCM uses from Informix. Just a limitation we have to deal with, and an unfortunate one. I'm not sure if that's exactly what you were saying or getting at, but wanted to
point that out nonetheless, because it may not be well known.</div>
<div></div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, Sep 11, 2019 at 10:26 AM Tucci, Ben via cisco-voip <<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
That should be tkpreferredmediasource on the devicenumplanmap; which is where the line info is stored for a given device. You could update based on criteria after joining the device on fkdevice or the dnorpattern fron numplan (fknumplan.)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<span style="font-family:Consolas,Courier,monospace">sql select * from typepreferredmediasource</span><span><br>
</span>
<div><span style="font-family:Consolas,Courier,monospace">enum name moniker</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">==== ================= ==============================</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">1 Gateway Preferred PREFERRED_MEDIA_SOURCE_GATEWAY</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">2 Phone Preferred PREFERRED_MEDIA_SOURCE_PHONE</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace"><br>
</span></div>
<div><span style="font-family:Consolas,Courier,monospace"><span>sql select FIRST 1 pkid, fkdevice, tkpreferredmediasource from devicenumplanmap<br>
</span>
<div>pkid fkdevice tkpreferredmediasource<br>
</div>
<div>==================================== ==================================== ======================<br>
</div>
<div>00045024-647d-453d-a281-e3ccc5556fc7 4bb930c6-0cd3-cdbd-8080-39e624bf8028 1<br>
</div>
<div><br>
</div>
<span></span><br>
</span></div>
<span></span><br>
</div>
<div id="x_gmail-m_2136676864857094952appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_gmail-m_2136676864857094952divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> cisco-voip <<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a>>
on behalf of Nick Barnett <nick@barnett.email><br>
<b>Sent:</b> Wednesday, September 11, 2019 8:12 AM<br>
<b>To:</b> Charles Goldsmith <<a href="mailto:w@woka.us" target="_blank">w@woka.us</a>><br>
<b>Cc:</b> voip puck <<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a>><br>
<b>Subject:</b> Re: [cisco-voip] Where does CUCM/informix store the recordingMediaSource and recordingFlag for phones/lines?</font>
<div> </div>
</div>
<div>
<div>Valid question. We hit bug <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__bst.cloudapps.cisco.com_bugsearch_bug_CSCvr11455_-3Frfs-3Diqvred&d=DwMFAg&c=RyOedRvjc7OSsfc0bTI76Q&r=7N3S3VwV170meOMF2t3MxSPtfF4yZYjo-cGnk0FWjNE&m=Tc1mvbrADjg7eEZZsrSTqiBiUna2bqF5EyNQb0MY3Xs&s=Pn3GCVMLbpN4HdI98Tj9dFeAuDLszykflweRcgxKzJY&e=" target="_blank">
CSCvr11455 </a>a week ago and it crippled our company for a few days because it broke A Cisco DB and affected Extension Mobility. We are in an "enhanced" change freeze window until Cisco can get us a patch. Just trying to keep this other project rolling while
we're stuck on the support side. The last time I exported all phones it took almost a full day and I can't risk that right now. This option would definitely work in most cases.<br>
</div>
<div><br>
</div>
<div>Not to mention, I need to automate some stuff for this switchover, so I'd like to understand what I'm dealing with.<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div>Nick<br>
</div>
<div><br>
</div>
<div>On Wed, Sep 11, 2019, at 9:59 AM, Charles Goldsmith wrote:<br>
</div>
<blockquote type="cite" id="x_gmail-m_2136676864857094952x_qt">
<div dir="ltr">I don't have an answer to your question, but why not just export all phones and filter that column in excel?<br>
</div>
<div><br>
</div>
<div class="x_gmail-m_2136676864857094952x_qt-gmail_quote">
<div class="x_gmail-m_2136676864857094952x_qt-gmail_attr" dir="ltr">On Wed, Sep 11, 2019 at 9:57 AM Nick Barnett <nick@barnett.email> wrote:<br>
</div>
<blockquote class="x_gmail-m_2136676864857094952x_qt-gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div><u></u><br>
</div>
<div>
<div>We're changing our recording platform and have to move from BiB Phone Preferred to Gateway Preferred. I know we have many phones already (erroneously) set to gateway preferred. The way we are set up, this isn't causing an issue but will in the future.
I need to find out how many phones we have set this way. I can't find a way to search on this setting, so I turned to SQL and AXL.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>When working with the AXL API, I can use a getPhone call and pull down the appropriate config. I can also use an updatePhone call to change the recording media source from "Phone Preferred" to "Gateway Preferred" and recordingFlag to and from "Automatic
Call Recording Enabled" and "Selective Call Recording Enabled." When I look at the numplan, device and devicenumplanmap, I don't see where the recording media source or recordingFlag are stored.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I've tried pulling down the rows of the previously mentioned tables via a SQL select, then changing the settings in CUCM and pulling the same tables down to see if anything changed. Nothing changes so I think it has to be storing somewhere else or I'm
doing something wrong.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Does anyone have either a SQL query I can look at that shows how this is stored, or a better understanding of how this parts works? Maybe there is a way to do this in CUCM that I'm unaware of?<br>
</div>
<div><br>
</div>
<div>Thanks in advance,<br>
</div>
<div>Nick<br>
</div>
</div>
<div>_______________________________________________<br>
</div>
<div>cisco-voip mailing list<br>
</div>
<div><a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
</div>
<div><a rel="noreferrer" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__puck.nether.net_mailman_listinfo_cisco-2Dvoip&d=DwMFAg&c=RyOedRvjc7OSsfc0bTI76Q&r=7N3S3VwV170meOMF2t3MxSPtfF4yZYjo-cGnk0FWjNE&m=Tc1mvbrADjg7eEZZsrSTqiBiUna2bqF5EyNQb0MY3Xs&s=vHBsqS1qI_M3ekBL2LI2JahNnHqJTZ05dJkLJmp4dcI&e=" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</div>
</blockquote>
</div>
</blockquote>
<div><br>
</div>
<div id="x_gmail-m_2136676864857094952x_sig91721560">
<div class="x_gmail-m_2136676864857094952x_signature"><br>
</div>
<div class="x_gmail-m_2136676864857094952x_signature">Thanks,<br>
</div>
<div class="x_gmail-m_2136676864857094952x_signature">Nick<br>
</div>
</div>
<div><br>
</div>
</div>
<hr>
The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer.
Thank you.<br>
</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://urldefense.proofpoint.com/v2/url?u=https-3A__puck.nether.net_mailman_listinfo_cisco-2Dvoip&d=DwMFaQ&c=RyOedRvjc7OSsfc0bTI76Q&r=7N3S3VwV170meOMF2t3MxSPtfF4yZYjo-cGnk0FWjNE&m=l71QjE_epfORo-fP_vud9yP9cU6VJjJeLJ7YbRXxur0&s=Ky2iOpyvMvl-4fuY_mLQH8sSNZMMKAjO8RBpsHAXJEk&e=" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</blockquote>
</div>
</div>
</body>
</html>