<div dir="ltr">Anyone? I will try to describe my problem once more. I have default FS install. I enabled &quot;renegotiate-codec-on-hold&quot;, &quot;renegotiate-codec-on-reinvite&quot; and &quot;enable-3pcc&quot; in internal profile. My dialplan is:<br><br>&lt;include&gt;<br>  &lt;context name=&quot;default&quot;&gt;<br><br>    &lt;extension name=&quot;echo&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^.*$&quot;&gt;<br>        &lt;action application=&quot;answer&quot;/&gt;<br>        &lt;action application=&quot;echo&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br>  &lt;/context&gt;<br>&lt;/include&gt;<br><br><br>I use the following sipp scenario <a href="https://pastebin.freeswitch.org/24629">https://pastebin.freeswitch.org/24629</a> with the following command:<br>sipp &lt;ip&gt;:&lt;port&gt;  -sf sipp_scenario.xml -m 1<br><br>And getting the following siptrace <a href="https://pastebin.freeswitch.org/24630">https://pastebin.freeswitch.org/24630</a><br><br>My question is: Is it possible to setup FS in such a way, that in the second &quot;200 OK&quot; it would send &quot;a=sendrecv&quot; instead of &quot;a=recvonly&quot;?<br><br>Thanks.<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 6:16 PM, Станислав Запольский <span dir="ltr">&lt;<a href="mailto:stszap@gmail.com" target="_blank">stszap@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello. We are facing the following problem with our FS setup:<br><br>1. provider sends us INVITE with &quot;a=sendonly&quot; in SDP<br>2. FS picks up the call, playing ivr and replying with 200 and &quot;a=recvonly&quot; in SDP<br>3. provider sends Re-INVITE without SDP<br>4. FS replying 200 with already negotiated SDP (single codec and &quot;a=recvonly&quot;)<br><br>Provider
 wants renegotiation of sdp on step 4, or a least &quot;a=sendrecv&quot; 
parameter. Is there a way to achieve this without source modification? 
We tried setting following profile parameters:<br>renegotiate-codec-on-hold=true<br>renegotiate-codec-on-reinvite=true<br>enable-3pcc=true<br>but no luck. The only solution we found was modifing sofia.c like this:<br>line 7374 - replace switch_core_media_gen_local_sdp(session, SDP_TYPE_RESPONSE, NULL, 0, NULL, 0); with switch_core_media_gen_local_sdp(session, SDP_TYPE_RESPONSE, NULL, 0, &quot;sendrecv&quot;, 0);<br>line
 7376 - replace nua_respond(tech_pvt-&gt;nh, SIP_200_OK, TAG_END()); 
with nua_respond(tech_pvt-&gt;nh, SIP_200_OK, 
SOATAG_USER_SDP_STR(tech_pvt-&gt;mparams.local_sdp_str), TAG_END());<br><br>Thanks.</div>
</blockquote></div><br></div></div>