<div dir="ltr"><div dir="ltr">On Wed, Jan 12, 2022 at 10:17 AM Floimair Florian <<a href="mailto:f.floimair@commend.com">f.floimair@commend.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE-AT" style="overflow-wrap: break-word;">
<div class="gmail-m_-7416689665578206512WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi everybody!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I am currently facing an issue with SIP reINVITEs (with changed media direction) being acknowledged by Asterisk but not forwarded to the second call leg.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">My setup is as follows:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Device A -> Kamailio -> Asterisk (18.9.0 chan_pjsip) -> Kamailio -> Device B<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Device A sends a reinvite through Kamailio (Proxy & Registrar) to Asterisk, which answers with 200 OK.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Asterisk is configured with mohpassthrough option so any change in SDP media direction should be forwarded from A to B or vice versa.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">This works in almost all cases but I do have an edge case where a linphone client sends the reinvite and Asterisk more or less<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">silently discards it. I tried ramping up debug level verbosity (to 5) but was unable to spot anything in regards to reinvites or any other error/mismatch as to why it is not forwarded.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">So my question is: What can I do to analyze this better, maybe even add debug messages myself to the source code, but I have no clue<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">where the appropriate location for this would be (maybe even in libpjsip?
</span><span lang="EN-US" style="font-family:Wingdings"></span><span lang="EN-US"> I’m using bundled version).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for your help in advance.</span></p></div></div></blockquote><div><br></div><div>You'll need to be specific. Is this strictly for an audio stream for music on hold? If so, it doesn't strictly get forwarded. It would be handled as part of the normal music on hold handling[1][2] so debug would need to go there initially, and disabling passthrough and ensuring MOH actually occurs locally would narrow it down. If it doesn't do MOH even with it disabled then it's probably SDP level and you'd need to compare the new SDP to the previous, specifically the version and make sure it was incremented properly.</div></div><div><br></div>[1] <a href="https://github.com/asterisk/asterisk/blob/master/res/res_pjsip_sdp_rtp.c#L2186">https://github.com/asterisk/asterisk/blob/master/res/res_pjsip_sdp_rtp.c#L2186</a><div>[2]  <a href="https://github.com/asterisk/asterisk/blob/master/channels/chan_pjsip.c#L1754">https://github.com/asterisk/asterisk/blob/master/channels/chan_pjsip.c#L1754</a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div></div>