Discussion:
[SR-Users] Serial forking & q value
Marino Mileti
2014-10-03 14:43:50 UTC
Permalink
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:***@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
Daniel-Constantin Mierla
2014-10-10 09:19:08 UTC
Permalink
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
Post by Marino Mileti
Hi guys,
I've tried with success to implement serial forking based on q value
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
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...