Author Topic: Stop processing to the next 'if' once the condition in first met.  (Read 7932 times)

hamtrix

  • Newbie
  • *
  • Posts: 3
    • View Profile
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.

Monica Tepelus

  • Administrator
  • Full Member
  • *****
  • Posts: 198
    • View Profile
Re: Stop processing to the next 'if' once the condition in first met.
« Reply #1 on: November 11, 2016, 02:55:43 AM »
You need a break after $ev->handled = true;  to stop processing.