<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/17732">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tests/pjsip/hold: Add test checking codec order upon hold/unhold<br><br>With the fix of ASTERISK-29320 the order of the codecs in the incoming<br>SDP is preserved. To check this a testcase is added, performing a<br>hold/unhold operation on an outgoing channel.<br><br>Change-Id: Id7249b174e5630b901d303a19cdd808651e455ea<br>---<br>M tests/channels/pjsip/hold/configs/ast1/pjsip.conf<br>M tests/channels/pjsip/hold/run-test<br>A tests/channels/pjsip/hold/sipp/phone_B_codec_order.xml<br>M tests/channels/pjsip/hold_inactive/test-config.yaml<br>4 files changed, 299 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/channels/pjsip/hold/configs/ast1/pjsip.conf b/tests/channels/pjsip/hold/configs/ast1/pjsip.conf</span><br><span>index 65519b0..62f2cae 100644</span><br><span>--- a/tests/channels/pjsip/hold/configs/ast1/pjsip.conf</span><br><span>+++ b/tests/channels/pjsip/hold/configs/ast1/pjsip.conf</span><br><span>@@ -24,5 +24,5 @@</span><br><span> aors=phone_B</span><br><span> context=default</span><br><span> disallow=all</span><br><span style="color: hsl(0, 100%, 40%);">-allow=ulaw</span><br><span style="color: hsl(120, 100%, 40%);">+allow=ulaw,alaw,gsm</span><br><span> direct_media=no</span><br><span>diff --git a/tests/channels/pjsip/hold/run-test b/tests/channels/pjsip/hold/run-test</span><br><span>index 9b32ffc..086ec53 100755</span><br><span>--- a/tests/channels/pjsip/hold/run-test</span><br><span>+++ b/tests/channels/pjsip/hold/run-test</span><br><span>@@ -45,6 +45,9 @@</span><br><span> '-inf': INJECT_FILE},</span><br><span> {'scenario': 'phone_A.xml',</span><br><span> '-i': '127.0.0.2', '-p': '5060',</span><br><span style="color: hsl(120, 100%, 40%);">+ '-inf': INJECT_FILE},</span><br><span style="color: hsl(120, 100%, 40%);">+ {'scenario': 'phone_A.xml',</span><br><span style="color: hsl(120, 100%, 40%);">+ '-i': '127.0.0.2', '-p': '5060',</span><br><span> '-inf': INJECT_FILE}]</span><br><span> self.sipp_scn_phone_b = [{'scenario': 'phone_B_media_restrict.xml',</span><br><span> '-i': '127.0.0.3', '-p': '5060',</span><br><span>@@ -63,6 +66,9 @@</span><br><span> '-inf': INJECT_FILE},</span><br><span> {'scenario': 'phone_B_IP_media_restrict.xml',</span><br><span> '-i': '127.0.0.3', '-p': '5060',</span><br><span style="color: hsl(120, 100%, 40%);">+ '-inf': INJECT_FILE},</span><br><span style="color: hsl(120, 100%, 40%);">+ {'scenario': 'phone_B_codec_order.xml',</span><br><span style="color: hsl(120, 100%, 40%);">+ '-i': '127.0.0.3', '-p': '5060',</span><br><span> '-inf': INJECT_FILE}]</span><br><span> </span><br><span> self.reactor_timeout = 60</span><br><span>diff --git a/tests/channels/pjsip/hold/sipp/phone_B_codec_order.xml b/tests/channels/pjsip/hold/sipp/phone_B_codec_order.xml</span><br><span>new file mode 100644</span><br><span>index 0000000..eb55b58</span><br><span>--- /dev/null</span><br><span>+++ b/tests/channels/pjsip/hold/sipp/phone_B_codec_order.xml</span><br><span>@@ -0,0 +1,291 @@</span><br><span style="color: hsl(120, 100%, 40%);">+<?xml version="1.0" encoding="ISO-8859-1" ?></span><br><span style="color: hsl(120, 100%, 40%);">+<!DOCTYPE scenario SYSTEM "sipp.dtd"></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+<scenario name="Phone B Hold"></span><br><span style="color: hsl(120, 100%, 40%);">+ <Global variables="global_call_id"/></span><br><span style="color: hsl(120, 100%, 40%);">+ <Global variables="prime_tag"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <recv request="INVITE" crlf="true"></span><br><span style="color: hsl(120, 100%, 40%);">+ <action></span><br><span style="color: hsl(120, 100%, 40%);">+ <ereg regexp=".*"</span><br><span style="color: hsl(120, 100%, 40%);">+ header="Call-ID:"</span><br><span style="color: hsl(120, 100%, 40%);">+ search_in="hdr"</span><br><span style="color: hsl(120, 100%, 40%);">+ check_it="true"</span><br><span style="color: hsl(120, 100%, 40%);">+ assign_to="global_call_id"/></span><br><span style="color: hsl(120, 100%, 40%);">+ <ereg regexp="tag=.*"</span><br><span style="color: hsl(120, 100%, 40%);">+ header="From:"</span><br><span style="color: hsl(120, 100%, 40%);">+ search_in="hdr"</span><br><span style="color: hsl(120, 100%, 40%);">+ check_it="true"</span><br><span style="color: hsl(120, 100%, 40%);">+ assign_to="prime_tag"/></span><br><span style="color: hsl(120, 100%, 40%);">+ </action></span><br><span style="color: hsl(120, 100%, 40%);">+ </recv></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ SIP/2.0 100 Trying</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_Via:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_From:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_To:];tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_Call-ID:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_CSeq:]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port];transport=[transport]></span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: 0</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ SIP/2.0 180 Ringing</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_Via:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_From:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_To:];tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_Call-ID:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_CSeq:]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port];transport=[transport]></span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Allow-Events: talk,hold,conference</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: 0</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <pause milliseconds="200"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send retrans="500"></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ SIP/2.0 200 OK</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_Via:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_From:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_To:];tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_Call-ID:]</span><br><span style="color: hsl(120, 100%, 40%);">+ [last_CSeq:]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port];transport=[transport]></span><br><span style="color: hsl(120, 100%, 40%);">+ Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER</span><br><span style="color: hsl(120, 100%, 40%);">+ Supported: 100rel,replaces</span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Type: application/sdp</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: [len]</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ v=0</span><br><span style="color: hsl(120, 100%, 40%);">+ o=- 1325003603 1325003604 IN IP4 [local_ip]</span><br><span style="color: hsl(120, 100%, 40%);">+ s=Polycom IP Phone</span><br><span style="color: hsl(120, 100%, 40%);">+ c=IN IP4 [local_ip]</span><br><span style="color: hsl(120, 100%, 40%);">+ t=0 0</span><br><span style="color: hsl(120, 100%, 40%);">+ a=sendrecv</span><br><span style="color: hsl(120, 100%, 40%);">+ m=audio 2226 RTP/AVP 8 3 101</span><br><span style="color: hsl(120, 100%, 40%);">+ a=sendrecv</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:8 PCMA/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:3 GSM/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:101 telephone-event/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- RECV ACK --></span><br><span style="color: hsl(120, 100%, 40%);">+ <recv request="ACK"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Wait some period of time --></span><br><span style="color: hsl(120, 100%, 40%);">+ <pause milliseconds="2000"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Modify RTP session to be send only --></span><br><span style="color: hsl(120, 100%, 40%);">+ <send retrans="500"></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ INVITE sip:[field0]@[remote_ip]:[remote_port] SIP/2.0</span><br><span style="color: hsl(120, 100%, 40%);">+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]</span><br><span style="color: hsl(120, 100%, 40%);">+ From: [field1] <sip:[field1]@[local_ip]:[local_port]>;tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ To: [field0] <sip:[field1]@[remote_ip]>;[$prime_tag]</span><br><span style="color: hsl(120, 100%, 40%);">+ CSeq: [cseq] INVITE</span><br><span style="color: hsl(120, 100%, 40%);">+ Call-ID: [$global_call_id]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port]></span><br><span style="color: hsl(120, 100%, 40%);">+ Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER</span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Supported: 100rel,replaces</span><br><span style="color: hsl(120, 100%, 40%);">+ Allow-Events: talk,hold,conference</span><br><span style="color: hsl(120, 100%, 40%);">+ Max-Forwards: 70</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Type: application/sdp</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: [len]</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ v=0</span><br><span style="color: hsl(120, 100%, 40%);">+ o=- 1325003603 1325003604 IN IP4 [local_ip]</span><br><span style="color: hsl(120, 100%, 40%);">+ s=Polycom IP Phone</span><br><span style="color: hsl(120, 100%, 40%);">+ c=IN IP4 [local_ip]</span><br><span style="color: hsl(120, 100%, 40%);">+ t=0 0</span><br><span style="color: hsl(120, 100%, 40%);">+ a=sendonly</span><br><span style="color: hsl(120, 100%, 40%);">+ m=audio 2226 RTP/AVP 8 3 101</span><br><span style="color: hsl(120, 100%, 40%);">+ a=sendonly</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:8 PCMA/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:3 GSM/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:101 telephone-event/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <recv response="100" optional="true" /></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Check that a-law has been selected after the reinvite --></span><br><span style="color: hsl(120, 100%, 40%);">+ <recv response="200" rtd="true"></span><br><span style="color: hsl(120, 100%, 40%);">+ <action></span><br><span style="color: hsl(120, 100%, 40%);">+ <ereg regexp="m=audio [0-9]{1,5} RTP/AVP 8 .*"</span><br><span style="color: hsl(120, 100%, 40%);">+ search_in="body" check_it="true" assign_to="1"/></span><br><span style="color: hsl(120, 100%, 40%);">+ <test assign_to="1" variable="1" compare="equal" value=""/></span><br><span style="color: hsl(120, 100%, 40%);">+ </action></span><br><span style="color: hsl(120, 100%, 40%);">+ </recv></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <pause milliseconds="200"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.0</span><br><span style="color: hsl(120, 100%, 40%);">+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]</span><br><span style="color: hsl(120, 100%, 40%);">+ From: [field1] <sip:[field1]@[local_ip]>;tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ To: <sip:[field0]@[remote_ip];user=[field0]>[peer_tag_param]</span><br><span style="color: hsl(120, 100%, 40%);">+ CSeq: [cseq] ACK</span><br><span style="color: hsl(120, 100%, 40%);">+ Call-ID: [$global_call_id]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port]></span><br><span style="color: hsl(120, 100%, 40%);">+ Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER</span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Max-Forwards: 70</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: 0</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Wait some period of time --></span><br><span style="color: hsl(120, 100%, 40%);">+ <pause milliseconds="2000"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Modify RTP session to be send only --></span><br><span style="color: hsl(120, 100%, 40%);">+ <send retrans="500"></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ UPDATE sip:[field0]@[remote_ip]:[remote_port] SIP/2.0</span><br><span style="color: hsl(120, 100%, 40%);">+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]</span><br><span style="color: hsl(120, 100%, 40%);">+ From: [field1] <sip:[field1]@[local_ip]:[local_port]>;tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ To: [field0] <sip:[field1]@[remote_ip]>;[$prime_tag]</span><br><span style="color: hsl(120, 100%, 40%);">+ CSeq: [cseq] UPDATE</span><br><span style="color: hsl(120, 100%, 40%);">+ Call-ID: [$global_call_id]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port]></span><br><span style="color: hsl(120, 100%, 40%);">+ Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER</span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Supported: 100rel,replaces</span><br><span style="color: hsl(120, 100%, 40%);">+ Allow-Events: talk,hold,conference</span><br><span style="color: hsl(120, 100%, 40%);">+ Max-Forwards: 70</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Type: application/sdp</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: [len]</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ v=0</span><br><span style="color: hsl(120, 100%, 40%);">+ o=- 1325003603 1325003604 IN IP4 [local_ip]</span><br><span style="color: hsl(120, 100%, 40%);">+ s=Polycom IP Phone</span><br><span style="color: hsl(120, 100%, 40%);">+ c=IN IP4 [local_ip]</span><br><span style="color: hsl(120, 100%, 40%);">+ t=0 0</span><br><span style="color: hsl(120, 100%, 40%);">+ a=sendonly</span><br><span style="color: hsl(120, 100%, 40%);">+ m=audio 2226 RTP/AVP 8 3 101</span><br><span style="color: hsl(120, 100%, 40%);">+ a=sendonly</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:8 PCMA/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:3 GSM/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ a=rtpmap:101 telephone-event/8000</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <recv response="100" optional="true" /></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Check that a-law has been selected after the update --></span><br><span style="color: hsl(120, 100%, 40%);">+ <recv response="200" rtd="true"></span><br><span style="color: hsl(120, 100%, 40%);">+ <action></span><br><span style="color: hsl(120, 100%, 40%);">+ <ereg regexp="m=audio [0-9]{1,5} RTP/AVP 8 .*"</span><br><span style="color: hsl(120, 100%, 40%);">+ search_in="body" check_it="true" assign_to="1"/></span><br><span style="color: hsl(120, 100%, 40%);">+ <test assign_to="1" variable="1" compare="equal" value=""/></span><br><span style="color: hsl(120, 100%, 40%);">+ </action></span><br><span style="color: hsl(120, 100%, 40%);">+ </recv></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <pause milliseconds="200"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.0</span><br><span style="color: hsl(120, 100%, 40%);">+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]</span><br><span style="color: hsl(120, 100%, 40%);">+ From: [field1] <sip:[field1]@[local_ip]>;tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ To: <sip:[field0]@[remote_ip];user=[field0]>[peer_tag_param]</span><br><span style="color: hsl(120, 100%, 40%);">+ CSeq: [cseq] ACK</span><br><span style="color: hsl(120, 100%, 40%);">+ Call-ID: [$global_call_id]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port]></span><br><span style="color: hsl(120, 100%, 40%);">+ Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER</span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Max-Forwards: 70</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: 0</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Wait some period of time, then send the un-hold as reinvite without SDP --></span><br><span style="color: hsl(120, 100%, 40%);">+ <pause milliseconds="2000"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send retrans="500"></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ INVITE sip:[field0]@[remote_ip]:[remote_port] SIP/2.0</span><br><span style="color: hsl(120, 100%, 40%);">+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]</span><br><span style="color: hsl(120, 100%, 40%);">+ From: [field1] <sip:[field1]@[local_ip]:[local_port]>;tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ To: [field0] <sip:[field1]@[remote_ip]>;[$prime_tag]</span><br><span style="color: hsl(120, 100%, 40%);">+ CSeq: [cseq] INVITE</span><br><span style="color: hsl(120, 100%, 40%);">+ Call-ID: [$global_call_id]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port]></span><br><span style="color: hsl(120, 100%, 40%);">+ Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER</span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Supported: 100rel,replaces</span><br><span style="color: hsl(120, 100%, 40%);">+ Allow-Events: talk,hold,conference</span><br><span style="color: hsl(120, 100%, 40%);">+ Max-Forwards: 70</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: 0</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <recv response="100" optional="true" /></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Check that a-law has been selected after the reinvite --></span><br><span style="color: hsl(120, 100%, 40%);">+ <recv response="200" rtd="true"></span><br><span style="color: hsl(120, 100%, 40%);">+ <action></span><br><span style="color: hsl(120, 100%, 40%);">+ <ereg regexp="m=audio [0-9]{1,5} RTP/AVP 8 .*"</span><br><span style="color: hsl(120, 100%, 40%);">+ search_in="body" check_it="true" assign_to="1"/></span><br><span style="color: hsl(120, 100%, 40%);">+ <test assign_to="1" variable="1" compare="equal" value=""/></span><br><span style="color: hsl(120, 100%, 40%);">+ </action></span><br><span style="color: hsl(120, 100%, 40%);">+ </recv></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ ACK sip:[field1]@[remote_ip]:[remote_port] SIP/2.0</span><br><span style="color: hsl(120, 100%, 40%);">+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]</span><br><span style="color: hsl(120, 100%, 40%);">+ From: [field1] <sip:[field1]@[local_ip]>;tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ To: <sip:[field0]@[remote_ip];user=[field0]>[peer_tag_param]</span><br><span style="color: hsl(120, 100%, 40%);">+ CSeq: [cseq] ACK</span><br><span style="color: hsl(120, 100%, 40%);">+ Call-ID: [$global_call_id]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port]></span><br><span style="color: hsl(120, 100%, 40%);">+ Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER</span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Max-Forwards: 70</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: 0</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <!-- Wait some period of time --></span><br><span style="color: hsl(120, 100%, 40%);">+ <pause milliseconds="2000"/></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ <send></span><br><span style="color: hsl(120, 100%, 40%);">+ <![CDATA[</span><br><span style="color: hsl(120, 100%, 40%);">+ BYE sip:[field1]@1[remote_ip]:[remote_port] SIP/2.0</span><br><span style="color: hsl(120, 100%, 40%);">+ Via: SIP/2.0/UDP [local_ip]:[local_port];branch=[branch]</span><br><span style="color: hsl(120, 100%, 40%);">+ From: [field1] <sip:[field1]@[local_ip]:[local_port]>;tag=[call_number]</span><br><span style="color: hsl(120, 100%, 40%);">+ To: [field0] <sip:[field1]@[remote_ip]>[peer_tag_param]</span><br><span style="color: hsl(120, 100%, 40%);">+ CSeq: [cseq] BYE</span><br><span style="color: hsl(120, 100%, 40%);">+ Call-ID: [$global_call_id]</span><br><span style="color: hsl(120, 100%, 40%);">+ Contact: <sip:[field1]@[local_ip]:[local_port]></span><br><span style="color: hsl(120, 100%, 40%);">+ User-Agent: PolycomSoundPointIP-SPIP_430-UA/3.2.3.1734</span><br><span style="color: hsl(120, 100%, 40%);">+ Accept-Language: en</span><br><span style="color: hsl(120, 100%, 40%);">+ Max-Forwards: 70</span><br><span style="color: hsl(120, 100%, 40%);">+ Content-Length: 0</span><br><span style="color: hsl(120, 100%, 40%);">+ ]]></span><br><span style="color: hsl(120, 100%, 40%);">+ </send></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</scenario></span><br><span>diff --git a/tests/channels/pjsip/hold_inactive/test-config.yaml b/tests/channels/pjsip/hold_inactive/test-config.yaml</span><br><span>index 5a7c18c..790aa8c 100644</span><br><span>--- a/tests/channels/pjsip/hold_inactive/test-config.yaml</span><br><span>+++ b/tests/channels/pjsip/hold_inactive/test-config.yaml</span><br><span>@@ -5,6 +5,7 @@</span><br><span> sending a re-INVITE with a modified SDP containing a restricted audio</span><br><span> direction with and without an IP address of 0.0.0.0. Restricted audio</span><br><span> direction is also tested for unholding by a re-INVITE without an SDP.</span><br><span style="color: hsl(120, 100%, 40%);">+ A scenario checks that the correct codec is selected after unholding.</span><br><span> </span><br><span> </span><br><span> properties:</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/17732">change 17732</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/testsuite/+/17732"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id7249b174e5630b901d303a19cdd808651e455ea </div>
<div style="display:none"> Gerrit-Change-Number: 17732 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Florentin Mayer <f.mayer@commend.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>