[Home]

Summary:ASTERISK-22885: bridge/transfer_failure test failure
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2013-11-21 17:16:22.000-0600Date Closed:2013-12-16 08:12:50.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/Bridging Tests/testsuite
Versions:12.0.0-beta1 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:As seen here, the bridge/transfer_failure test fails (appropriately enough):

https://bamboo.asterisk.org/bamboo/browse/AST-ATSF-C632TE-83/test/case/1410868

This appears to be an issue in its CEL expected results and missing one of them:

{noformat}
[Nov 21 07:07:07] WARNING[18550]: ami:373 _stop_callback: Missed CEL requirement: {'extra': '.*16.*ANSWER.*/alice-.*', 'exten': 'alice_blind', 'calleriddnid': 'alice_blind', 'calleridnum': '1234', 'eventname': 'HANGUP', 'context': 'default', 'calleridname': 'Alice'}
{noformat}

In particular, it appears as if the 'extra' field does not match what is expected in the CEL definition:

{noformat}
[Nov 21 07:06:31] DEBUG[18550]: ami:118 __event_callback: Condition Event: CEL matches Event: CEL in event
[Nov 21 07:06:31] DEBUG[18550]: ami:118 __event_callback: Condition Channel: SIP/alice-.* matches Channel: SIP/alice-00000000 in event
[Nov 21 07:06:31] DEBUG[18550]: ami:348 event_callback: Received CEL event {'linkedid': '1385039179.0', 'appdata': '', 'extra': '{"dialstatus":"ANSWER","hangupcause":16,"hangupsource":"SIP/alice-00000000"}', 'exten': 'alice_blind', 'amaflags': 'DOCUMENTATION', 'calleridrdnis': '', 'event': 'CEL', 'calleriddnid': 'alice_blind', 'calleridnum': '1234', 'application': '', 'calleridname': 'Alice', 'privilege': 'call,all', 'channel': 'SIP/alice-00000000', 'eventtime': '2013-11-21 07:06:31', 'eventname': 'HANGUP', 'peeraccount': '', 'uniqueid': '1385039179.0', 'peer': '', 'accountcode': '', 'userfield': '', 'calleridani': '1234', 'context': 'default'}
[Nov 21 07:06:31] DEBUG[18550]: ami:296 is_match: Skipping HANGUP - .*16.*ANSWER.*/alice-.* does not equal {"dialstatus":"ANSWER","hangupcause":16,"hangupsource":"SIP/alice-00000000"} for field extra
[Nov 21 07:06:31] DEBUG[18550]: ami:353 event_callback: Dropping event HANGUP - next required event is HANGUP
{noformat}

And in the YAML:
{noformat}
           -
               match:
                   EventName: 'HANGUP'
                   CallerIDname: 'Alice'
                   CallerIDnum: '1234'
                   CallerIDdnid: 'alice_blind'
                   Exten: 'alice_blind'
                   Context: 'default'
                   Extra: '.*16.*ANSWER.*/alice-.*'
           -
{noformat}

There's a quote somewhere about regular expressions and now having two problems, but oh well.
Comments:By: Kinsey Moore (kmoore) 2013-12-16 08:12:50.303-0600

Fix committed to the testsuite