[OpenSIPS-Devel] [OpenSIPS/opensips] 1b12e2: Scripting enhancement: for-each statement
Liviu Chircu
liviu at opensips.org
Fri Oct 18 17:20:13 CEST 2013
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 1b12e26a372db840f542900cad07b7027514c0b5
https://github.com/OpenSIPS/opensips/commit/1b12e26a372db840f542900cad07b7027514c0b5
Author: Liviu Chircu <liviu at opensips.org>
Date: 2013-10-18 (Fri, 18 Oct 2013)
Changed paths:
M action.c
M cfg.lex
M cfg.y
M route.c
M route_struct.h
Log Message:
-----------
Scripting enhancement: for-each statement
- syntax: for ($var(it) in $avp(array)) { ... }
- faster than the "while"-based equivalent loop
- currently only allows iterating over an avp's values
More information about the Devel
mailing list