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:[EMAIL PROTECTED] 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 "[EMAIL PROTECTED]"

                        # 128 means FL_PERSISTENT is on
fifo_cmd ul_add "$USRLOC_TABLE" "[EMAIL PROTECTED]" "$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 <[EMAIL PROTECTED]>:

Hi
Is it possibile to change the q-value of a contact with openserctl command?

Matteo Piazza

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users








--
=======================================
 Matteo Piazza, Junior Researcher
 CREATE-NET
 Via Solteri, 38 - 38100 Trento - Italy
 email: [EMAIL PROTECTED]
 Tel: +39-0461-408400ext:308
 www.create-net.it
=======================================

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to