<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/9303">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pjsip/rtp/asymmetric_rtp_codec: Wait for SDP negotiation.<br><br>SDP negotiation in PJSIP happens in an asynchronous fashion.<br>We may start executing dialplan before it is fully completed<br>resulting in the formats on the channel being the configured<br>ones momentarily. The asymmetric RTP codec tests did not<br>take this into account and could sometimes query for formats<br>before the SDP negotiation was complete.<br><br>This change adds a wait to ensure that the SDP negotiation<br>has completed before getting the formats.<br><br>Change-Id: I6907ae7ca7c0ddfdd2dafaa35f5385cb044c75ed<br>---<br>M tests/channels/pjsip/rtp/asymmetric_rtp_codec/off/configs/ast1/extensions.conf<br>M tests/channels/pjsip/rtp/asymmetric_rtp_codec/on/configs/ast1/extensions.conf<br>2 files changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/tests/channels/pjsip/rtp/asymmetric_rtp_codec/off/configs/ast1/extensions.conf b/tests/channels/pjsip/rtp/asymmetric_rtp_codec/off/configs/ast1/extensions.conf<br>index 080601d..02c6fd9 100644<br>--- a/tests/channels/pjsip/rtp/asymmetric_rtp_codec/off/configs/ast1/extensions.conf<br>+++ b/tests/channels/pjsip/rtp/asymmetric_rtp_codec/off/configs/ast1/extensions.conf<br>@@ -1,5 +1,6 @@<br> [default]<br> exten => tacos,1,Answer()<br>+same => n,Wait(5) ; Give time for SDP negotiation to occur as it is done asynchronously<br> same => n,UserEvent(${CHANNEL(audionativeformat)})<br> same => n,Hangup()<br> <br>diff --git a/tests/channels/pjsip/rtp/asymmetric_rtp_codec/on/configs/ast1/extensions.conf b/tests/channels/pjsip/rtp/asymmetric_rtp_codec/on/configs/ast1/extensions.conf<br>index 080601d..02c6fd9 100644<br>--- a/tests/channels/pjsip/rtp/asymmetric_rtp_codec/on/configs/ast1/extensions.conf<br>+++ b/tests/channels/pjsip/rtp/asymmetric_rtp_codec/on/configs/ast1/extensions.conf<br>@@ -1,5 +1,6 @@<br> [default]<br> exten => tacos,1,Answer()<br>+same => n,Wait(5) ; Give time for SDP negotiation to occur as it is done asynchronously<br> same => n,UserEvent(${CHANNEL(audionativeformat)})<br> same => n,Hangup()<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9303">change 9303</a>. To unsubscribe, 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/9303"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I6907ae7ca7c0ddfdd2dafaa35f5385cb044c75ed </div>
<div style="display:none"> Gerrit-Change-Number: 9303 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>