[Home]

Summary:ASTERISK-24243: testsuite: dialog_info_xml fails on Asterisk 12 only
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-08-17 16:23:07Date Closed:2014-09-10 10:42:14
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip_dialog_info_body_generator Tests/testsuite
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The {{dialog_info_xml}} test fails against Asterisk 12 only:

https://bamboo.asterisk.org/bamboo/browse/AST-ATTSCD4-C632TE-408/test/case/4980769

{code}
[Aug 17 00:03:12] WARNING[28429]: sipp:437 processEnded: 2014-08-17 00:03:12.238116 1408251792.238116: Failed regexp match: looking in '<?xml version="1.0" encoding="UTF-8"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="3" state="full" entity="sip:presence@127.0.0.1">
<dialog id="presence">
 <state>confirmed</state>
 <local>
  <target uri="sip:presence@127.0.0.1">
   <param pname="+sip.rendering" pvalue="no" />
  </target>
 </local>
</dialog>
</dialog-info>
', with regexp '<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="3" state="full" entity="sip:presence@127.0.0.1:5060">
<dialog id="presence">
 <state>confirmed</state>
 <local>
  <target uri="sip:presence@127.0.0.1">
   <param pname="\+sip.rendering" pvalue="no" />
  </target>
 </local>
</dialog>
</dialog-info>'.
{code}

The error is obvious: we are searching for an entity URI that contains a port, Asterisk is stripping the port. In 13+ we don't. Either the test will need two SIPp scenarios - one for 12 and one for 13 - or we should be including the port in the Asterisk 12 version of the body generator.
Comments: