<div dir="ltr">it's legal to get responses with different to-tags, since the request is forked. this is what's happening in this scenario. <br>I think this is an issue of UAC/rtpengin how it is reacting to the second SDP in 183<br><div><br></div><div>are the SDPs in 183 responses carried reliably?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 27, 2021 at 2:51 PM Yuriy Gorlichenko <<a href="mailto:ovoshlook@gmail.com">ovoshlook@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello. <div dir="auto">The first thing: to tag can't be changed due session once it passed.</div><div dir="auto"><br></div><div dir="auto">If provider uses forking mechanism the it has to be hidden from your system. </div><div dir="auto"><br></div><div dir="auto">Regarding SDP according</div><div dir="auto"><a href="https://datatracker.ietf.org/doc/html/rfc3261#section-13.2.1" target="_blank">https://datatracker.ietf.org/doc/html/rfc3261#section-13.2.1</a><br></div><div dir="auto">They can't change SDP answer description on the fly. Only first SDP answer used as proper, all othe answers will be ignored.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 27 Aug 2021, 11:27 B. Tietz, <<a href="mailto:benjamin.tietz@berlin.de" target="_blank">benjamin.tietz@berlin.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>following situation.<br></div><div>I have a Kamailio (5.4) using rtpengine to loadbalance calls.</div><div><br></div><div>If a call from Alice comes in, Kamailio decides to send the call to Carrier B from Bob.</div><div>Bobs Phone is ringing and the carrier B send a 183 Session Progress with SDP and To-tag=abcd. The SDP has G722 as codec and port 1234.</div><div>A few moments later carrier B send a second 183 Session Progress with SDP and TO-tag=fghi. The SDP has G711 as codec and port 5678. This is done, to play some funky music as ringtone -.-<br></div><div>If Bob answers the call, carrier B sends a 200 OK WITHOUT SDP and TO-tag=abcd. So this should instruct our Kamailio to switch to the first G722 and port 1234.</div><div><br></div><div>But sadly, this is just not working as expected.</div><div><br></div><div>We tried to set the flags media-handover and port-latching for the rtpengine options and additionally set a to-tag when using rtpenging_manage.</div><div>But this doesn't solve the codec change, so we have only audio when Bob answers the call, but no ringtone-music. If we allow G711 only in the outgoing INVITE to Bob, we have also tha ringtone-muisic, because there is no codec-change.</div><div><br></div><div>Carrier B tells us, they are using a fork-mechanism.</div><div><br></div><div>Is there something we can do, to support the codec change in 183? Or enforce carrier B to send SDP in 200 OK? Or anything else?</div><div><br></div><div>Carrier B can not change anything in the ringtone-music-backend. They are stuck on G711.</div><div><br></div><div>Thanks!<br></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Arsen Semenov<br></div><div><br></div></div></div>