No subject
Thu Jan 29 11:41:19 CET 2009
DB and doesn't do any kind of fifo. I don't use subscribers much, so my
ability to offer suggestions is limited.
but if you look in opensipsctl, you'll see what it's doing, and I'm sure yo=
u
could just mimic that same bits in your higher level app. Be sure not to
miss the function calls in the script ie: "credentials"
---&<-- snip---
add)
if [ $# -ne 3 ] ; then
usage_subscriber
exit 1
fi
shift
credentials $1 $2
is_user $1
if [ $? -eq 0 ] ; then
minfo "user '$1' already exists"
exit 1
fi
set_user $1
check_alias $OSIPSUSER $OSIPSDOMAIN
if [ "$ALIAS_EXISTS" =3D "1" ] ; then
minfo "user '$1' already exists as alias"
exit 1
fi
if [ "$STORE_PLAINTEXT_PW" =3D "1" ] ; then
PASS=3D"$2"
else
PASS=3D""
fi
QUERY=3D"insert into $SUB_TABLE ($SUBSCRIBER_COLUMN=
,\
$REALM_COLUMN,$HA1_COLUMN,$HA1B_COLUMN,$PASSWORD_COLUMN) \
values
('$OSIPSUSER','$OSIPSDOMAIN','$HA1','$HA1B','$PASS');";
$DBCMD "$QUERY"
if [ $? -ne 0 ] ; then
merr "introducing the new user '$1' to the
database failed"
else
mecho "new user '$1' added"
fi
;;
On Thu, May 14, 2009 at 9:23 AM, Matti Zemack
<Matti.Zemack at rtcfactory.com>wrote:
> Hi all,
>
>
>
> How do you all add new subscribers to your systems?
>
> Today we do it by calling =93opensipsctl add sdhgsd at asdjkhsd djhjhd=94 f=
rom
> our admin-php.
>
> Looking through the code of opensipsctl it seems to make an SQL query
> inserting the new user straight into the Databse without passing FIFO or
> such.
>
>
>
> Does there exist a more =93modern=94 way of doing this or is this the pro=
cedure
> used nowadays?
>
>
>
> BTW, Anyone interested in the final PHP code of triggering a reboot of
> Linksys and Grandstream using XML-RPC, just let me know. Actually also so=
me
> code of reboot of Siemens devices, although not through opensips.
>
>
>
> Best Regards,
>
> Matti Zemack, Stockholm, Sweden
>
>
>
>
>
>
>
>
>
> *RTC Factory AB*
>
> Jungfrugatan 6
>
> 114 44 Stockholm
>
> SWEDEN
>
>
>
> Tel: +46-8 410 420 03
>
> SMS: +46-709 625 173
>
> Fax: +46-8 410 420 49
>
> Email: matti.zemack at rtcfactory.com
>
>
>
>
>
> *RTC Factory is a global communications provider, targeting virtual
> operators and ISPs. RTC Factory provides =93Communication as a Service=94=
:
> basically the equivalent of Google=92s GrandCentral combined with Skype a=
nd
> Rebtel functionality. These IP-based services are hosted and provided wit=
hin
> a white-label framework, and sold through the provider=92s regular sales
> channels.*
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--0015174c334e606af30469e03dfa
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
More information about the Users
mailing list