[Devel] Patch for sc (lcr scripts)
Ovidiu Sas
osas at somanetworks.com
Fri Nov 18 16:54:45 CET 2005
Hi all,
Here's a patch for sc "lcr addgw" command.
The QUERY command syntax was fixed.
The 'prefix' field was added as an optional parameter.
-ovi
-------------- next part --------------
Index: sc
===================================================================
RCS file: /cvsroot/openser/sip-server/scripts/sc,v
retrieving revision 1.6
diff -r1.6 sc
375,376c375,377
< lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id> .. add a gateway
< lcr rmgw <gw_name> ............................................ delete a gateway
---
> lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id> ........... add a gateway
> lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id> <prefix> .. add a gateway with prefix
> lcr rmgw <gw_name> ..................................................... delete a gateway
904c905
< port, uri_scheme, transport, grp_id
---
> port, uri_scheme, transport, grp_id, prefix
981c982
< if [ $# -ne 6 ] ; then
---
> if [ $# -lt 6 ] ; then
985a987,991
> if [ $# -gt 6 ] ; then
> GW_PREFIX=$7
> else
> GW_PREFIX=""
> fi
1009,1010c1015
< #QUERY="insert into $GW_TABLE VALUES ('$GW_NAME', $GW_IP, $GW_PORT, $GW_URI_SCHEME, $GW_TRANSPORT, $GW_GRP_ID);"
< QUERY="insert into $GW_TABLE VALUES ('$GW_NAME', $GW_IP, $GW_PORT, $GW_GRP_ID);"
---
> QUERY="insert into $GW_TABLE VALUES ('$GW_NAME', $GW_GRP_ID, $GW_IP, $GW_PORT, $GW_URI_SCHEME, $GW_TRANSPORT, '$GW_PREFIX');"
More information about the Devel
mailing list