[Users] to change q-value in real time
Matteo Piazza
matteo.piazza at create-net.it
Fri Dec 16 10:39:39 CET 2005
Ok, but maybe It is most indicated to write a script with both command
the old and the new, so If you use the old command the q-value is fixed
to 1.00, otherwise if you use a new command you can insert the q-value
between 1.00 - 0.00.
Matteo
Daniel-Constantin Mierla wrote:
> Hi Matteo,
>
> could you generate a patch (it is easier to integrate) and post it to
> the tracker (http://sourceforge.net/tracker/?group_id=139143) not to get
> lost in this period before Christmas holidays?
>
> Cheers,
> Daniel
>
>
> On 12/16/05 11:06, Matteo Piazza wrote:
>
>> Ok,
>> but the problem is that the q-value is fixed to 1.00 so I have modify
>> the openserctl script:
>> I insert another variable in the command fifo ul_add
>> and the q-value is the third variable, so If you want insert a new
>> contact the new line command is:
>> # opneserctl ul add 309 sip:400 at 192.168.9.97 0.80
>> ===========================================================
>>
>> add)
>> if [ $# -ne 4 ] ; then
>> usage
>> exit 1
>> fi
>> shift
>> check_uri "$2"
>> set_user $1
>>
>> if [ "$?" -ne "0" ] ; then
>> echo "$2 is not a valid URI"
>> exit 1
>> fi
>>
>> if [ "$CHECK_SUB" -ne 0 ] ; then
>> is_user $1
>> if [ $? -eq 0 ] ; then
>> echo overlap of alias with an
>> existing subscriber name
>> exit 1;
>> fi
>> fi
>>
>> check_alias "$SERUSER@$SERDOMAIN"
>>
>> # 128 means FL_PERSISTENT is on
>> fifo_cmd ul_add "$USRLOC_TABLE"
>> "$SERUSER@$SERDOMAIN" "$2" "0" "$3" "0" "128"
>> exit $?
>>
>>
>>
>>
>>
>>
>>
>>
>> samuel wrote:
>>
>>> I wouldn't do that...but if you really know what you are doing, you
>>> can try
>>> openserctl fifo ul_rm <user>
>>> openserctl fifo ul_add .....
>>>
>>> Check for the sintax in older threads...
>>>
>>> Samel.
>>>
>>> 2005/12/15, Matteo Piazza <matteo.piazza at create-net.it>:
>>>
>>>> Hi
>>>> Is it possibile to change the q-value of a contact with openserctl
>>>> command?
>>>>
>>>> Matteo Piazza
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at openser.org
>>>> http://openser.org/cgi-bin/mailman/listinfo/users
>>>>
>>>
>>>
>>
>>
>
--
=======================================
Matteo Piazza, Junior Researcher
CREATE-NET
Via Solteri, 38 - 38100 Trento - Italy
email: matteo.piazza at create-net.it
Tel: +39-0461-408400ext:308
www.create-net.it
=======================================
More information about the sr-users
mailing list