<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9305">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/05/9305/1</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/9305">change 9305</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/9305"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I6907ae7ca7c0ddfdd2dafaa35f5385cb044c75ed </div>
<div style="display:none"> Gerrit-Change-Number: 9305 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>