[Devel] Patch for sc (lcr scripts)

osas at somanetworks.com osas at somanetworks.com
Mon Nov 21 19:33:27 CET 2005


Hi,

The patch was submitted to the tracker:
http://sourceforge.net/tracker/index.php?func=detail&aid=1362813&group_id=139143&atid=743022
Once it's integrated, I can help by testing it.


-ovi

> Hello,
>
> thanks for the patch. Please generate it in the unified format, to be
> easy to apply.
>
> cvs diff -u -r1.6 sc
>
> The add it to the tracker, in the patches section, to have it listed
> there for review (not to get lost in the mailing list)
> http://sourceforge.net/tracker/?group_id=139143
>
> Cheers,
> Daniel
>
>
> On 11/18/05 17:54, Ovidiu Sas wrote:
>> 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
>> ------------------------------------------------------------------------
>>
>> 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');"
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/devel
>>>






More information about the Devel mailing list