Hi Juha,
I thought that LCR module is only used to try a list of PSTN gateways or SIP proxies so I didn't look for a multi-forwarding solution using this module. Maybe I should take a look at it. Could you please confirm that with this module ser can load a list of destinations for each SIP request based on TO, FROM or RURI of the sip message? Thank you for your help.
Minh
-----Message d'origine-----
De: Juha Heinanen
A: PHAN, Quang-Minh (Docteur Ordinateur)
Cc: 'serusers@lists.iptel.org'
Date: 20/03/2005 14:04
Objet: [Serusers] how to sort data retrieved from avp_db_load in avpops module
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