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

Shane Spencer shane at bogomip.com
Fri Oct 5 13:10:21 CDT 2012


It may also be appropriate to add a flag that allows duplicate results
to be returned as well.

On Fri, Oct 5, 2012 at 9:30 AM, Shane Spencer <shane at bogomip.com> wrote:
> 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