Yate Community Forum

Yate server => Other Yate server issues => Topic started by: hamtrix on November 11, 2016, 02:28:38 AM

Title: Stop processing to the next 'if' once the condition in first met.
Post by: hamtrix on November 11, 2016, 02:28:38 AM
Hi.
I am trying to stop processing the CALL to the next Stage once the the Condition in one of the 'IF's met in the Script. I expect a CDR record gecerates and Caller receive 503, which he does but the script does not stop the "called" to stop at the same stage and goes forward. I can see the Debug and Output Messages for the Next 'IF' condition which shows the call is still processing.
Title: Re: Stop processing to the next 'if' once the condition in first met.
Post by: Monica Tepelus on November 11, 2016, 02:55:43 AM
You need a break after $ev->handled = true;  to stop processing.