<div dir="ltr"><div>Hi Tim, I know you are asking Pavan, but that is exactly how I tested, and it still failed with my previously documented error message.<br><br>Starting DN number can only contain digits when performing bulk insert.<br>
<br></div>Here is the source code which performs the validation on DN bulk insert. You should notice that the parseInt() function creates a number from a string, and therefore, "\+16125551212" would not pass this check. Possible feature enhancement? Maybe.<br>
<br><pre style> var startNum = parseInt(elStart.value);<br> var endNum = parseInt(elEnd.value);<br><br> if (isNaN(startNum))<br> {<br> showValidationError(elStart, 'Starting DN number can only contain digits when performing bulk insert.', 1);<br>
return false;<br> }<br><br> if (isNaN(endNum))<br> {<br> showValidationError(elEnd, 'Ending DN number can only contain digits when performing bulk insert.', 1);<br> return false;<br>
}<br> <br> // make sure start and end range is valid<br> if (startNum > endNum)<br> {<br> showValidationError(elStart, 'Invalid DN Range.', 1);<br> return false;<br>
}<br><br> // make sure no more than 500 DNs max can be inserted<br> var totaldn = endNum - startNum + 1;<br> if (totaldn > 500)<br> {<br> var msg = 'Invalid DN Range.';<br>
msg += 'Only 500 directory numbers can be inserted at one time.';<br> showValidationError(elStart, msg, 1);<br> return false;<br> }</pre> </div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Fri, Oct 4, 2013 at 8:56 AM, Tim Smith <span dir="ltr"><<a href="mailto:smithsonianwa@gmail.com" target="_blank">smithsonianwa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Oh also, can you escape the + in bulk insert?<div>I.e. \+</div><div><br></div><div>Cheers,</div><div><br></div><div><div class="im">Tim<br><br>On Friday, 4 October 2013, Pavan K wrote:<br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Folks,<br>
If i need to bulk insert 1000 sequential e164 directory numbers in ucm 9.1, what's the best way to do that ?</p>
<p dir="ltr">I can't use the bulk insert on the directory number page as it rejects numbers that start with +</p>
<p dir="ltr">I can't seem to use BAT as these numbers don't have phones associated with them and consequently no Mac addresses for bulk insert of DN.</p>
</blockquote></div></div></div>
<br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>