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@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@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