<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);">
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="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> cisco-voip <cisco-voip-bounces@puck.nether.net> 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 <w@woka.us><br>
<b>Cc:</b> voip puck <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>
<style type="text/css">
<!--
p.x_MsoNormal, p.x_MsoNoSpacing
{margin:0}
-->
</style>
<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=">
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_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_qt-gmail_quote">
<div class="x_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_qt-gmail_quote" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0.8ex; border-left-color:rgb(204,204,204); border-left-style:solid; border-left-width:1px; 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">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=">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</div>
</blockquote>
</div>
</blockquote>
<div><br>
</div>
<div id="x_sig91721560">
<div class="x_signature"><br>
</div>
<div class="x_signature">Thanks,<br>
</div>
<div class="x_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>
</body>
</html>