<div dir="ltr">If your UAC doesn't have the capabilities of sending it in the BYE or an in-dialog request, then you'll have to do something out of band like HTTPS, Redis, etc, which are not bad options. Have you looked into "X-Asterisk-HangupCauseCode" to see if that can help you out? <br><br><br>On Tue, Dec 27, 2022 at 8:55 AM Wadii ELMAJDI | Evenmedia <<a href="mailto:wadii@evenmedia.fr">wadii@evenmedia.fr</a>> wrote:<br>><br>> Hello,<br>><br>><br>> I am using Asterisk as a media server behind OpenSIPS.<br>> I need to send some additional data to opensips during the call or at the latest during the hangup. For instance a custom hang up reason.<br>> Asterisk does not allow neither to send a sequential request withing an ongoing dialog, nor add headers to a BYE method.<br>> The current solution I’m using is pushing a dialog var (dlg_push_var) using Call-ID via (mi_http), but that means I rely on a curl http request during my call…<br>> Is there any better option for a direct communication between the two boxes during a call ? without any intermediate server (Redis DB …)<br>><br>> Thank you<br>><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></div>