you should read the asterisk bible...<br><a href="http://www.digium.com/elqNow/elqRedir.htm?ref=http://downloads.oreilly.com/books/9780596510480.pdf">http://www.digium.com/elqNow/elqRedir.htm?ref=http://downloads.oreilly.com/books/9780596510480.pdf</a><br>
<br>use templates, you can use them in ANY config file.<br><br>for example sip.conf<br><br>[model-user](!); the (!) told asterisk this is a template<br>host=dynamic<br>allow=gsm<br>secret=1234<br>;more parameters<br>;more parameters<br>
;more parameters<br>;the template finish when other mark start in this case [6000]<br><br>[6000](model-user); the (model-user) tell asterisk to use the template model-user<br>[6001](model-user)<br>[6002](model-user)<br>secret=56789665 ; you change just this parameter, only to this user<br>
[6003](model-user)<br>[6004](model-user)<br>.<br>.<br>.<br>.<br>[6199](model-user)<br><br><br>you can use openoffice calc to make the list if you are to lazy to make a bash script, i do that :)<br><br>David<br><br><br><div class="gmail_quote">
2008/12/6 Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Generate with script.<br>
<div><div></div><div class="Wj3C7c"><br>
Mike Li wrote:<br>
<br>
&gt; Hi, all<br>
&gt;<br>
&gt; I want to add more than 200 sip accounts into sip.conf, username from<br>
&gt; 6000 to 6199, password is the same, i remember there is a better way to<br>
&gt; do this case, however, i have not searched the method yet.<br>
&gt;<br>
&gt; Anybody can tell me this method, TIA.<br>
&gt;<br>
&gt;<br>
&gt; BR<br>
&gt; Mike Li<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; &nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
--<br>
Alex Balashov<br>
Evariste Systems<br>
Web &nbsp; &nbsp;: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel &nbsp; &nbsp;: (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (706) 338-8599<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br> (\__/) <br>(=&#39;.&#39;=)This is Bunny. Copy and paste bunny into your <br>(&quot;)_(&quot;)signature to help him gain world domination. <br><br>