<p></p>
<h3>Description</h3>
<p>Different behaviour of rtpengine_manage depending on where it is called</p>
<ol>
<li>Response 180 <strong>is not</strong> sent to rtpengine :12221 using only reply_route</li>
<li>Response 180 <strong>is sent</strong> to rtpengine :12221 using <code>onreply_route[MANAGE_REPLY]</code></li>
</ol>
<p>Scenario 1 - reply_route only</p>
<ul>
<li>call rtpenginge_manage() in reply_route for responses</li>
<li>works for 200 OK</li>
<li>for 180 Ringing, the command does not appear on the wire to rtpengine :12221</li>
</ul>
<p>Scenario 2 - reply_route is empty, use <code>onreply_route[MANAGE_REPLY]</code></p>
<ul>
<li>call rtpenginge_manage() in <code>onreply_route[MANAGE_REPLY]</code></li>
<li>works for 200 OK</li>
<li>for 180 Ringing, the command appears on the wire to rtpengine :12221, and SDP is injected</li>
</ul>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<ol>
<li>Confirmed that setup is working without <code>onreply_route[MANAGE_REPLY]</code></li>
<li>Caller does not see any SDP inside 180 response; this means that rtpengine_manage decided not to end anything to rtpengine :12221</li>
<li>Move call to <code>rtpengine_manage()</code> inside <code>onreply_route[MANAGE_REPLAY]</code></li>
<li>Now observe that SDP appears inside 180 response, indicating that rtpengine_manage decided that it should send the "offer" command to rtpengine :12221</li>
</ol>
<h4>Debugging Data</h4>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2577">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOWESJBRMVYQ4FKR6TSTGSFDANCNFSM4UOHPXRA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLTLQTKTVD3VVLQO7LSTGSFDA5CNFSM4UOHPXRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LJG5MGQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2577",
"url": "https://github.com/kamailio/kamailio/issues/2577",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>