[SR-Users] Serial forking & q value

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 10 11:19:08 CEST 2014


Hello,

you can use sqlops to retrieve data from any database table, with the 
structure you want. Then with append_branch() function and $branch(...) 
variable, you have the options to add branches and update their specific 
attributes with the values retrieved from database.

Cheers,
Daniel

On 03/10/14 16:43, Marino Mileti wrote:
> Hi guys,
>
> I've tried with success to implement serial forking based on q value 
> (i've followed documentation) with the istruction:
>
> append_branch("sip:b at example.com", "0.5");
>
> Now my questions are:
>
> is it possible to import URI from db?
> is it possible to import q value from db too?
>
> I would like to change the q value based, for example, on "night & 
> day"; so it would be nice if I can store it on DB and then load it 
> dinamically when i need.
> For the first question I think that it's possible with dbaliases for 
> example...but I don't know how get a q value for each contact :)
>
> Marino
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141010/059231fe/attachment.html>


More information about the sr-users mailing list