<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 3:05 PM, SamyGo <span dir="ltr"><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div>I've been wondering if I can instruct asterisk in the dialplan to engage the Media handling for a particular call or not.</div><div><br></div><div>I've SIP users behind Kamailio & RTPProxy, and I can make use of sip.conf setting "directmediadeny|directmediapermit" to offload media from asterisk for peer-to-peer calls BUT what if someone wants to record a call or engage some feature-code ? <br><br>Will asterisk re-negotiate/re-invite both peers to have Media flowing through asterisk and start recording !?</div><div><br></div><div>Looking for some ideas and hints.</div></div></blockquote><div><br></div><div>Asterisk will not allow direct media for a call when it has an interest in the media stream.<br></div><div>In other words, if you enable a feature-code (such as the Dial xXtThHkK option flags), call<br>recording, etc. then Asterisk will not do direct media for that call.<br></div><div><br></div><div>Richard<br></div></div><br></div></div>