[Serusers] how-to "loop" in the ser.cfg file

Greger V. Teigre greger at teigre.com
Tue Apr 17 16:49:27 CEST 2007


You store the extensions in an avpair and then in failure route do 
avp_delete()  on your "huntlist" (don't use /g, because all will be 
deleted).
g-)

Steve Blair wrote:
>
> Hello:
>
>  I need to perform a check several times within a failure_route and 
> I'm not sure how to accomplish this task.
>
>  The way I implemented sequentially hunting I perform the relay to the 
> first number in the hunt list within route block 0. If this number is 
> unavailable I "fail" to a failure block then interate through the 
> remaining numbers in the huntlist in that failure route but this 
> presents a problem.
>
>  All of the "feature" and "call permission" checks which I normally 
> perform on an extension are only performed in route block 0. This 
> means I am not checking the feature and call permission flags for the 
> 2nd through Nth number in the huntlist once I enter the failure route.
>
>  I created a route block to perform the necessary checks but the 
> problem is I do not see how to return to the failure route if the 
> feature check for a given number fails.
>
>  For example. If the t_relay to extension 1234 fails I will enter 
> failure_route #1. In failure_route #1 I load the next extension, 2345, 
> but if the call permission check for 2345 fails how do I skip this 
> number in the huntlist, load the next number in the list and repeat 
> the failure_route #1 processing?
>
> Thanks,Steve
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>



More information about the sr-users mailing list