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

Anthony Minessale anthony.minessale at gmail.com
Mon Oct 10 19:17:36 MSD 2011


it calls the callback with type set to SWITCH_ABC_TYPE_CLOSE

On Wed, Oct 5, 2011 at 7:37 PM, Vu Quang Hoa <vutamhoan at gmail.com> wrote:
> As I tested - FS automatically removes bug when call ends.
> I'm trying to figure out if it does the same with allocated resources in
> add_bug routine.
>
> On Tue, Oct 4, 2011 at 7:03 PM, 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
>
>
> _______________________________________________
> 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
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



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