register_allowip: use new regex expresions to compare

vseva/3.0
git user on spce 13 years ago
parent b6566383c8
commit 2aaa534a11

@ -28,8 +28,7 @@ flow:
$xavp(caller_peer_prefs[0]=>dummy[*]):
- caller
$xavp(caller_real_prefs[0]=>ac): 1
# this is autonumeric id FIXME. We need regex
# $xavp(caller_real_prefs[0]=>account_id): 43
$xavp(caller_real_prefs[0]=>account_id): '\d+'
$xavp(caller_real_prefs[0]=>allowed_ips_grp): 1
$xavp(caller_real_prefs[0]=>cc): 43
$xavp(caller_real_prefs[0]=>cli): 4311003
@ -37,8 +36,7 @@ flow:
- caller
$xavp(caller_real_prefs[0]=>man_allowed_ips_grp): 0
$xavp(caller_usr_prefs[0]=>ac): 1
# this is autonumeric id FIXME. We need regex
# $xavp(caller_usr_prefs[0]=>account_id): 43
$xavp(caller_usr_prefs[0]=>account_id): '\d+'
$xavp(caller_usr_prefs[0]=>allowed_ips_grp): 1
$xavp(caller_usr_prefs[0]=>cc): 43
$xavp(caller_usr_prefs[0]=>cli): 4311003

Loading…
Cancel
Save