[asterisk-bugs] [Asterisk 0013051]: SIPPEER isn't working inside REGEX and IF
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jul 30 09:35:30 CDT 2008
The following issue has been set as RELATED TO issue 0013197.
======================================================================
http://bugs.digium.com/view.php?id=13051
======================================================================
Reported By: pj
Assigned To: murf
======================================================================
Project: Asterisk
Issue ID: 13051
Category: PBX/pbx_ael
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: 1.4.21
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-07-10 09:45 CDT
Last Modified: 2008-07-30 09:35 CDT
======================================================================
Summary: SIPPEER isn't working inside REGEX and IF
Description:
I'm checking if peer is registered OK, before issue Dial() to avoid warning
messages, I'm using expression below and it working as expected in trunk,
but it's not working in 1.4.21.1, this expression is always false:
if (${REGEX("^OK" ${SIPPEER(998,status)})})
as workaround for 1.4, I must first store result of REGEX in variable and
then check this variable using if()
issue is probably with SIPPEER function, because if I tried replace
SIPPEER with string value, that SIPPEER returns, ie:
if (${REGEX("^OK" OK (57 ms))})
then it returns TRUE.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0013197 STAT() inside IF() doesn't work
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2008-07-30 09:35 eliel Relationship added related to 0013197
======================================================================
More information about the asterisk-bugs
mailing list