<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Sven,<br>
<br>
Well, to prevent fields from being required you have to do a very
simple thing:<br>
- edit the file :
/var/www/opensips-cp/web/tools/users/user_management/lib/user_management.test.inc.php<br>
- for example, if you want to stop alias username from being required
just comment the following lines :<br>
&nbsp;&nbsp;&nbsp; <br>
<pre><span class="hl kwa">if</span> <span class="hl sym">(</span><span
 class="hl kwc">$form_valid</span><span class="hl sym">)</span>
<span class="hl line"> </span>   <span class="hl kwa">if</span> <span
 class="hl sym">(</span><span class="hl kwc">$alias</span><span
 class="hl sym">==</span><span class="hl str">""</span><span
 class="hl sym">) {</span>
<span class="hl line"></span>         <span class="hl kwc">$form_valid</span><span
 class="hl sym">=</span>false<span class="hl sym">;</span>
<span class="hl line"></span>         <span class="hl kwc">$form_error</span><span
 class="hl sym">=</span><span class="hl str">"- invalid &lt;b&gt;Alias&lt;/b&gt; field -"</span><span
 class="hl sym">;</span>
<span class="hl line"></span>    <span class="hl sym">}

You can do the same for the other fields - just find them (the names are very intuitive) and comment the lines above.
Unfortunately, for now, there is no way of "configuring" what fields are required and what fields are not.
Hope this helps you !

Regards,
Alex
</span>
</pre>
On 5/18/2010 23:21, Sven Schulz wrote:
<blockquote cite="mid:C8186EED.1B74A%25svens@psu.edu" type="cite">
  <title>Opensips-CP Required Fields</title>
  <font face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;">Running opensips 1.6.2 and opensips-cp 4.0 <br>
  <br>
I would like to prevent certain required fields in opensips-cp from
being... required. For example, when adding a new user (Users -&gt;
Users Management-&gt; Add new user) I don&#8217;t want alias username and
email to be a required field. Where can I set this up?<br>
  <br>
  <br>
  </span></font><span style="font-size: 11pt;"><font
 face="Optima, Times New Roman">Sven Schulz<br>
Penn State University<br>
Telecommunications and Network Services<br>
  <br>
  </font><font face="Calibri, Verdana, Helvetica, Arial"><br>
  </font></span>
  <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated"
 href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext"
 href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Alex Ionescu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a> </pre>
</body>
</html>