[asterisk-dev] Add DUNDIWEIGHTEDRESULT or modified DUNDIRESULT which includes the weight of the result.

Shane Spencer shane at bogomip.com
Fri Oct 5 12:30:03 CDT 2012


DUNDIRESULT returns results, I'm not even sure if they are sorted
according to weight, that do not include the weight.  I thought about
recommending a flag to DUNDIRESULT to return a delimited string but
that changes the functions result too much.. it can't simply be passed
to Dial for instance.

DUNDIWEIGHTEDRESULT returning a delimited string would be a good idea
and quick to implement.

Alternatively modifying DUNDIRESULT to optionally fill in some
variables based on a variable prefix would be a great improvement as
well and still return what is expected by the function.  The order of
the results may have to change from the existing ordering to make sure
that logic that does something when a weight changes between results
expects groups of lower weights first.

Ex: DUNDIRESULT(id|resultnum|variableprefix)

variableprefix_WEIGHT
variableprefix_PEERNAME
variableprefix_etc...



More information about the asterisk-dev mailing list