In case of failure, i wan't to be able to forward the call to another destination.

I want to use an exec_dset to obtain the new number to call.

failure_route[1] {
# forwarding failed -- try again at another destination
exec_dset('some script to obtain new number');
 # if this alternative destination fails too, proceed to ... 
t_relay();
}

It don't seem to work here. Is it something logical to do this ? What would be the better way ?

thanks