[Asterisk-Users] SIP Extensions

Ron Ramos ron at silverbackasp.com
Thu Oct 21 03:41:51 MST 2004


Thanks, so I really need to define it one by one. I just thought that
there maybe
some kind of configuration on sip.conf

Thanks again.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of sjaak
nabuurs
Sent: Thursday, October 21, 2004 9:02 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] SIP Extensions


Hello Ron Ramos
With the power of bash it's easy

copy this code to a file name it createsip.sh

--------------------------------------------
#!/bin/bash

for ((i=2000 ; i < 8000; i++ )); do
echo "[$i]"
echo "secret=$i"
echo "type=friend"
echo "username=$i"
echo ""
done
--------------------------------------------


chmod 700 createsip.sh
./createsip.sh >> /etc/asterisk/sip.conf
and your done

Thats all


>Hi All,
>
>How can I be able to define multiple SIP extensions?
>Do I have to define each extensions on sip.conf?
>
>
>For example, extension 2000-8000, do I have to define it one by one on 
>sip.conf?
>
>[2000]
>secret=2000
>type=friend
>username=user2000
>..
>..
>
>[2001]
>secret=2001
>type=friend
>username=user2001
>..
>..
>..
>..
>..
>[8000]
>
>Is there a way I can define multiple extensions
>like...
>
>[_2XXX]
>..
>..
>..
>[_8XXX]
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com 
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>  
>


_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list