Re: [SR-Users] decimal fraction problem

2011-03-14 Thread Daniel-Constantin Mierla
Hello, cc-ing to the mailing list is very important because even it is an email to show the previous answer was good, that will help other people with similar problem that search on web and read the mailing list archive to know the proposed solution worked and they can use it without asking again

Re: [SR-Users] decimal fraction problem

2011-03-14 Thread Daniel-Constantin Mierla
Hello, are you using kamailio 3.1.x? If not, you have to upgrade, the $branch(...) variable was updated to be writable starting with this version. I played last week with it in a need of combining serial forking with parallel forking and all is ok with assigning values to $branch(...). Cheers, D

Re: [SR-Users] decimal fraction problem

2011-03-13 Thread 侯旭光
sorry to bother again $(branch(q)[-1]) = $var(q); this script line doesn't work and the pv $branch() aren't writable,just readable . index -1 is not accessable either. if append_branch() function doesn't take the q value parameter,the $branch(q) just return NULL (which I think is the default va

Re: [SR-Users] decimal fraction problem

2011-02-22 Thread Daniel-Constantin Mierla
Hello, On 2/21/11 10:28 AM, 侯旭光 wrote: Hello I need to add q value while using function append_branch(),but the function only takes decimal fraction as the parameter. What if I want to use pv to add q value? The $var and $avp just have string and integer type. Thanks a lot! do: km_append_b

[SR-Users] decimal fraction problem

2011-02-21 Thread 侯旭光
Hello I need to add q value while using function append_branch(),but the function only takes decimal fraction as the parameter. What if I want to use pv to add q value? The $var and $avp just have string and integer type. Thanks a lot! ___ SIP Express R

[SR-Users] decimal fraction problem

2011-02-21 Thread 侯旭光
Hello I need to add q value while using function append_branch(),but the function only takes decimal fraction as the parameter. What if I want to use pv to add q value? The $var and $avp just have string and integer type. Thanks a lot! ___ SIP Express R