[asterisk-users] Add volume sip accounts

David fire ddfire at gmail.com
Sat Dec 6 06:13:30 CST 2008


you should read the asterisk bible...
http://www.digium.com/elqNow/elqRedir.htm?ref=http://downloads.oreilly.com/books/9780596510480.pdf

use templates, you can use them in ANY config file.

for example sip.conf

[model-user](!); the (!) told asterisk this is a template
host=dynamic
allow=gsm
secret=1234
;more parameters
;more parameters
;more parameters
;the template finish when other mark start in this case [6000]

[6000](model-user); the (model-user) tell asterisk to use the template
model-user
[6001](model-user)
[6002](model-user)
secret=56789665 ; you change just this parameter, only to this user
[6003](model-user)
[6004](model-user)
.
.
.
.
[6199](model-user)


you can use openoffice calc to make the list if you are to lazy to make a
bash script, i do that :)

David


2008/12/6 Alex Balashov <abalashov at evaristesys.com>

> Generate with script.
>
> Mike Li wrote:
>
> > Hi, all
> >
> > I want to add more than 200 sip accounts into sip.conf, username from
> > 6000 to 6199, password is the same, i remember there is a better way to
> > do this case, however, i have not searched the method yet.
> >
> > Anybody can tell me this method, TIA.
> >
> >
> > BR
> > Mike Li
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> Alex Balashov
> Evariste Systems
> Web    : http://www.evaristesys.com/
> Tel    : (+1) (678) 954-0670
> Direct : (+1) (678) 954-0671
> Mobile : (+1) (706) 338-8599
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081206/39084f9d/attachment.htm 


More information about the asterisk-users mailing list