[Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed

Christopher Rienzo cmrienzo at gmail.com
Thu Oct 6 04:35:48 MSD 2011


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).



On Tue, Oct 4, 2011 at 8:03 AM, Han Xin <xin at ind.rwth-aachen.de> wrote:

> Hello everyone!
>
> 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.
>
> The question is where should I put this "switch_core_media_bug_remove()"
> function after the sessions are closed.
> Is there a way to automatically remove a media bug when a call is ended?
> Or it is only possible to use a single app to remove the media bugs as in
> the mod_dptools?
>
> Thank you all in advance!
>
> --
>
>
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111005/2f81ad73/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list