[Serusers] how to sort data retrieved from avp_db_load in avpops module

Juha Heinanen jh at tutpro.com
Sun Mar 20 14:04:43 CET 2005


PHAN, Quang-Minh (Docteur Ordinateur) writes:

 >     I want to implement serial forking with avpops module and I have this
 > problem. The set of destinations for each user is stored in a database and I
 > use apv_db_load to load it. However, I couldn't find a way to sort them in
 > the right order. For example, I cant tell SER to try destination A before B,
 > then C because there is no way to specify this in the database. 

if you use location table to store the destinations, then you can use
lcr module to implement serial forking according to q value.

 > Another
 > feature I want to implement is to allow a client to specify a timeout for a
 > destination. Eg. Try A for x seconds, then try B for y seconds, then
 > try C.

lcr module has a timer variable that is used to timeout all but the
last destination.

-- juha




More information about the sr-users mailing list