Media bugs are automatically removed when the call ends. If you need to remove a media bug at an earlier point in the call, you can use switch_core_media_bug_remove(session, bug). <br><br><br><br><div class="gmail_quote">
On Tue, Oct 4, 2011 at 8:03 AM, Han Xin <span dir="ltr"><<a href="mailto:xin@ind.rwth-aachen.de">xin@ind.rwth-aachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello everyone!<br>
<br>
I am new to Freeswitch and try to add media bugs such as digital signal processing to the read stream and write stream. But I have some trouble on how to remove the media bug from the session after the sessions are closed. I tried to look into other existed modules such as mod_soundtouch and mod_dptools to find a solution, the former mod_soundtouch put the function "switch_core_media_bug_remove()" in the beginning of application run function. The latter mod use a single app called "remove bugs" and put this app in the dial plan to remove the bugs.<br>
<br>
The question is where should I put this "switch_core_media_bug_remove()" function after the sessions are closed.<br>
Is there a way to automatically remove a media bug when a call is ended?<br>
Or it is only possible to use a single app to remove the media bugs as in the mod_dptools?<br>
<br>
Thank you all in advance!<br>
<br>
--<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>