From msc at freeswitch.org Sat Oct 1 00:57:56 2011 From: msc at freeswitch.org (Michael Collins) Date: Fri, 30 Sep 2011 13:57:56 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Oct 5: All about git Message-ID: Hello FreeSWITCHers! Travis Cross will be presenting on the subject of git. Many of us have a love-hate (or a hate-hate) relationship with git so Travis is going to help us get over the hump. The agenda page has a place where you can post questions: http://wiki.freeswitch.org/wiki/FS_weekly_2011_10_05#Featured_Presentation Looking forward to next Wednesday! -MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20110930/fd345dcb/attachment.html From succer110 at tiscali.it Mon Oct 3 16:24:28 2011 From: succer110 at tiscali.it (succer110 at tiscali.it) Date: Mon, 3 Oct 2011 14:24:28 +0200 (CEST) Subject: [Freeswitch-dev] memory pool Message-ID: <11030571.102811317644668479.JavaMail.defaultUser@defaultHost> Hi! I'm a new fs module developer :) In the page "authoring freeswitch module" i read that "there's still times when using traditional C memory management is a better plan." How can i recognize that cases? >From what i have understood using memory pool from apr i can forget to call switch_core_destroy_memory_pool unless i specifically want it. Am i Right? Is possibile to specify the dimension of the memory pool i want to create? Which is the standard dimension? Thankyou =) E' nata indoona: chiama, videochiama e messaggia Gratis. Scarica indoona per iPhone, Android e PC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111003/a81be447/attachment.html From anthony.minessale at gmail.com Mon Oct 3 17:39:52 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 3 Oct 2011 08:39:52 -0500 Subject: [Freeswitch-dev] memory pool In-Reply-To: <11030571.102811317644668479.JavaMail.defaultUser@defaultHost> References: <11030571.102811317644668479.JavaMail.defaultUser@defaultHost> Message-ID: On Mon, Oct 3, 2011 at 7:24 AM, succer110 at tiscali.it wrote: > Hi! I'm a new fs module developer :) > In the page "authoring freeswitch module" i read that "there's still times > when using traditional C memory management is a better plan." > How can i recognize that cases? If you do not have a well-defined lifecycle of an object or need several temporary allocations repeatedly its better to use malloc. Pools are best used when you can create and destroy the pool regularly based on the workflow of you application such as a main object representing an handle etc. Anything using a session can also use the session's pool. > > From what i have understood using memory pool from apr i can forget to call > switch_core_destroy_memory_pool unless i specifically want it. Am i Right? > Is possibile to specify the dimension of the memory pool i want to create? > Which is the standard dimension? > Thankyou =) > The pools auto-size themselves and do not support freeing any allocated data. The whole pool must be destroyed. > E' nata indoona: chiama, videochiama e messaggia Gratis. > Scarica indoona per iPhone, Android e PC > > > _______________________________________________ > 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 From juraj.fabo at gmail.com Tue Oct 4 16:56:17 2011 From: juraj.fabo at gmail.com (Juraj Fabo) Date: Tue, 4 Oct 2011 14:56:17 +0200 Subject: [Freeswitch-dev] MTU setting and application buffer size Message-ID: Hi, I read through the previous answers several times again and did some progress. I found out that the valid codec_ms values are <10ms,60ms> and using lower values will not work. >> 80 means a hardware interrupt is received every 10ms with 80 bytes per >> time slot. This is the recommended mode. A value of 40 will increase >> interrupt load and not necesarily reduce your latency, you must reduce >> the "user period", which is how often the driver will deliver >> media/data to the user application. This is done using >> sangoma_tdm_set_usr_period(). >> >> >> The codec_ms is used to call sangoma_tdm_set_usr_period(). This is how >> often the driver will deliver data to the user application (for >> example, waking it up from select()). >> In each of the the test below the codec_ms was set to 1 with hope of fastest data delivery, however this resulted to 20ms codec_ms which is default. > Please, have a look at the results with various parameters used: > mtu:80 txqueue_size=1 ?rxqueue_size=1 ? one-direction delay=60ms > round-trip delay=120ms > mtu:80 txqueue_size=2 ?rxqueue_size=2 ? one-direction delay=80ms > round-trip delay=160ms > mtu:80 txqueue_size=10 rxqueue_size=10 one-direction delay=240ms > round-trip delay=480ms > mtu:40 txqueue_size=1 ?rxqueue_size=1 ? one-direction delay=40ms > round-trip delay=80ms > mtu:40 txqueue_size=2 ?rxqueue_size=2 ? one-direction delay=60ms > round-trip delay=120ms > mtu:40 txqueue_size=5 ?rxqueue_size=5 ? one-direction delay=120ms > round-trip delay=240ms > mtu:16 txqueue_size=1 ?rxqueue_size=1 ? one-direction delay=30ms > round-trip delay=60ms > mtu:8 ?txqueue_size=1 ? rxqueue_size=1 ? one-direction delay=25ms > round-trip delay=50ms > mtu:8 ?txqueue_size=10 rxqueue_size=10 one-direction delay=205ms > round-trip delay=410ms > Updated test result with the codec_ms=10 is following: mtu:16 txqueue_size=1 rxqueue_size=10 one-direction delay=20ms round-trip delay=50ms mtu:80 txqueue_size=1 rxqueue_size=10 one-direction delay=56ms round-trip delay=110ms However, this is still not 10ms with the default MTU:80 and codec_ms:10 :( Anyway, is it a good idea to use so assymetric tx/rx queue sizes? with best regards Juraj From msc at freeswitch.org Wed Oct 5 20:19:44 2011 From: msc at freeswitch.org (Michael Collins) Date: Wed, 5 Oct 2011 09:19:44 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today: Git Tutorial Message-ID: Hello all! Today we have our very own Travis Cross who will be helping everyone get up to speed with git. We highly recommend everyone who uses the FreeSWITCH source to join us and get your git questions answered. The agenda page is here: http://wiki.freeswitch.org/wiki/FS_weekly_2011_10_05 Talk to you soon, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111005/ef22187e/attachment.html From gmaruzz at gmail.com Wed Oct 5 21:00:52 2011 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Wed, 5 Oct 2011 19:00:52 +0200 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today: Git Tutorial In-Reply-To: References: Message-ID: I'll try to join from cell, but please please please, do a recording anyway ;). -giovanni On 10/5/11, Michael Collins wrote: > Hello all! > > Today we have our very own Travis Cross who will be helping everyone get up > to speed with git. We highly recommend everyone who uses the FreeSWITCH > source to join us and get your git questions answered. The agenda page is > here: > > http://wiki.freeswitch.org/wiki/FS_weekly_2011_10_05 > > Talk to you soon, > Michael > -- Sent from my mobile device Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 From xin at ind.rwth-aachen.de Tue Oct 4 16:03:51 2011 From: xin at ind.rwth-aachen.de (Han Xin) Date: Tue, 04 Oct 2011 14:03:51 +0200 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed Message-ID: <94715a0a3f69399835a066ea4d8ea62c@gw.ind.rwth-aachen.de> 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! -- From vutamhoan at gmail.com Wed Oct 5 04:46:57 2011 From: vutamhoan at gmail.com (Vu Quang Hoa) Date: Wed, 5 Oct 2011 07:46:57 +0700 Subject: [Freeswitch-dev] MOH in async mode is possible? Message-ID: Hi everyone, I've been trying ways to provide MOH in background of Lua script (searching and found few way) but none of them really satisfied me. I think it may implement in the same way of record_session function. So I need your advises if it is possible or not? It's a really good idea? Thank you! vutamhoan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111005/df43f08d/attachment-0001.html From cmrienzo at gmail.com Thu Oct 6 04:35:48 2011 From: cmrienzo at gmail.com (Christopher Rienzo) Date: Wed, 5 Oct 2011 20:35:48 -0400 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: <94715a0a3f69399835a066ea4d8ea62c@gw.ind.rwth-aachen.de> References: <94715a0a3f69399835a066ea4d8ea62c@gw.ind.rwth-aachen.de> Message-ID: 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 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 From anthony.minessale at gmail.com Thu Oct 6 19:08:47 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 6 Oct 2011 10:08:47 -0500 Subject: [Freeswitch-dev] MOH in async mode is possible? In-Reply-To: References: Message-ID: I believe I already answered this question when you asked on irc. But I'll answer it again so it can be logged. To put it simply you are barking up the wrong tree trying to do asynchronous things from a lua script. Change your paradigm in your brain to think about it more like a GUI loop. You only have 1 thread and you want to make the channel do something by itself in the background but your script is already executing.... If you want this you need 2 threads. There are several ways to get this but you have to choose one. 1) Use ESL and an external application that can be running in your own process so you can perform async operations. 2) Send the channel to the "park" app but spawn your lua script with luarun via the dialplan variable. Then use the uuid argv[0] as the arg to a new session constructor that will hook the channel to your object and you can tell the channel to do things as long as you only execute them async session:execute("foo::bar") Remember if you are not running the session in its own thread this will block and the whole idea is sort of messy but its possible to do this.. if you script dies for instance your channel will not hangup. 3) Write your program in C where you have full access to threads etc..... (THIS IS THE BEST CHOICE IMHO) On Tue, Oct 4, 2011 at 7:46 PM, Vu Quang Hoa wrote: > Hi everyone, > I've been trying ways to provide MOH in background of Lua script (searching > and found few way) but none of them really?satisfied me. I think it > may?implement in the same way of record_session function. So I need > your?advises?if it is possible or not? It's a really good idea? > Thank you! > vutamhoan > _______________________________________________ > 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 From kheimerl at cs.berkeley.edu Fri Oct 7 11:20:05 2011 From: kheimerl at cs.berkeley.edu (Kurtis Heimerl) Date: Fri, 7 Oct 2011 00:20:05 -0700 Subject: [Freeswitch-dev] questions on the new mod_sms In-Reply-To: References: <8FB5B399218C4C04829DA071F604B665@gmail.com> <65819E89FA654014A1FA2754F365E62B@gmail.com> Message-ID: I'm loving this module so far. Does everything mine does, and more. Glad to see this functionality supported in mainline. I do have a question though. I'm having a hell of a time generating an outgoing message. I tried the chat api function, but it seems to generate a new walk down the chatplan (ending in a dp+ handler not found error). I similarly can't generate a message from the CLI. Is the "send" function going to provide this (and it's just not finished) or am I missing something else? I'm building a little chat routing chatplan, and I need to be able to redirect received messages to another user. I'll be happy to add to the wiki once this is figured out. On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale wrote: > message is a standard event so its the same api as always with extra > method chat_execute to run the apps. > > message:chat_execute("reply", "you said: ${_body}"); > > > > > On Wed, Sep 28, 2011 at 11:59 PM, Seven Du wrote: >> >> Seven, >> Let me know if you have started a wiki page yet. I would like to help get >> this documented. I need to write up a story on fs.org as well. I just >> haven't had a chance to test drive this new module, but I will definitely be >> doing so as soon as I can. >> -MC >> >> See ?http://wiki.freeswitch.org/wiki/Mod_sms >> It's incomplete. I haven't figured out how the "message" in lua works, e.g. >> ?message:reply or message:execute(reply, blah) etc. ?Maybe it's haven't been >> implemented or is there other ways to doing that? >> Anyone have better idea feel free to update the page. >> Thanks. >> 7. >> >> _______________________________________________ >> 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, 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 > From succer110 at tiscali.it Fri Oct 7 16:13:16 2011 From: succer110 at tiscali.it (succer110 at tiscali.it) Date: Fri, 7 Oct 2011 14:13:16 +0200 (CEST) Subject: [Freeswitch-dev] lua executing application after hangup Message-ID: <29621739.102741317989596455.JavaMail.defaultUser@defaultHost> Hi, I'm writing some part of dialplan in lua and after bridge a have to execute an application. I receive this: "Channel is hungup, aborting execution of application: antani-postdial". Of course i've tried all the kind of app interface flags.my dialstring contains right variable:2011-10-07 13:07:51.817103 [DEBUG] switch_event.c:1168 Parsing variable [continue_on_fail]=[true]2011-10-07 13:07:51.817103 [DEBUG] switch_event.c:1168 Parsing variable [hangup_after_bridge]=[false] p.s. in the docs i can find "SAF_ZOMBIE_EXEC" but it's not in my switch_types.h what can i do to exec my postdial application in my lua? dialstring="{ignore_early_media=true,originate_timeout=90,continue_on_fail=true,hangup_after_bridge=false}"..dialstringlocal sessionB = freeswitch.Session(dialstring);freeswitch.bridge(session, sessionB)session:execute("antani-postdial", i); Thank you! =) E' nata indoona: chiama, videochiama e messaggia Gratis. Scarica indoona per iPhone, Android e PC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111007/34ebf708/attachment.html From anthony.minessale at gmail.com Fri Oct 7 19:28:51 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Fri, 7 Oct 2011 10:28:51 -0500 Subject: [Freeswitch-dev] questions on the new mod_sms In-Reply-To: References: <8FB5B399218C4C04829DA071F604B665@gmail.com> <65819E89FA654014A1FA2754F365E62B@gmail.com> Message-ID: I had a few bugs i guess. Try again on latest it should work with chat api now. Also here is a small esl perl script example: require ESL; my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon"); my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); $e->addHeader("to", "1004\@www.freeswitch.org"); $e->addHeader("from", "testing\@foobar.com"); $e->addHeader("sip_profile", "internal"); $e->addHeader("dest_proto", "sip"); $e->addBody(shift); $con->sendEvent($e); On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl wrote: > I'm loving this module so far. Does everything mine does, and more. > Glad to see this functionality supported in mainline. > > I do have a question though. I'm having a hell of a time generating an > outgoing message. I tried the chat api function, but it seems to > generate a new walk down the chatplan (ending in a dp+ handler not > found error). I similarly can't generate a message from the CLI. Is > the "send" function going to provide this (and it's just not finished) > or am I missing something else? I'm building a little chat routing > chatplan, and I need to be able to redirect received messages to > another user. > > I'll be happy to add to the wiki once this is figured out. > > On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale > wrote: >> message is a standard event so its the same api as always with extra >> method chat_execute to run the apps. >> >> message:chat_execute("reply", "you said: ${_body}"); >> >> >> >> >> On Wed, Sep 28, 2011 at 11:59 PM, Seven Du wrote: >>> >>> Seven, >>> Let me know if you have started a wiki page yet. I would like to help get >>> this documented. I need to write up a story on fs.org as well. I just >>> haven't had a chance to test drive this new module, but I will definitely be >>> doing so as soon as I can. >>> -MC >>> >>> See ?http://wiki.freeswitch.org/wiki/Mod_sms >>> It's incomplete. I haven't figured out how the "message" in lua works, e.g. >>> ?message:reply or message:execute(reply, blah) etc. ?Maybe it's haven't been >>> implemented or is there other ways to doing that? >>> Anyone have better idea feel free to update the page. >>> Thanks. >>> 7. >>> >>> _______________________________________________ >>> 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, 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 From anthony.minessale at gmail.com Fri Oct 7 21:14:12 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Fri, 7 Oct 2011 12:14:12 -0500 Subject: [Freeswitch-dev] lua executing application after hangup In-Reply-To: <29621739.102741317989596455.JavaMail.defaultUser@defaultHost> References: <29621739.102741317989596455.JavaMail.defaultUser@defaultHost> Message-ID: you need to update to lastest git and execute the app set_zombie_exec before the channel has hungup. On Fri, Oct 7, 2011 at 7:13 AM, succer110 at tiscali.it wrote: > Hi, > I'm writing some part of dialplan in lua and after bridge a have to execute > an application. > I receive this:?"Channel is hungup, aborting execution of application: > antani-postdial". > Of course i've tried all the kind of app interface flags. > my dialstring contains right variable: > 2011-10-07 13:07:51.817103 [DEBUG] switch_event.c:1168 Parsing variable > [continue_on_fail]=[true] > 2011-10-07 13:07:51.817103 [DEBUG] switch_event.c:1168 Parsing variable > [hangup_after_bridge]=[false] > p.s. > in the docs i can find "SAF_ZOMBIE_EXEC" but it's not in my switch_types.h > > what can i do to exec my postdial application in my lua? > > dialstring="{ignore_early_media=true,originate_timeout=90,continue_on_fail=true,hangup_after_bridge=false}"..dialstring > local sessionB = freeswitch.Session(dialstring); > freeswitch.bridge(session, sessionB) > session:execute("antani-postdial", i); > > > Thank you! =) > > > > E' nata indoona: chiama, videochiama e messaggia Gratis. > Scarica indoona per iPhone, Android e PC > > > _______________________________________________ > 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 From kheimerl at cs.berkeley.edu Fri Oct 7 22:04:01 2011 From: kheimerl at cs.berkeley.edu (Kurtis Heimerl) Date: Fri, 7 Oct 2011 11:04:01 -0700 Subject: [Freeswitch-dev] questions on the new mod_sms In-Reply-To: References: <8FB5B399218C4C04829DA071F604B665@gmail.com> <65819E89FA654014A1FA2754F365E62B@gmail.com> Message-ID: I think the build is broken: cc1: warnings being treated as errors src/switch_loadable_module.c: In function ?do_chat_send?: src/switch_loadable_module.c:552: error: format not a string literal and no format arguments make[1]: *** [libfreeswitch_la-switch_loadable_module.lo] Error 1 make: *** [all] Error 2 I tried a fresh configure and am seeing the same issue, so I don't think it's me being an idiot. On Fri, Oct 7, 2011 at 8:28 AM, Anthony Minessale wrote: > I had a few bugs i guess. ?Try again on latest it should work with chat api now. > > Also here is a small esl perl script example: > > > require ESL; > > my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon"); > > my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); > $e->addHeader("to", "1004\@www.freeswitch.org"); > $e->addHeader("from", "testing\@foobar.com"); > $e->addHeader("sip_profile", "internal"); > $e->addHeader("dest_proto", "sip"); > $e->addBody(shift); > > $con->sendEvent($e); > > > > On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl wrote: >> I'm loving this module so far. Does everything mine does, and more. >> Glad to see this functionality supported in mainline. >> >> I do have a question though. I'm having a hell of a time generating an >> outgoing message. I tried the chat api function, but it seems to >> generate a new walk down the chatplan (ending in a dp+ handler not >> found error). I similarly can't generate a message from the CLI. Is >> the "send" function going to provide this (and it's just not finished) >> or am I missing something else? I'm building a little chat routing >> chatplan, and I need to be able to redirect received messages to >> another user. >> >> I'll be happy to add to the wiki once this is figured out. >> >> On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale >> wrote: >>> message is a standard event so its the same api as always with extra >>> method chat_execute to run the apps. >>> >>> message:chat_execute("reply", "you said: ${_body}"); >>> >>> >>> >>> >>> On Wed, Sep 28, 2011 at 11:59 PM, Seven Du wrote: >>>> >>>> Seven, >>>> Let me know if you have started a wiki page yet. I would like to help get >>>> this documented. I need to write up a story on fs.org as well. I just >>>> haven't had a chance to test drive this new module, but I will definitely be >>>> doing so as soon as I can. >>>> -MC >>>> >>>> See ?http://wiki.freeswitch.org/wiki/Mod_sms >>>> It's incomplete. I haven't figured out how the "message" in lua works, e.g. >>>> ?message:reply or message:execute(reply, blah) etc. ?Maybe it's haven't been >>>> implemented or is there other ways to doing that? >>>> Anyone have better idea feel free to update the page. >>>> Thanks. >>>> 7. >>>> >>>> _______________________________________________ >>>> 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, 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, 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 > From anthony.minessale at gmail.com Fri Oct 7 22:23:34 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Fri, 7 Oct 2011 13:23:34 -0500 Subject: [Freeswitch-dev] questions on the new mod_sms In-Reply-To: References: <8FB5B399218C4C04829DA071F604B665@gmail.com> <65819E89FA654014A1FA2754F365E62B@gmail.com> Message-ID: hm.... my compiler didn't mind that, fixed ..... On Fri, Oct 7, 2011 at 1:04 PM, Kurtis Heimerl wrote: > I think the build is broken: > > cc1: warnings being treated as errors > src/switch_loadable_module.c: In function ?do_chat_send?: > src/switch_loadable_module.c:552: error: format not a string literal > and no format arguments > make[1]: *** [libfreeswitch_la-switch_loadable_module.lo] Error 1 > make: *** [all] Error 2 > > I tried a fresh configure and am seeing the same issue, so I don't > think it's me being an idiot. > > On Fri, Oct 7, 2011 at 8:28 AM, Anthony Minessale > wrote: >> I had a few bugs i guess. ?Try again on latest it should work with chat api now. >> >> Also here is a small esl perl script example: >> >> >> require ESL; >> >> my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon"); >> >> my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); >> $e->addHeader("to", "1004\@www.freeswitch.org"); >> $e->addHeader("from", "testing\@foobar.com"); >> $e->addHeader("sip_profile", "internal"); >> $e->addHeader("dest_proto", "sip"); >> $e->addBody(shift); >> >> $con->sendEvent($e); >> >> >> >> On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl wrote: >>> I'm loving this module so far. Does everything mine does, and more. >>> Glad to see this functionality supported in mainline. >>> >>> I do have a question though. I'm having a hell of a time generating an >>> outgoing message. I tried the chat api function, but it seems to >>> generate a new walk down the chatplan (ending in a dp+ handler not >>> found error). I similarly can't generate a message from the CLI. Is >>> the "send" function going to provide this (and it's just not finished) >>> or am I missing something else? I'm building a little chat routing >>> chatplan, and I need to be able to redirect received messages to >>> another user. >>> >>> I'll be happy to add to the wiki once this is figured out. >>> >>> On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale >>> wrote: >>>> message is a standard event so its the same api as always with extra >>>> method chat_execute to run the apps. >>>> >>>> message:chat_execute("reply", "you said: ${_body}"); >>>> >>>> >>>> >>>> >>>> On Wed, Sep 28, 2011 at 11:59 PM, Seven Du wrote: >>>>> >>>>> Seven, >>>>> Let me know if you have started a wiki page yet. I would like to help get >>>>> this documented. I need to write up a story on fs.org as well. I just >>>>> haven't had a chance to test drive this new module, but I will definitely be >>>>> doing so as soon as I can. >>>>> -MC >>>>> >>>>> See ?http://wiki.freeswitch.org/wiki/Mod_sms >>>>> It's incomplete. I haven't figured out how the "message" in lua works, e.g. >>>>> ?message:reply or message:execute(reply, blah) etc. ?Maybe it's haven't been >>>>> implemented or is there other ways to doing that? >>>>> Anyone have better idea feel free to update the page. >>>>> Thanks. >>>>> 7. >>>>> >>>>> _______________________________________________ >>>>> 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, 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, 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 From kheimerl at cs.berkeley.edu Fri Oct 7 22:41:59 2011 From: kheimerl at cs.berkeley.edu (Kurtis Heimerl) Date: Fri, 7 Oct 2011 11:41:59 -0700 Subject: [Freeswitch-dev] questions on the new mod_sms In-Reply-To: References: <8FB5B399218C4C04829DA071F604B665@gmail.com> <65819E89FA654014A1FA2754F365E62B@gmail.com> Message-ID: Build worked, thanks! I'll see if chat works this afternoon. On Fri, Oct 7, 2011 at 11:23 AM, Anthony Minessale wrote: > hm.... my compiler didn't mind that, fixed ..... > > > On Fri, Oct 7, 2011 at 1:04 PM, Kurtis Heimerl wrote: >> I think the build is broken: >> >> cc1: warnings being treated as errors >> src/switch_loadable_module.c: In function ?do_chat_send?: >> src/switch_loadable_module.c:552: error: format not a string literal >> and no format arguments >> make[1]: *** [libfreeswitch_la-switch_loadable_module.lo] Error 1 >> make: *** [all] Error 2 >> >> I tried a fresh configure and am seeing the same issue, so I don't >> think it's me being an idiot. >> >> On Fri, Oct 7, 2011 at 8:28 AM, Anthony Minessale >> wrote: >>> I had a few bugs i guess. ?Try again on latest it should work with chat api now. >>> >>> Also here is a small esl perl script example: >>> >>> >>> require ESL; >>> >>> my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon"); >>> >>> my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE"); >>> $e->addHeader("to", "1004\@www.freeswitch.org"); >>> $e->addHeader("from", "testing\@foobar.com"); >>> $e->addHeader("sip_profile", "internal"); >>> $e->addHeader("dest_proto", "sip"); >>> $e->addBody(shift); >>> >>> $con->sendEvent($e); >>> >>> >>> >>> On Fri, Oct 7, 2011 at 2:20 AM, Kurtis Heimerl wrote: >>>> I'm loving this module so far. Does everything mine does, and more. >>>> Glad to see this functionality supported in mainline. >>>> >>>> I do have a question though. I'm having a hell of a time generating an >>>> outgoing message. I tried the chat api function, but it seems to >>>> generate a new walk down the chatplan (ending in a dp+ handler not >>>> found error). I similarly can't generate a message from the CLI. Is >>>> the "send" function going to provide this (and it's just not finished) >>>> or am I missing something else? I'm building a little chat routing >>>> chatplan, and I need to be able to redirect received messages to >>>> another user. >>>> >>>> I'll be happy to add to the wiki once this is figured out. >>>> >>>> On Thu, Sep 29, 2011 at 8:45 AM, Anthony Minessale >>>> wrote: >>>>> message is a standard event so its the same api as always with extra >>>>> method chat_execute to run the apps. >>>>> >>>>> message:chat_execute("reply", "you said: ${_body}"); >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Sep 28, 2011 at 11:59 PM, Seven Du wrote: >>>>>> >>>>>> Seven, >>>>>> Let me know if you have started a wiki page yet. I would like to help get >>>>>> this documented. I need to write up a story on fs.org as well. I just >>>>>> haven't had a chance to test drive this new module, but I will definitely be >>>>>> doing so as soon as I can. >>>>>> -MC >>>>>> >>>>>> See ?http://wiki.freeswitch.org/wiki/Mod_sms >>>>>> It's incomplete. I haven't figured out how the "message" in lua works, e.g. >>>>>> ?message:reply or message:execute(reply, blah) etc. ?Maybe it's haven't been >>>>>> implemented or is there other ways to doing that? >>>>>> Anyone have better idea feel free to update the page. >>>>>> Thanks. >>>>>> 7. >>>>>> >>>>>> _______________________________________________ >>>>>> 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, 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, 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, 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 > From vutamhoan at gmail.com Thu Oct 6 04:37:17 2011 From: vutamhoan at gmail.com (Vu Quang Hoa) Date: Thu, 6 Oct 2011 07:37:17 +0700 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: <94715a0a3f69399835a066ea4d8ea62c@gw.ind.rwth-aachen.de> References: <94715a0a3f69399835a066ea4d8ea62c@gw.ind.rwth-aachen.de> Message-ID: 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 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/20111006/192d576a/attachment-0001.html From vutamhoan at gmail.com Fri Oct 7 04:54:52 2011 From: vutamhoan at gmail.com (Vu Quang Hoa) Date: Fri, 7 Oct 2011 07:54:52 +0700 Subject: [Freeswitch-dev] MOH in async mode is possible? In-Reply-To: References: Message-ID: Thanks Anthony, I sent this message before chat with you on irc. Of cause I tried to search & search many time before asking you (I love Google) and I had already tried ESL but it still blocks any LUA session call (like session:foo()). Now I'm trying to implement MOH with async mode like record_session concept (using mod_soundtouch sample code). Hope that it will be ready within few days. -vutamhoan On Thu, Oct 6, 2011 at 10:08 PM, Anthony Minessale < anthony.minessale at gmail.com> wrote: > I believe I already answered this question when you asked on irc. But > I'll answer it again so it can be logged. > > To put it simply you are barking up the wrong tree trying to do > asynchronous things from a lua script. > Change your paradigm in your brain to think about it more like a GUI loop. > > You only have 1 thread and you want to make the channel do something > by itself in the background but your script is already executing.... > > > If you want this you need 2 threads. There are several ways to get > this but you have to choose one. > > > 1) Use ESL and an external application that can be running in your own > process so you can perform async operations. > 2) Send the channel to the "park" app but spawn your lua script with > luarun via the dialplan variable. > > > > > Then use the uuid argv[0] as the arg to a new session constructor that > will hook the channel to your object and you can tell the channel to > do things as long as you only execute them async > session:execute("foo::bar") > Remember if you are not running the session in its own thread this > will block and the whole idea is sort of messy but its possible to do > this.. if you script dies for instance your channel will not hangup. > > > > 3) Write your program in C where you have full access to threads > etc..... (THIS IS THE BEST CHOICE IMHO) > > > > > > > > > > > > > > > > > On Tue, Oct 4, 2011 at 7:46 PM, Vu Quang Hoa wrote: > > Hi everyone, > > I've been trying ways to provide MOH in background of Lua script > (searching > > and found few way) but none of them really satisfied me. I think it > > may implement in the same way of record_session function. So I need > > your advises if it is possible or not? It's a really good idea? > > Thank you! > > vutamhoan > > _______________________________________________ > > 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, 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/20111007/2cfc4b9b/attachment-0001.html From anthony.minessale at gmail.com Mon Oct 10 19:17:36 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 10 Oct 2011 10:17:36 -0500 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: References: <94715a0a3f69399835a066ea4d8ea62c@gw.ind.rwth-aachen.de> Message-ID: it calls the callback with type set to SWITCH_ABC_TYPE_CLOSE On Wed, Oct 5, 2011 at 7:37 PM, Vu Quang Hoa 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 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 From msc at freeswitch.org Wed Oct 12 21:05:05 2011 From: msc at freeswitch.org (Michael Collins) Date: Wed, 12 Oct 2011 10:05:05 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Right Now! - Phil Zimmermann Message-ID: Hey all, It seems my first email to the list didn't make it. Just a reminder that Philip Zimmermann of PGP fame is coming in to talk about VoIP security, ZRTP and Zfone. Please join us now! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111012/3e5daac9/attachment.html From jcherukuri_necc at yahoo.com Thu Oct 13 00:50:48 2011 From: jcherukuri_necc at yahoo.com (Jyotshna Cherukuri) Date: Wed, 12 Oct 2011 13:50:48 -0700 (PDT) Subject: [Freeswitch-dev] Gracefully terminate ON HOLD party with "rtp-hold-timeout-sec" parameter In-Reply-To: <1315515545.44633.YahooMailNeo@web122515.mail.ne1.yahoo.com> References: <1315515545.44633.YahooMailNeo@web122515.mail.ne1.yahoo.com> Message-ID: <1318452648.62651.YahooMailNeo@web122510.mail.ne1.yahoo.com> Hi, I was wondering if there is any way I could configure in the dialplan to gracefully terminate the ON HOLD party by playing a recording ("Please try the call again later as the other party is experiencing some network isseus")at the end of hold music rather than simply disconnecting the call as what is doing right now. Any help is greatly appreciated. Thanks in advance Regards Jyotshna -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111012/cdf43bac/attachment.html From lg at perfectitchina.com Mon Oct 10 18:37:00 2011 From: lg at perfectitchina.com (lg) Date: Mon, 10 Oct 2011 10:37:00 -0400 Subject: [Freeswitch-dev] FreeSWITCH dialstring/channel variables Message-ID: One quick question here. Is it any dialstring to control dial function? Like as,i would change the dial legs sequence as dial caller number first and then when caller pickup the call, dial the called destination number ( as the same as "originate dial_string destination_number" function). Your hint or short response would be much appreciated. Thanks, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111010/71d120ac/attachment.html From xin at ind.rwth-aachen.de Mon Oct 10 20:03:33 2011 From: xin at ind.rwth-aachen.de (Han Xin) Date: Mon, 10 Oct 2011 18:03:33 +0200 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: Message-ID: yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the media bugs are automatically removed with the DEBUG log infomation. Now the problem is the session ending. Detailed situation description: I added two media bugs to both local session and remote session of one call. When I ended the call, the media bugs are removed first, and then the session should be ended. But only the local session is ended correctly. When I press F3 and F4 to show current channels and calls, the remote channel and call info is till there. But when I try to dump uuid to get channel infomation with the cmd "uuid_dump remote_session_uuid", it says there is no such channel! here is some related log info: 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local variable store! 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1332 sofia/internal/sip:1001 at 137.226.198.252 :5060 skip receive message [UNBRIDGE] (channel is hungup already) 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1335 sofia/internal/1000 at asterisk skip receive message [UNBRIDGE] (channel is hungup already) 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 Removing BUG from sofia/internal/sip:1001 at 137.226.198.252 :5060 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 sofia/internal/sip:1001 at 137.226.198.252 :5060 Overriding SIP cause 480 with 200 from the other leg 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging up, cause: NORMAL_CLEARING 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 Sending BYE to sofia/internal/sip:1001 at 137.226.198.252 :5060 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:2235 sofia/internal/1000 at asterisk skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:417 (sofia/internal/1000 at asterisk ) State EXECUTE going to sleep 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000 at asterisk ) Running State Change CS_HANGUP 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local variable store! 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 Removing BUG from sofia/internal/1000 at asterisk 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1000 at asterisk ) State HANGUP 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 sofia/internal/1000 at asterisk Overriding SIP cause 480 with 200 from the other leg 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel sofia/internal/1000 at asterisk hanging up, cause: NORMAL_CLEARING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 sofia/internal/1000 at asterisk Standard HANGUP, cause: NORMAL_CLEARING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard HANGUP, cause: NORMAL_CLEARING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP going to sleep 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change CS_HANGUP -> CS_REPORTING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running State Change CS_REPORTING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard REPORTING, cause: NORMAL_CLEARING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING going to sleep 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change CS_REPORTING -> CS_DESTROY 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Locked, Waiting on external entities 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1000 at asterisk ) State HANGUP going to sleep 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> CS_REPORTING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/1000 at asterisk [BREAK] 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000 at asterisk ) Running State Change CS_REPORTING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/1000 at asterisk ) State REPORTING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 sofia/internal/1000 at asterisk Standard REPORTING, cause: NORMAL_CLEARING 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/1000 at asterisk ) State REPORTING going to sleep 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 (sofia/internal/1000 at asterisk ) State Change CS_REPORTING -> CS_DESTROY 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/1000 at asterisk [BREAK] 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on external entities 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1369 Session 7 (sofia/internal/1000 at asterisk ) Ended 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1371 Close Channel sofia/internal/1000 at asterisk [CS_DESTROY] 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:491 (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> DOWN 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:494 (sofia/internal/1000 at asterisk ) Running State Change CS_DESTROY 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 (sofia/internal/1000 at asterisk ) State DESTROY 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 sofia/internal/1000 at asterisk SOFIA DESTROY 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:86 sofia/internal/1000 at asterisk Standard DESTROY 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 (sofia/internal/1000 at asterisk ) State DESTROY going to sleep Could anyone give me some hints why the remote session is not ended automatically? ----------------urspr?ngliche Nachricht----------------- Von: "Anthony Minessale" anthony.minessale at gmail.com An: freeswitch-dev at lists.freeswitch.org Datum: Mon, 10 Oct 2011 10:17:36 -0500 ------------------------------------------------- > 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/freeswit >>> ch-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, 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-d > ev > http://www.freeswitch.org > -- From anthony.minessale at gmail.com Thu Oct 13 02:06:41 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Wed, 12 Oct 2011 17:06:41 -0500 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: References: Message-ID: looks like you have some custom mods maybe you used switch_core_session_locate and did not rwunlock it? are you using latest GIT ? On Mon, Oct 10, 2011 at 11:03 AM, Han Xin wrote: > ?yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the media bugs are automatically removed with the DEBUG log infomation. Now the problem is the session ending. > > Detailed situation description: I added two media bugs to both local session and remote session of one call. When I ended the call, the media bugs are removed first, and then the session should be ended. But only the local session is ended correctly. > When I press F3 and F4 to show current channels and calls, the remote channel and call info is till there. But when I try to dump uuid to get channel infomation with the cmd "uuid_dump remote_session_uuid", it says there is no such channel! > > here is some related log info: > > 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local variable store! > 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1332 sofia/internal/sip:1001 at 137.226.198.252 :5060 skip receive message [UNBRIDGE] (channel is hungup already) > 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1335 sofia/internal/1000 at asterisk skip receive message [UNBRIDGE] (channel is hungup already) > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 Removing BUG from sofia/internal/sip:1001 at 137.226.198.252 :5060 > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP > 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 sofia/internal/sip:1001 at 137.226.198.252 :5060 Overriding SIP cause 480 with 200 from the other leg > 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging up, cause: NORMAL_CLEARING > 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 Sending BYE to sofia/internal/sip:1001 at 137.226.198.252 :5060 > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:2235 sofia/internal/1000 at asterisk skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:417 (sofia/internal/1000 at asterisk ) State EXECUTE going to sleep > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000 at asterisk ) Running State Change CS_HANGUP > 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local variable store! > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 Removing BUG from sofia/internal/1000 at asterisk > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1000 at asterisk ) State HANGUP > 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 sofia/internal/1000 at asterisk Overriding SIP cause 480 with 200 from the other leg > 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel sofia/internal/1000 at asterisk hanging up, cause: NORMAL_CLEARING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 sofia/internal/1000 at asterisk Standard HANGUP, cause: NORMAL_CLEARING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard HANGUP, cause: NORMAL_CLEARING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP going to sleep > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change CS_HANGUP -> CS_REPORTING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running State Change CS_REPORTING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard REPORTING, cause: NORMAL_CLEARING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING going to sleep > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change CS_REPORTING -> CS_DESTROY > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Locked, Waiting on external entities > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 (sofia/internal/1000 at asterisk ) State HANGUP going to sleep > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> CS_REPORTING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/1000 at asterisk [BREAK] > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/1000 at asterisk ) Running State Change CS_REPORTING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/1000 at asterisk ) State REPORTING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 sofia/internal/1000 at asterisk Standard REPORTING, cause: NORMAL_CLEARING > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/1000 at asterisk ) State REPORTING going to sleep > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 (sofia/internal/1000 at asterisk ) State Change CS_REPORTING -> CS_DESTROY > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send signal sofia/internal/1000 at asterisk [BREAK] > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on external entities > 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1369 Session 7 (sofia/internal/1000 at asterisk ) Ended > 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1371 Close Channel sofia/internal/1000 at asterisk [CS_DESTROY] > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:491 (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> DOWN > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:494 (sofia/internal/1000 at asterisk ) Running State Change CS_DESTROY > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 (sofia/internal/1000 at asterisk ) State DESTROY > 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 sofia/internal/1000 at asterisk SOFIA DESTROY > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:86 sofia/internal/1000 at asterisk Standard DESTROY > 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 (sofia/internal/1000 at asterisk ) State DESTROY going to sleep > > Could anyone give me some hints why the remote session is not ended automatically? > > > ----------------urspr?ngliche Nachricht----------------- > Von: "Anthony Minessale" anthony.minessale at gmail.com > An: freeswitch-dev at lists.freeswitch.org > Datum: Mon, 10 Oct 2011 10:17:36 -0500 > ------------------------------------------------- > > >> 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/freeswit >>>> ch-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, 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-d >> ev >> 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 From sunwood360 at gmail.com Thu Oct 13 04:13:44 2011 From: sunwood360 at gmail.com (envelopes envelopes) Date: Wed, 12 Oct 2011 17:13:44 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Right Now! - Phil Zimmermann In-Reply-To: References: Message-ID: Missed the event, is there a recorded archive? On Oct 12, 2011 10:06 AM, "Michael Collins" wrote: > Hey all, > > It seems my first email to the list didn't make it. Just a reminder that > Philip Zimmermann of PGP fame is coming in to talk about VoIP security, ZRTP > and Zfone. Please join us now! > > -Michael > > _______________________________________________ > 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/20111012/7f78104c/attachment.html From xin at ind.rwth-aachen.de Thu Oct 13 11:19:13 2011 From: xin at ind.rwth-aachen.de (Han Xin) Date: Thu, 13 Oct 2011 09:19:13 +0200 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: Message-ID: <185efa8a4b35596b4e59ca33f58b19a0@gw.ind.rwth-aachen.de> yes I use a custom mod and the latest git on Oct 10 but I did not use the function "switch_core_session_locate". ----------------urspr?ngliche Nachricht----------------- Von: "Anthony Minessale" anthony.minessale at gmail.com An: freeswitch-dev at lists.freeswitch.org Datum: Wed, 12 Oct 2011 17:06:41 -0500 ------------------------------------------------- > looks like you have some custom mods maybe you used > switch_core_session_locate and did not rwunlock it? > are you using latest GIT ? > > > On Mon, Oct 10, 2011 at 11:03 AM, Han Xin xin at ind.rwth-aachen.de wrote: >> yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the media bugs are >> automatically removed with the DEBUG log infomation. Now the problem is the >> session ending. >> >> Detailed situation description: I added two media bugs to both local session >> and remote session of one call. When I ended the call, the media bugs are removed >> first, and then the session should be ended. But only the local session is ended >> correctly. >> When I press F3 and F4 to show current channels and calls, the remote channel >> and call info is till there. But when I try to dump uuid to get channel infomation >> with the cmd "uuid_dump remote_session_uuid", it says there is no such >> channel! >> >> here is some related log info: >> >> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >> 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local variable store! >> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1332 >> sofia/internal/sip:1001 at 137.226.198.252 :5060 skip receive message >> [UNBRIDGE] (channel is hungup already) >> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1335 >> sofia/internal/1000 at asterisk skip receive message [UNBRIDGE] (channel is >> hungup already) >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 >> Removing BUG from sofia/internal/sip:1001 at 137.226.198.252 :5060 >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP >> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >> sofia/internal/sip:1001 at 137.226.198.252 :5060 Overriding SIP cause 480 >> with 200 from the other leg >> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >> sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging up, cause: >> NORMAL_CLEARING >> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 Sending BYE to >> sofia/internal/sip:1001 at 137.226.198.252 :5060 >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:2235 >> sofia/internal/1000 at asterisk skip receive message >> [APPLICATION_EXEC_COMPLETE] (channel is hungup already) >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:417 >> (sofia/internal/1000 at asterisk ) State EXECUTE going to sleep >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 >> (sofia/internal/1000 at asterisk ) Running State Change CS_HANGUP >> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >> 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local variable store! >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 >> Removing BUG from sofia/internal/1000 at asterisk >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >> (sofia/internal/1000 at asterisk ) State HANGUP >> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >> sofia/internal/1000 at asterisk Overriding SIP cause 480 with 200 from the >> other leg >> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >> sofia/internal/1000 at asterisk hanging up, cause: NORMAL_CLEARING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 >> sofia/internal/1000 at asterisk Standard HANGUP, cause: NORMAL_CLEARING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 >> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard HANGUP, cause: >> NORMAL_CLEARING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP going to >> sleep >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 >> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change CS_HANGUP >> -> CS_REPORTING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 >> (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running State Change >> CS_REPORTING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 >> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard REPORTING, >> cause: NORMAL_CLEARING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING going >> to sleep >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 >> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change >> CS_REPORTING -> CS_DESTROY >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session >> 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Locked, Waiting on >> external entities >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >> (sofia/internal/1000 at asterisk ) State HANGUP going to sleep >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 >> (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> CS_REPORTING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >> signal sofia/internal/1000 at asterisk [BREAK] >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 >> (sofia/internal/1000 at asterisk ) Running State Change CS_REPORTING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >> (sofia/internal/1000 at asterisk ) State REPORTING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 >> sofia/internal/1000 at asterisk Standard REPORTING, cause: >> NORMAL_CLEARING >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >> (sofia/internal/1000 at asterisk ) State REPORTING going to sleep >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 >> (sofia/internal/1000 at asterisk ) State Change CS_REPORTING -> CS_DESTROY >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >> signal sofia/internal/1000 at asterisk [BREAK] >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session >> 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on external entities >> 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1369 >> Session 7 (sofia/internal/1000 at asterisk ) Ended >> 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1371 Close >> Channel sofia/internal/1000 at asterisk [CS_DESTROY] >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:491 >> (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> DOWN >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:494 >> (sofia/internal/1000 at asterisk ) Running State Change CS_DESTROY >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 >> (sofia/internal/1000 at asterisk ) State DESTROY >> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 >> sofia/internal/1000 at asterisk SOFIA DESTROY >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:86 >> sofia/internal/1000 at asterisk Standard DESTROY >> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 >> (sofia/internal/1000 at asterisk ) State DESTROY going to sleep >> >> Could anyone give me some hints why the remote session is not ended >> automatically? >> >> >> ----------------urspr?ngliche Nachricht----------------- >> Von: "Anthony Minessale" anthony.minessale at gmail.com >> An: freeswitch-dev at lists.freeswitch.org >> Datum: Mon, 10 Oct 2011 10:17:36 -0500 >> ------------------------------------------------- >> >> >>> 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/free >>>>> swit >>>>> ch-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/freesw >>>> itch >>>> -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, 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/freeswit >>> ch-d >>> ev >>> 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, 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-d > ev > http://www.freeswitch.org > -- From gvmello at yx.cl Thu Oct 13 20:27:26 2011 From: gvmello at yx.cl (Glaucio Vaz de Mello) Date: Thu, 13 Oct 2011 13:27:26 -0300 Subject: [Freeswitch-dev] FreeTDM delay reconnecting E1/T1 Message-ID: Hi, I have a question for FreeTDM experts. When I have a T1/E1 ISDN-PRI link connected through Sangoma card, I can check signalling and physical status using this command: > ftdm sangoma_isdn show_spans wp1 span:wp1 physical:OK signalling:UP Unplugging E1/T1 cable some alarms are raised, but show_spans command still returns "OK" and "UP". After some time (more than one minute) I get the disconnected status: > ftdm sangoma_isdn show_spans wp1 span:wp1 physical:ALARMED signalling:DOWN Using sangoma wanpipemon command I can get disconnected status immediately: # wanpipemon -i w1g1 -c Ta Loss of Signal: ON My question is why FreeTDM takes this big delay to detect a disconnected cable? Is there a way to reduce this time? The same happens when I reconnect the cable, FreeTMD takes a minute or more to detect it. thanks, Glaucio -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111013/08a1d19c/attachment.html From anthony.minessale at gmail.com Fri Oct 14 00:55:35 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 13 Oct 2011 15:55:35 -0500 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: <185efa8a4b35596b4e59ca33f58b19a0@gw.ind.rwth-aachen.de> References: <185efa8a4b35596b4e59ca33f58b19a0@gw.ind.rwth-aachen.de> Message-ID: how about switch_ivr_originate() ? On Thu, Oct 13, 2011 at 2:19 AM, Han Xin wrote: > ?yes I use a custom mod and the latest git on Oct 10 but I did not use the function "switch_core_session_locate". > > ----------------urspr?ngliche Nachricht----------------- > Von: "Anthony Minessale" anthony.minessale at gmail.com > An: freeswitch-dev at lists.freeswitch.org > Datum: Wed, 12 Oct 2011 17:06:41 -0500 > ------------------------------------------------- > > >> looks like you have some custom mods maybe you used >> switch_core_session_locate and did not rwunlock it? >> are you using latest GIT ? >> >> >> On Mon, Oct 10, 2011 at 11:03 AM, Han Xin xin at ind.rwth-aachen.de wrote: >>> yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the media bugs are >>> automatically removed with the DEBUG log infomation. Now the problem is the >>> session ending. >>> >>> Detailed situation description: I added two media bugs to both local session >>> and remote session of one call. When I ended the call, the media bugs are removed >>> first, and then the session should be ended. But only the local session is ended >>> correctly. >>> When I press F3 and F4 to show current channels and calls, the remote channel >>> and call info is till there. But when I try to dump uuid to get channel infomation >>> with the cmd "uuid_dump remote_session_uuid", it says there is no such >>> channel! >>> >>> here is some related log info: >>> >>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>> 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local variable store! >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1332 >>> sofia/internal/sip:1001 at 137.226.198.252 :5060 skip receive message >>> [UNBRIDGE] (channel is hungup already) >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1335 >>> sofia/internal/1000 at asterisk skip receive message [UNBRIDGE] (channel is >>> hungup already) >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 >>> Removing BUG from sofia/internal/sip:1001 at 137.226.198.252 :5060 >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP >>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Overriding SIP cause 480 >>> with 200 from the other leg >>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >>> sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging up, cause: >>> NORMAL_CLEARING >>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 Sending BYE to >>> sofia/internal/sip:1001 at 137.226.198.252 :5060 >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:2235 >>> sofia/internal/1000 at asterisk skip receive message >>> [APPLICATION_EXEC_COMPLETE] (channel is hungup already) >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:417 >>> (sofia/internal/1000 at asterisk ) State EXECUTE going to sleep >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 >>> (sofia/internal/1000 at asterisk ) Running State Change CS_HANGUP >>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>> 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local variable store! >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_media_bug.c:480 >>> Removing BUG from sofia/internal/1000 at asterisk >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >>> (sofia/internal/1000 at asterisk ) State HANGUP >>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>> sofia/internal/1000 at asterisk Overriding SIP cause 480 with 200 from the >>> other leg >>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >>> sofia/internal/1000 at asterisk hanging up, cause: NORMAL_CLEARING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 >>> sofia/internal/1000 at asterisk Standard HANGUP, cause: NORMAL_CLEARING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:47 >>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard HANGUP, cause: >>> NORMAL_CLEARING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP going to >>> sleep >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 >>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change CS_HANGUP >>> -> CS_REPORTING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 >>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running State Change >>> CS_REPORTING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 >>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard REPORTING, >>> cause: NORMAL_CLEARING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State REPORTING going >>> to sleep >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 >>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change >>> CS_REPORTING -> CS_DESTROY >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session >>> 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Locked, Waiting on >>> external entities >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:602 >>> (sofia/internal/1000 at asterisk ) State HANGUP going to sleep >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:393 >>> (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> CS_REPORTING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >>> signal sofia/internal/1000 at asterisk [BREAK] >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:362 >>> (sofia/internal/1000 at asterisk ) Running State Change CS_REPORTING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >>> (sofia/internal/1000 at asterisk ) State REPORTING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:79 >>> sofia/internal/1000 at asterisk Standard REPORTING, cause: >>> NORMAL_CLEARING >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:662 >>> (sofia/internal/1000 at asterisk ) State REPORTING going to sleep >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:387 >>> (sofia/internal/1000 at asterisk ) State Change CS_REPORTING -> CS_DESTROY >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 Send >>> signal sofia/internal/1000 at asterisk [BREAK] >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 Session >>> 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on external entities >>> 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1369 >>> Session 7 (sofia/internal/1000 at asterisk ) Ended >>> 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1371 Close >>> Channel sofia/internal/1000 at asterisk [CS_DESTROY] >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:491 >>> (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> DOWN >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:494 >>> (sofia/internal/1000 at asterisk ) Running State Change CS_DESTROY >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 >>> (sofia/internal/1000 at asterisk ) State DESTROY >>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 >>> sofia/internal/1000 at asterisk SOFIA DESTROY >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:86 >>> sofia/internal/1000 at asterisk Standard DESTROY >>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_state_machine.c:504 >>> (sofia/internal/1000 at asterisk ) State DESTROY going to sleep >>> >>> Could anyone give me some hints why the remote session is not ended >>> automatically? >>> >>> >>> ----------------urspr?ngliche Nachricht----------------- >>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>> An: freeswitch-dev at lists.freeswitch.org >>> Datum: Mon, 10 Oct 2011 10:17:36 -0500 >>> ------------------------------------------------- >>> >>> >>>> 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/free >>>>>> swit >>>>>> ch-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/freesw >>>>> itch >>>>> -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, 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/freeswit >>>> ch-d >>>> ev >>>> 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, 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-d >> ev >> 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 From moises.silva at gmail.com Sat Oct 15 20:32:48 2011 From: moises.silva at gmail.com (Moises Silva) Date: Sat, 15 Oct 2011 12:32:48 -0400 Subject: [Freeswitch-dev] FreeTDM delay reconnecting E1/T1 In-Reply-To: References: Message-ID: On Thu, Oct 13, 2011 at 12:27 PM, Glaucio Vaz de Mello wrote: > My question is why FreeTDM takes this big delay to detect a disconnected > cable? Is there a way to reduce this time? > The same happens when I reconnect the cable, FreeTMD takes a minute or > more to detect it. > It should not be delayed. Did you try using "ftdm dump x x"? what does the physical status says in that case? If you can contact me on IRC and give me ssh I can take a look at your problem. *Moises Silva **Software Engineer, Development Manager*** msilva at sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 ** Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube VegaStream is now part of Sangoma! Ask us about both Gateway Appliances and Internal Gateways -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111015/cee966ec/attachment.html From xin at ind.rwth-aachen.de Mon Oct 17 11:38:34 2011 From: xin at ind.rwth-aachen.de (Han Xin) Date: Mon, 17 Oct 2011 09:38:34 +0200 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: Message-ID: <6393481560ec47e5dbad4efaad442de3@gw.ind.rwth-aachen.de> no, no use of ivr_originate function. I constructed a helper struct which include the remote session, could this cause the session releasing problem? ----------------urspr?ngliche Nachricht----------------- Von: "Anthony Minessale" anthony.minessale at gmail.com An: freeswitch-dev at lists.freeswitch.org Datum: Thu, 13 Oct 2011 15:55:35 -0500 ------------------------------------------------- > how about switch_ivr_originate() ? > > On Thu, Oct 13, 2011 at 2:19 AM, Han Xin xin at ind.rwth-aachen.de wrote: >> yes I use a custom mod and the latest git on Oct 10 but I did not use the function >> "switch_core_session_locate". >> >> ----------------urspr?ngliche Nachricht----------------- >> Von: "Anthony Minessale" anthony.minessale at gmail.com >> An: freeswitch-dev at lists.freeswitch.org >> Datum: Wed, 12 Oct 2011 17:06:41 -0500 >> ------------------------------------------------- >> >> >>> looks like you have some custom mods maybe you used >>> switch_core_session_locate and did not rwunlock it? >>> are you using latest GIT ? >>> >>> >>> On Mon, Oct 10, 2011 at 11:03 AM, Han Xin xin at ind.rwth-aachen.de wrote: >>>> yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the media >>>> bugs are >>>> automatically removed with the DEBUG log infomation. Now the problem >>>> is the >>>> session ending. >>>> >>>> Detailed situation description: I added two media bugs to both local >>>> session >>>> and remote session of one call. When I ended the call, the media bugs are >>>> removed >>>> first, and then the session should be ended. But only the local session >>>> is ended >>>> correctly. >>>> When I press F3 and F4 to show current channels and calls, the remote >>>> channel >>>> and call info is till there. But when I try to dump uuid to get channel >>>> infomation >>>> with the cmd "uuid_dump remote_session_uuid", it says there is no >>>> such >>>> channel! >>>> >>>> here is some related log info: >>>> >>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>> 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local variable >>>> store! >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1332 >>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 skip receive >>>> message >>>> [UNBRIDGE] (channel is hungup already) >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1335 >>>> sofia/internal/1000 at asterisk skip receive message [UNBRIDGE] >>>> (channel is >>>> hungup already) >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_media_bug.c:480 >>>> Removing BUG from sofia/internal/sip:1001 at 137.226.198.252 >>>> :5060 >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:602 >>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP >>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Overriding SIP >>>> cause 480 >>>> with 200 from the other leg >>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging up, >>>> cause: >>>> NORMAL_CLEARING >>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 Sending BYE >>>> to >>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:2235 >>>> sofia/internal/1000 at asterisk skip receive message >>>> [APPLICATION_EXEC_COMPLETE] (channel is hungup already) >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:417 >>>> (sofia/internal/1000 at asterisk ) State EXECUTE going to sleep >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:362 >>>> (sofia/internal/1000 at asterisk ) Running State Change CS_HANGUP >>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>> 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local variable >>>> store! >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_media_bug.c:480 >>>> Removing BUG from sofia/internal/1000 at asterisk >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:602 >>>> (sofia/internal/1000 at asterisk ) State HANGUP >>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>> sofia/internal/1000 at asterisk Overriding SIP cause 480 with 200 >>>> from the >>>> other leg >>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >>>> sofia/internal/1000 at asterisk hanging up, cause: >>>> NORMAL_CLEARING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:47 >>>> sofia/internal/1000 at asterisk Standard HANGUP, cause: >>>> NORMAL_CLEARING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:47 >>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard HANGUP, >>>> cause: >>>> NORMAL_CLEARING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:602 >>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP >>>> going to >>>> sleep >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:393 >>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change >>>> CS_HANGUP >>>> -> CS_REPORTING >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>> Send >>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:362 >>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running State >>>> Change >>>> CS_REPORTING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:662 >>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>> REPORTING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:79 >>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard >>>> REPORTING, >>>> cause: NORMAL_CLEARING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:662 >>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>> REPORTING going >>>> to sleep >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:387 >>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change >>>> CS_REPORTING -> CS_DESTROY >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>> Send >>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 >>>> Session >>>> 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Locked, >>>> Waiting on >>>> external entities >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:602 >>>> (sofia/internal/1000 at asterisk ) State HANGUP going to sleep >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:393 >>>> (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> >>>> CS_REPORTING >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>> Send >>>> signal sofia/internal/1000 at asterisk [BREAK] >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:362 >>>> (sofia/internal/1000 at asterisk ) Running State Change >>>> CS_REPORTING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:662 >>>> (sofia/internal/1000 at asterisk ) State REPORTING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:79 >>>> sofia/internal/1000 at asterisk Standard REPORTING, cause: >>>> NORMAL_CLEARING >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:662 >>>> (sofia/internal/1000 at asterisk ) State REPORTING going to sleep >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:387 >>>> (sofia/internal/1000 at asterisk ) State Change CS_REPORTING -> >>>> CS_DESTROY >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>> Send >>>> signal sofia/internal/1000 at asterisk [BREAK] >>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 >>>> Session >>>> 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on external >>>> entities >>>> 2011-10-10 17:36:41.428463 [NOTICE] >>>> switch_core_session.c:1369 >>>> Session 7 (sofia/internal/1000 at asterisk ) Ended >>>> 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1371 >>>> Close >>>> Channel sofia/internal/1000 at asterisk [CS_DESTROY] >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:491 >>>> (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> DOWN >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:494 >>>> (sofia/internal/1000 at asterisk ) Running State Change CS_DESTROY >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:504 >>>> (sofia/internal/1000 at asterisk ) State DESTROY >>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 >>>> sofia/internal/1000 at asterisk SOFIA DESTROY >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:86 >>>> sofia/internal/1000 at asterisk Standard DESTROY >>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>> switch_core_state_machine.c:504 >>>> (sofia/internal/1000 at asterisk ) State DESTROY going to sleep >>>> >>>> Could anyone give me some hints why the remote session is not ended >>>> automatically? >>>> >>>> >>>> ----------------urspr?ngliche Nachricht----------------- >>>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>>> An: freeswitch-dev at lists.freeswitch.org >>>> Datum: Mon, 10 Oct 2011 10:17:36 -0500 >>>> ------------------------------------------------- >>>> >>>> >>>>> 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/ >>>>>>> free >>>>>>> swit >>>>>>> ch-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-de >>>>>> v >>>>>> >>>>>> >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/fr >>>>>> eesw >>>>>> itch >>>>>> -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, 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/free >>>>> swit >>>>> ch-d >>>>> ev >>>>> 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/freesw >>>> itch >>>> -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, 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/freeswit >>> ch-d >>> ev >>> 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, 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-d > ev > http://www.freeswitch.org > -- From anthony.minessale at gmail.com Mon Oct 17 18:39:26 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 17 Oct 2011 09:39:26 -0500 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: <6393481560ec47e5dbad4efaad442de3@gw.ind.rwth-aachen.de> References: <6393481560ec47e5dbad4efaad442de3@gw.ind.rwth-aachen.de> Message-ID: I have no more guesses. You need to review your custom code and find out where you read locked your session. On Mon, Oct 17, 2011 at 2:38 AM, Han Xin wrote: > ?no, no use of ivr_originate function. > I constructed a helper struct which include the remote session, could this cause the session releasing problem? > > ----------------urspr?ngliche Nachricht----------------- > Von: "Anthony Minessale" anthony.minessale at gmail.com > An: freeswitch-dev at lists.freeswitch.org > Datum: Thu, 13 Oct 2011 15:55:35 -0500 > ------------------------------------------------- > > >> how about switch_ivr_originate() ? >> >> On Thu, Oct 13, 2011 at 2:19 AM, Han Xin xin at ind.rwth-aachen.de wrote: >>> yes I use a custom mod and the latest git on Oct 10 but I did not use the function >>> "switch_core_session_locate". >>> >>> ----------------urspr?ngliche Nachricht----------------- >>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>> An: freeswitch-dev at lists.freeswitch.org >>> Datum: Wed, 12 Oct 2011 17:06:41 -0500 >>> ------------------------------------------------- >>> >>> >>>> looks like you have some custom mods maybe you used >>>> switch_core_session_locate and did not rwunlock it? >>>> are you using latest GIT ? >>>> >>>> >>>> On Mon, Oct 10, 2011 at 11:03 AM, Han Xin xin at ind.rwth-aachen.de wrote: >>>>> yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the media >>>>> bugs are >>>>> automatically removed with the DEBUG log infomation. Now the problem >>>>> is the >>>>> session ending. >>>>> >>>>> Detailed situation description: I added two media bugs to both local >>>>> session >>>>> and remote session of one call. When I ended the call, the media bugs are >>>>> removed >>>>> first, and then the session should be ended. But only the local session >>>>> is ended >>>>> correctly. >>>>> When I press F3 and F4 to show current channels and calls, the remote >>>>> channel >>>>> and call info is till there. But when I try to dump uuid to get channel >>>>> infomation >>>>> with the cmd "uuid_dump remote_session_uuid", it says there is no >>>>> such >>>>> channel! >>>>> >>>>> here is some related log info: >>>>> >>>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>>> 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local variable >>>>> store! >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1332 >>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 skip receive >>>>> message >>>>> [UNBRIDGE] (channel is hungup already) >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_ivr_bridge.c:1335 >>>>> sofia/internal/1000 at asterisk skip receive message [UNBRIDGE] >>>>> (channel is >>>>> hungup already) >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_media_bug.c:480 >>>>> Removing BUG from sofia/internal/sip:1001 at 137.226.198.252 >>>>> :5060 >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:602 >>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP >>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Overriding SIP >>>>> cause 480 >>>>> with 200 from the other leg >>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging up, >>>>> cause: >>>>> NORMAL_CLEARING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 Sending BYE >>>>> to >>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:2235 >>>>> sofia/internal/1000 at asterisk skip receive message >>>>> [APPLICATION_EXEC_COMPLETE] (channel is hungup already) >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:417 >>>>> (sofia/internal/1000 at asterisk ) State EXECUTE going to sleep >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:362 >>>>> (sofia/internal/1000 at asterisk ) Running State Change CS_HANGUP >>>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>>> 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local variable >>>>> store! >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_media_bug.c:480 >>>>> Removing BUG from sofia/internal/1000 at asterisk >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:602 >>>>> (sofia/internal/1000 at asterisk ) State HANGUP >>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>>> sofia/internal/1000 at asterisk Overriding SIP cause 480 with 200 >>>>> from the >>>>> other leg >>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 Channel >>>>> sofia/internal/1000 at asterisk hanging up, cause: >>>>> NORMAL_CLEARING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:47 >>>>> sofia/internal/1000 at asterisk Standard HANGUP, cause: >>>>> NORMAL_CLEARING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:47 >>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard HANGUP, >>>>> cause: >>>>> NORMAL_CLEARING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:602 >>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State HANGUP >>>>> going to >>>>> sleep >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:393 >>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change >>>>> CS_HANGUP >>>>> -> CS_REPORTING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>>> Send >>>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:362 >>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running State >>>>> Change >>>>> CS_REPORTING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:662 >>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>> REPORTING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:79 >>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard >>>>> REPORTING, >>>>> cause: NORMAL_CLEARING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:662 >>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>> REPORTING going >>>>> to sleep >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:387 >>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State Change >>>>> CS_REPORTING -> CS_DESTROY >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>>> Send >>>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 [BREAK] >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 >>>>> Session >>>>> 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) Locked, >>>>> Waiting on >>>>> external entities >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:602 >>>>> (sofia/internal/1000 at asterisk ) State HANGUP going to sleep >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:393 >>>>> (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> >>>>> CS_REPORTING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>>> Send >>>>> signal sofia/internal/1000 at asterisk [BREAK] >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:362 >>>>> (sofia/internal/1000 at asterisk ) Running State Change >>>>> CS_REPORTING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:662 >>>>> (sofia/internal/1000 at asterisk ) State REPORTING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:79 >>>>> sofia/internal/1000 at asterisk Standard REPORTING, cause: >>>>> NORMAL_CLEARING >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:662 >>>>> (sofia/internal/1000 at asterisk ) State REPORTING going to sleep >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:387 >>>>> (sofia/internal/1000 at asterisk ) State Change CS_REPORTING -> >>>>> CS_DESTROY >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1177 >>>>> Send >>>>> signal sofia/internal/1000 at asterisk [BREAK] >>>>> 2011-10-10 17:36:41.428463 [DEBUG] switch_core_session.c:1351 >>>>> Session >>>>> 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on external >>>>> entities >>>>> 2011-10-10 17:36:41.428463 [NOTICE] >>>>> switch_core_session.c:1369 >>>>> Session 7 (sofia/internal/1000 at asterisk ) Ended >>>>> 2011-10-10 17:36:41.428463 [NOTICE] switch_core_session.c:1371 >>>>> Close >>>>> Channel sofia/internal/1000 at asterisk [CS_DESTROY] >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:491 >>>>> (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> DOWN >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:494 >>>>> (sofia/internal/1000 at asterisk ) Running State Change CS_DESTROY >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:504 >>>>> (sofia/internal/1000 at asterisk ) State DESTROY >>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 >>>>> sofia/internal/1000 at asterisk SOFIA DESTROY >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:86 >>>>> sofia/internal/1000 at asterisk Standard DESTROY >>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>> switch_core_state_machine.c:504 >>>>> (sofia/internal/1000 at asterisk ) State DESTROY going to sleep >>>>> >>>>> Could anyone give me some hints why the remote session is not ended >>>>> automatically? >>>>> >>>>> >>>>> ----------------urspr?ngliche Nachricht----------------- >>>>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>>>> An: freeswitch-dev at lists.freeswitch.org >>>>> Datum: Mon, 10 Oct 2011 10:17:36 -0500 >>>>> ------------------------------------------------- >>>>> >>>>> >>>>>> 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/ >>>>>>>> free >>>>>>>> swit >>>>>>>> ch-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-de >>>>>>> v >>>>>>> >>>>>>> >>>>>>> >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/fr >>>>>>> eesw >>>>>>> itch >>>>>>> -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, 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/free >>>>>> swit >>>>>> ch-d >>>>>> ev >>>>>> 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/freesw >>>>> itch >>>>> -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, 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/freeswit >>>> ch-d >>>> ev >>>> 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, 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-d >> ev >> 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 From gvmello at yx.cl Mon Oct 17 18:50:07 2011 From: gvmello at yx.cl (Glaucio Vaz de Mello) Date: Mon, 17 Oct 2011 11:50:07 -0300 Subject: [Freeswitch-dev] FreeTDM delay reconnecting E1/T1 In-Reply-To: References: Message-ID: Hi, Thanks for the help. Yes, I tried ftdm dump and got the same results. This command was issued after unplugging the cable: freeswitch at internal> ftdm dump wp1 1 span_id: 1 chan_id: 1 physical_span_id: 1 physical_chan_id: 1 physical_status: ok signaling_status: UP type: B state: DOWN last_state: DOWN txgain: 0.00 rxgain: 0.00 cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE session: (none) -- No state history -- On Sat, Oct 15, 2011 at 1:32 PM, Moises Silva wrote: > On Thu, Oct 13, 2011 at 12:27 PM, Glaucio Vaz de Mello wrote: > >> My question is why FreeTDM takes this big delay to detect a >> disconnected cable? Is there a way to reduce this time? >> The same happens when I reconnect the cable, FreeTMD takes a minute or >> more to detect it. >> > > It should not be delayed. Did you try using "ftdm dump x x"? what does the > physical status says in that case? If you can contact me on IRC and give me > ssh I can take a look at your problem. > > *Moises Silva > **Software Engineer, Development Manager*** > > msilva at sangoma.com > > Sangoma Technologies > > 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada > > > t. +1 800 388 2475 (N. America) > > t. +1 905 474 1990 x128 > > f. +1 905 474 9223 > > > > ** > > Products > | Solutions > | Events > | Contact > | Wiki > | Facebook > | Twitter`| > | YouTube > > VegaStream is now part of Sangoma! > > Ask us about both Gateway Appliances > and Internal Gateways > > > _______________________________________________ > 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/20111017/95b787d9/attachment-0001.html From moises.silva at gmail.com Mon Oct 17 20:16:51 2011 From: moises.silva at gmail.com (Moises Silva) Date: Mon, 17 Oct 2011 12:16:51 -0400 Subject: [Freeswitch-dev] FreeTDM delay reconnecting E1/T1 In-Reply-To: References: Message-ID: On Mon, Oct 17, 2011 at 10:50 AM, Glaucio Vaz de Mello wrote: > Hi, > > Thanks for the help. > Yes, I tried ftdm dump and got the same results. This command was issued > after unplugging the cable: > > freeswitch at internal> ftdm dump wp1 1 > span_id: 1 > chan_id: 1 > physical_span_id: 1 > physical_chan_id: 1 > physical_status: ok > signaling_status: UP > type: B > state: DOWN > last_state: DOWN > txgain: 0.00 > rxgain: 0.00 > cid_date: > cid_name: > cid_num: > ani: > aniII: > dnis: > rdnis: > cause: NONE > session: (none) > > -- No state history -- > > > That 's odd. Are you using latest git HEAD? if you are using latest git HEAD, ping me on IRC and I can take a quick look. If is not solved within 10 mins we'll have to open a JIRA ticket. *Moises Silva **Software Engineer, Development Manager*** msilva at sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 ** Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube VegaStream is now part of Sangoma! Ask us about both Gateway Appliances and Internal Gateways -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111017/74fe0cf3/attachment.html From moises.silva at gmail.com Mon Oct 17 20:22:58 2011 From: moises.silva at gmail.com (Moises Silva) Date: Mon, 17 Oct 2011 12:22:58 -0400 Subject: [Freeswitch-dev] MTU setting and application buffer size In-Reply-To: References: Message-ID: On Tue, Oct 4, 2011 at 8:56 AM, Juraj Fabo wrote: > Hi, > > I read through the previous answers several times again and did some > progress. > I found out that the valid codec_ms values are <10ms,60ms> and using lower > values will not work. > > >> 80 means a hardware interrupt is received every 10ms with 80 bytes per > >> time slot. This is the recommended mode. A value of 40 will increase > >> interrupt load and not necesarily reduce your latency, you must reduce > >> the "user period", which is how often the driver will deliver > >> media/data to the user application. This is done using > >> sangoma_tdm_set_usr_period(). > >> > >> > >> The codec_ms is used to call sangoma_tdm_set_usr_period(). This is how > >> often the driver will deliver data to the user application (for > >> example, waking it up from select()). > >> > > In each of the the test below the codec_ms was set to 1 with hope > of fastest data delivery, however this resulted to 20ms codec_ms > which is default. > > > > Please, have a look at the results with various parameters used: > > mtu:80 txqueue_size=1 rxqueue_size=1 one-direction delay=60ms > > round-trip delay=120ms > > mtu:80 txqueue_size=2 rxqueue_size=2 one-direction delay=80ms > > round-trip delay=160ms > > mtu:80 txqueue_size=10 rxqueue_size=10 one-direction delay=240ms > > round-trip delay=480ms > > mtu:40 txqueue_size=1 rxqueue_size=1 one-direction delay=40ms > > round-trip delay=80ms > > mtu:40 txqueue_size=2 rxqueue_size=2 one-direction delay=60ms > > round-trip delay=120ms > > mtu:40 txqueue_size=5 rxqueue_size=5 one-direction delay=120ms > > round-trip delay=240ms > > mtu:16 txqueue_size=1 rxqueue_size=1 one-direction delay=30ms > > round-trip delay=60ms > > mtu:8 txqueue_size=1 rxqueue_size=1 one-direction delay=25ms > > round-trip delay=50ms > > mtu:8 txqueue_size=10 rxqueue_size=10 one-direction delay=205ms > > round-trip delay=410ms > > > > Updated test result with the codec_ms=10 is following: > mtu:16 txqueue_size=1 rxqueue_size=10 one-direction delay=20ms > round-trip delay=50ms > mtu:80 txqueue_size=1 rxqueue_size=10 one-direction delay=56ms > round-trip delay=110ms > > However, this is still not 10ms with the default MTU:80 and codec_ms:10 :( > > Anyway, is it a good idea to use so assymetric tx/rx queue sizes? > > In general I don't think is a good idea because 99% of the user population is using default symmetric queues, moving to obscure/rarely-tested configurations increases your likelihood of facing problems. Having said that, I don't see why it should not work :-) Can you share the code you're using to measure latency? may be setup a git repo in github with your code? *Moises Silva **Software Engineer, Development Manager*** msilva at sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 ** Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube VegaStream is now part of Sangoma! Ask us about both Gateway Appliances and Internal Gateways -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111017/47d996e8/attachment-0001.html From gvmello at yx.cl Mon Oct 17 20:35:37 2011 From: gvmello at yx.cl (Glaucio Vaz de Mello) Date: Mon, 17 Oct 2011 13:35:37 -0300 Subject: [Freeswitch-dev] FreeTDM delay reconnecting E1/T1 In-Reply-To: References: Message-ID: No, I'm not using the latest git head. I'm going to upgrade and test it again. Thanks. On Mon, Oct 17, 2011 at 1:16 PM, Moises Silva wrote: > On Mon, Oct 17, 2011 at 10:50 AM, Glaucio Vaz de Mello wrote: > >> Hi, >> >> Thanks for the help. >> Yes, I tried ftdm dump and got the same results. This command was issued >> after unplugging the cable: >> >> freeswitch at internal> ftdm dump wp1 1 >> span_id: 1 >> chan_id: 1 >> physical_span_id: 1 >> physical_chan_id: 1 >> physical_status: ok >> signaling_status: UP >> type: B >> state: DOWN >> last_state: DOWN >> txgain: 0.00 >> rxgain: 0.00 >> cid_date: >> cid_name: >> cid_num: >> ani: >> aniII: >> dnis: >> rdnis: >> cause: NONE >> session: (none) >> >> -- No state history -- >> >> >> > That 's odd. Are you using latest git HEAD? if you are using latest git > HEAD, ping me on IRC and I can take a quick look. If is not solved within 10 > mins we'll have to open a JIRA ticket. > > *Moises Silva > **Software Engineer, Development Manager*** > > msilva at sangoma.com > > Sangoma Technologies > > 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada > > > t. +1 800 388 2475 (N. America) > > t. +1 905 474 1990 x128 > > f. +1 905 474 9223 > > > > ** > > Products > | Solutions > | Events > | Contact > | Wiki > | Facebook > | Twitter`| > | YouTube > > VegaStream is now part of Sangoma! > > Ask us about both Gateway Appliances > and Internal Gateways > > > > _______________________________________________ > 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/20111017/ee78d3e1/attachment.html From msc at freeswitch.org Mon Oct 17 23:53:25 2011 From: msc at freeswitch.org (Michael Collins) Date: Mon, 17 Oct 2011 12:53:25 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Right Now! - Phil Zimmermann In-Reply-To: References: Message-ID: http://wiki.freeswitch.org/wiki/Weekly_Conference_Call#Past_Calls On Wed, Oct 12, 2011 at 5:13 PM, envelopes envelopes wrote: > Missed the event, is there a recorded archive? > On Oct 12, 2011 10:06 AM, "Michael Collins" wrote: > >> Hey all, >> >> It seems my first email to the list didn't make it. Just a reminder that >> Philip Zimmermann of PGP fame is coming in to talk about VoIP security, ZRTP >> and Zfone. Please join us now! >> >> -Michael >> >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111017/42c23d85/attachment.html From kheimerl at cs.berkeley.edu Wed Oct 19 03:12:51 2011 From: kheimerl at cs.berkeley.edu (Kurtis Heimerl) Date: Tue, 18 Oct 2011 16:12:51 -0700 Subject: [Freeswitch-dev] Calling Python Application from Chatplan (mod_sms help) Message-ID: I'm pushing this to FreeSwitch-dev as mod_sms is still under active development. Any way to call a Python Application from the chatplan? This works: But I can't monkey with the session variables with the fs_api call. Instead, I want to do this: and this fails in the following way: 2011-10-18 16:12:02.776298 [ERR] switch_loadable_module.c:705 Invalid chat application interface [python]! The mod_sms page seems to indicate that lua works just fine from the chatplan... is this just not implemented yet? Can I do that? Thanks! From kheimerl at cs.berkeley.edu Wed Oct 19 04:00:18 2011 From: kheimerl at cs.berkeley.edu (Kurtis Heimerl) Date: Tue, 18 Oct 2011 17:00:18 -0700 Subject: [Freeswitch-dev] Calling Python Application from Chatplan (mod_sms help) In-Reply-To: References: Message-ID: Oh, and I can confirm that only Lua works from the chatplan. On Tue, Oct 18, 2011 at 4:12 PM, Kurtis Heimerl wrote: > I'm pushing this to FreeSwitch-dev as mod_sms is still under active > development. > > Any way to call a Python Application from the chatplan? > > This works: > > > > But I can't monkey with the session variables with the fs_api call. > > Instead, I want to do this: > > > > and this fails in the following way: > > 2011-10-18 16:12:02.776298 [ERR] switch_loadable_module.c:705 Invalid > chat application interface [python]! > > The mod_sms page seems to indicate that lua works just fine from the > chatplan... is this just not implemented yet? Can I do that? > > Thanks! > From anthony.minessale at gmail.com Wed Oct 19 19:23:44 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Wed, 19 Oct 2011 10:23:44 -0500 Subject: [Freeswitch-dev] Calling Python Application from Chatplan (mod_sms help) In-Reply-To: References: Message-ID: try latest On Tue, Oct 18, 2011 at 7:00 PM, Kurtis Heimerl wrote: > Oh, and I can confirm that only Lua works from the chatplan. > > On Tue, Oct 18, 2011 at 4:12 PM, Kurtis Heimerl > wrote: >> I'm pushing this to FreeSwitch-dev as mod_sms is still under active >> development. >> >> Any way to call a Python Application from the chatplan? >> >> This works: >> >> >> >> But I can't monkey with the session variables with the fs_api call. >> >> Instead, I want to do this: >> >> >> >> and this fails in the following way: >> >> 2011-10-18 16:12:02.776298 [ERR] switch_loadable_module.c:705 Invalid >> chat application interface [python]! >> >> The mod_sms page seems to indicate that lua works just fine from the >> chatplan... is this just not implemented yet? Can I do that? >> >> Thanks! >> > > _______________________________________________ > 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 From msc at freeswitch.org Wed Oct 19 20:02:02 2011 From: msc at freeswitch.org (Michael Collins) Date: Wed, 19 Oct 2011 09:02:02 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today Message-ID: Hello all, Our agenda today is light: http://wiki.freeswitch.org/wiki/FS_weekly_2011_10_19 We're going to have a community scrum where we ask each other questions, etc. I have a few minor updates for you all as well. Talk to you soon. -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111019/2b8a030b/attachment.html From kheimerl at cs.berkeley.edu Wed Oct 19 20:57:05 2011 From: kheimerl at cs.berkeley.edu (Kurtis Heimerl) Date: Wed, 19 Oct 2011 09:57:05 -0700 Subject: [Freeswitch-dev] Calling Python Application from Chatplan (mod_sms help) In-Reply-To: References: Message-ID: Great, will do! On Wed, Oct 19, 2011 at 8:23 AM, Anthony Minessale wrote: > try latest > > On Tue, Oct 18, 2011 at 7:00 PM, Kurtis Heimerl > wrote: >> Oh, and I can confirm that only Lua works from the chatplan. >> >> On Tue, Oct 18, 2011 at 4:12 PM, Kurtis Heimerl >> wrote: >>> I'm pushing this to FreeSwitch-dev as mod_sms is still under active >>> development. >>> >>> Any way to call a Python Application from the chatplan? >>> >>> This works: >>> >>> >>> >>> But I can't monkey with the session variables with the fs_api call. >>> >>> Instead, I want to do this: >>> >>> >>> >>> and this fails in the following way: >>> >>> 2011-10-18 16:12:02.776298 [ERR] switch_loadable_module.c:705 Invalid >>> chat application interface [python]! >>> >>> The mod_sms page seems to indicate that lua works just fine from the >>> chatplan... is this just not implemented yet? Can I do that? >>> >>> Thanks! >>> >> >> _______________________________________________ >> 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, 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 > From admharris at gmx.com Wed Oct 19 23:21:15 2011 From: admharris at gmx.com (adam harris) Date: Wed, 19 Oct 2011 21:21:15 +0200 Subject: [Freeswitch-dev] Couple of questions about esl in C Message-ID: <20111019192116.297650@gmx.com> A few questions about esl in C 1, After sending api playback command I want to wait until the file is done playing. How do I do this is C 2, Whats the proper way to use esl_recv_event_timed and esl_recv_even I tried it like this esl_recv_event_timed(call_info->global_handle, 10, 0, NULL); but that printed the complete event on screen. I want to do this in a while loop to check for event-name Can you please resend this to freeswitch-dev at lists.freeswitch.org -MC On Wed, Oct 19, 2011 at 9:10 AM, adam harris wrote: ? ?After sending ?api playback command I want to wait until the file is done playing ? ?How do I do this is C From admharris at gmx.com Wed Oct 19 23:37:06 2011 From: admharris at gmx.com (adam harris) Date: Wed, 19 Oct 2011 21:37:06 +0200 Subject: [Freeswitch-dev] get variable value Message-ID: <20111019193706.297660@gmx.com> How do I get the vaule of a custom variable. I have seen uuid_getvar Usage: uuid_getvar but how I use in C From msc at freeswitch.org Thu Oct 20 02:27:52 2011 From: msc at freeswitch.org (Michael Collins) Date: Wed, 19 Oct 2011 15:27:52 -0700 Subject: [Freeswitch-dev] get variable value In-Reply-To: <20111019193706.297660@gmx.com> References: <20111019193706.297660@gmx.com> Message-ID: Grep the source for "switch_channel_get_variable" and you'll see numerous examples... -MC On Wed, Oct 19, 2011 at 12:37 PM, adam harris wrote: > How do I get the vaule of a custom variable. I have seen uuid_getvar Usage: > uuid_getvar but how I use in C > > _______________________________________________ > 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/20111019/1ae8edee/attachment.html From msc at freeswitch.org Thu Oct 20 02:30:42 2011 From: msc at freeswitch.org (Michael Collins) Date: Wed, 19 Oct 2011 15:30:42 -0700 Subject: [Freeswitch-dev] Couple of questions about esl in C In-Reply-To: <20111019192116.297650@gmx.com> References: <20111019192116.297650@gmx.com> Message-ID: On Wed, Oct 19, 2011 at 12:21 PM, adam harris wrote: > A few questions about esl in C > > 1, After sending api playback command I want to wait until the file is done > playing. How do I do this is C > 2, Whats the proper way to use esl_recv_event_timed and esl_recv_even I > tried it like this esl_recv_event_timed(call_info->global_handle, 10, 0, > NULL); but that printed the complete event on screen. I want to do this in a > while loop to check for event-name > > Would you mind putting some code snippets here or in pastebin.freeswitch.org? -MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111019/3efdab11/attachment.html From jmesquita at freeswitch.org Thu Oct 20 02:55:19 2011 From: jmesquita at freeswitch.org (=?ISO-8859-1?Q?Jo=E3o_Mesquita?=) Date: Wed, 19 Oct 2011 19:55:19 -0300 Subject: [Freeswitch-dev] get variable value In-Reply-To: References: <20111019193706.297660@gmx.com> Message-ID: >From your email, I am assuming you are trying to get a variable using ESL? If so, custom variables are prefixed with variable. So you would use the get_header functions just as you would on other non-custom variables. Makes sense? Regards, Jo?o Mesquita On Wed, Oct 19, 2011 at 7:27 PM, Michael Collins wrote: > Grep the source for "switch_channel_get_variable" and you'll see numerous > examples... > > -MC > > On Wed, Oct 19, 2011 at 12:37 PM, adam harris wrote: > >> How do I get the vaule of a custom variable. I have seen uuid_getvar >> Usage: uuid_getvar but how I use in C >> >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111019/4bc5877d/attachment.html From gabe at gundy.org Thu Oct 20 10:34:38 2011 From: gabe at gundy.org (Gabriel Gunderson) Date: Thu, 20 Oct 2011 00:34:38 -0600 Subject: [Freeswitch-dev] FreeSWITCH dialstring/channel variables In-Reply-To: References: Message-ID: On Mon, Oct 10, 2011 at 8:37 AM, lg wrote: > One quick question here. Is it any dialstring to control dial function? Like > as,i would change the dial?legs sequence as dial caller number first > and?then when caller pickup the call,?dial the called destination number ( > as the same as "originate dial_string destination_number" function). Your > hint or short response would be much appreciated. I'm not sure I understand the question, but I *think* you're looking for a bridge. DIALPLAN: This is how you would do it from the dialplan: More on the Wiki: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#From_the_Dialplan COMMANDS: Or, if you want to use commands, try something like this: originate sofia/example/300 at foo.com &bridge(sofia/example/400 at bar.com) More on the Wiki: http://wiki.freeswitch.org/wiki/Mod_commands#originate Good luck! Gabe From admharris at gmx.com Thu Oct 20 04:48:22 2011 From: admharris at gmx.com (adam harris) Date: Thu, 20 Oct 2011 02:48:22 +0200 Subject: [Freeswitch-dev] get variable value Message-ID: <20111020004822.297630@gmx.com> Yes I am using ESL but don't ?get_header functions need to catch an event first. I was thinking if there was already a builtin function. I can't remember exacty because it was a while ago but I used something like this in ruby @con.api("uuid_getvar", "#{@uuid} myvar").getBody > ----- Original Message ----- > From: Jo?o Mesquita > Sent: 10/19/11 10:55 PM > To: freeswitch-dev at lists.freeswitch.org > Subject: Re: [Freeswitch-dev] get variable value > > >From your email, I am assuming you are trying to get a variable using ESL? > If so, custom variables are prefixed with variable. So you would use the > get_header functions just as you would on other non-custom variables. > > Makes sense? > > Regards, > Jo?o Mesquita > > > > On Wed, Oct 19, 2011 at 7:27 PM, Michael Collins wrote: > > > Grep the source for "switch_channel_get_variable" and you'll see numerous > > examples... > > > > -MC > > > > On Wed, Oct 19, 2011 at 12:37 PM, adam harris wrote: > > > >> How do I get the vaule of a custom variable. I have seen uuid_getvar > >> Usage: uuid_getvar but how I use in C > >> > >> _______________________________________________ > >> 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 > > > > From admharris at gmx.com Thu Oct 20 05:02:43 2011 From: admharris at gmx.com (adam harris) Date: Thu, 20 Oct 2011 03:02:43 +0200 Subject: [Freeswitch-dev] Couple of questions about esl in C Message-ID: <20111020010243.297650@gmx.com> I want to try one more thing to see if it solves my problem int response_timeout = (10 * 1000); esl_status_t status; status = esl_recv_event_timed(call_info->global_handle, response_timeout, 0, xxxxx); The note for the last paramter is: \param[out] save_event If this is not NULL, will return the event received What type of varible do I need to pass as the paramter and where will the return data go and how to access it. I have noticed this channel variable Application-Response: FILE%20PLAYED which possibly might indicate playback completion? > ----- Original Message ----- > From: Michael Collins > Sent: 10/19/11 10:30 PM > To: freeswitch-dev at lists.freeswitch.org > Subject: Re: [Freeswitch-dev] Couple of questions about esl in C > > On Wed, Oct 19, 2011 at 12:21 PM, adam harris wrote: > > > A few questions about esl in C > > > > 1, After sending api playback command I want to wait until the file is done > > playing. How do I do this is C > > > > 2, Whats the proper way to use esl_recv_event_timed and esl_recv_even I > > tried it like this esl_recv_event_timed(call_info->global_handle, 10, 0, > > NULL); but that printed the complete event on screen. I want to do this in a > > while loop to check for event-name > > > > Would you mind putting some code snippets here or in > pastebin.freeswitch.org? > -MC From jmesquita at freeswitch.org Thu Oct 20 16:38:35 2011 From: jmesquita at freeswitch.org (=?ISO-8859-1?Q?Jo=E3o_Mesquita?=) Date: Thu, 20 Oct 2011 09:38:35 -0300 Subject: [Freeswitch-dev] get variable value In-Reply-To: <20111020004822.297630@gmx.com> References: <20111020004822.297630@gmx.com> Message-ID: The snippet you've sent is a whole different thing than C. You kinda have to know these things to code on either language... Using Ruby, the following statement DOES return an event: @con.api("uuid_getvar", "#{@uuid} myvar") And with that event, you implicitly call "getBody". When you are using C, you can't use these things like that. You have to explicitly make function calls to the correct event. Look at the ESL examples testserver.c and testclient.c on the source and maybe you'll understand. When calling api on C, you need to use the handle->last_sr_reply (if I remember correctly). I hope that helps, otherwise, a working code would. Regards, Jo?o Mesquita On Wed, Oct 19, 2011 at 9:48 PM, adam harris wrote: > > Yes I am using ESL but don't get_header functions need to catch an event > first. > I was thinking if there was already a builtin function. > > I can't remember exacty because it was a while ago but I used something > like this in ruby > > @con.api("uuid_getvar", "#{@uuid} myvar").getBody > > > ----- Original Message ----- > > From: Jo?o Mesquita > > Sent: 10/19/11 10:55 PM > > To: freeswitch-dev at lists.freeswitch.org > > Subject: Re: [Freeswitch-dev] get variable value > > > > >From your email, I am assuming you are trying to get a variable using > ESL? > > If so, custom variables are prefixed with variable. So you would use the > > get_header functions just as you would on other non-custom variables. > > > > Makes sense? > > > > Regards, > > Jo?o Mesquita > > > > > > > > On Wed, Oct 19, 2011 at 7:27 PM, Michael Collins > wrote: > > > > > Grep the source for "switch_channel_get_variable" and you'll see > numerous > > > examples... > > > > > > -MC > > > > > > On Wed, Oct 19, 2011 at 12:37 PM, adam harris > wrote: > > > > > >> How do I get the vaule of a custom variable. I have seen uuid_getvar > > >> Usage: uuid_getvar but how I use in C > > >> > > >> _______________________________________________ > > >> 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 > > > > > > > > > _______________________________________________ > 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/20111020/4097a289/attachment.html From gvmello at yx.cl Thu Oct 20 18:21:09 2011 From: gvmello at yx.cl (Glaucio Vaz de Mello) Date: Thu, 20 Oct 2011 11:21:09 -0300 Subject: [Freeswitch-dev] FreeTDM delay reconnecting E1/T1 In-Reply-To: References: Message-ID: Hello, Just to tell you that I tested it again with latest Git source and latest sangoma driver. Delay still happens, but are less than before. When E1/T1 cable is disconnected, wanpipemon command shows "Loss of Signal" in less than 1 second. Meanwhile, fs_cli "ftdm dump" still shows "physical status" as "ok" for 4 or 5 seconds, then it turns to "alarmed". Reconnecting the cable I experienced bigger delays: while wanpipemon shows "Loss of Signal OFF" in less than 1 second, fs_cli "ftdm dump" takes more than 20 seconds to became "ok" again. If you think this should be fixed and need more information, logs or ssh access, just let me know and I'll be glad to provide it. regards, Glaucio On Mon, Oct 17, 2011 at 1:35 PM, Glaucio Vaz de Mello wrote: > No, I'm not using the latest git head. > I'm going to upgrade and test it again. Thanks. > > > > On Mon, Oct 17, 2011 at 1:16 PM, Moises Silva wrote: > >> On Mon, Oct 17, 2011 at 10:50 AM, Glaucio Vaz de Mello wrote: >> >>> Hi, >>> >>> Thanks for the help. >>> Yes, I tried ftdm dump and got the same results. This command was issued >>> after unplugging the cable: >>> >>> freeswitch at internal> ftdm dump wp1 1 >>> span_id: 1 >>> chan_id: 1 >>> physical_span_id: 1 >>> physical_chan_id: 1 >>> physical_status: ok >>> signaling_status: UP >>> type: B >>> state: DOWN >>> last_state: DOWN >>> txgain: 0.00 >>> rxgain: 0.00 >>> cid_date: >>> cid_name: >>> cid_num: >>> ani: >>> aniII: >>> dnis: >>> rdnis: >>> cause: NONE >>> session: (none) >>> >>> -- No state history -- >>> >>> >>> >> That 's odd. Are you using latest git HEAD? if you are using latest git >> HEAD, ping me on IRC and I can take a quick look. If is not solved within 10 >> mins we'll have to open a JIRA ticket. >> >> *Moises Silva >> **Software Engineer, Development Manager*** >> >> msilva at sangoma.com >> >> Sangoma Technologies >> >> 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada >> >> >> t. +1 800 388 2475 (N. America) >> >> t. +1 905 474 1990 x128 >> >> f. +1 905 474 9223 >> >> >> >> ** >> >> Products >> | Solutions >> | Events >> | Contact >> | Wiki >> | Facebook >> | Twitter`| >> | YouTube >> >> VegaStream is now part of Sangoma! >> >> Ask us about both Gateway Appliances >> and Internal Gateways >> >> >> >> _______________________________________________ >> 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/20111020/7156bfc7/attachment-0001.html From xin at ind.rwth-aachen.de Thu Oct 20 20:09:24 2011 From: xin at ind.rwth-aachen.de (Han Xin) Date: Thu, 20 Oct 2011 18:09:24 +0200 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: Message-ID: <314ebfaf9a5bf1bbd700ce3ba8a7920b@gw.ind.rwth-aachen.de> I tried a lot in the past days but still got no progress. So I upload my code here to ask for help again. Thanks anyway! ----------------original message----------------- From: "Anthony Minessale" anthony.minessale at gmail.com To: freeswitch-dev at lists.freeswitch.org Date: Mon, 17 Oct 2011 09:39:26 -0500 ------------------------------------------------- > I have no more guesses. You need to review your custom code and find > out where you read locked your session. > > > On Mon, Oct 17, 2011 at 2:38 AM, Han Xin xin at ind.rwth-aachen.de wrote: >> no, no use of ivr_originate function. >> I constructed a helper struct which include the remote session, could this >> cause the session releasing problem? >> >> ----------------urspr?ngliche Nachricht----------------- >> Von: "Anthony Minessale" anthony.minessale at gmail.com >> An: freeswitch-dev at lists.freeswitch.org >> Datum: Thu, 13 Oct 2011 15:55:35 -0500 >> ------------------------------------------------- >> >> >>> how about switch_ivr_originate() ? >>> >>> On Thu, Oct 13, 2011 at 2:19 AM, Han Xin xin at ind.rwth-aachen.de wrote: >>>> yes I use a custom mod and the latest git on Oct 10 but I did not use the >>>> function >>>> "switch_core_session_locate". >>>> >>>> ----------------urspr?ngliche Nachricht----------------- >>>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>>> An: freeswitch-dev at lists.freeswitch.org >>>> Datum: Wed, 12 Oct 2011 17:06:41 -0500 >>>> ------------------------------------------------- >>>> >>>> >>>>> looks like you have some custom mods maybe you used >>>>> switch_core_session_locate and did not rwunlock it? >>>>> are you using latest GIT ? >>>>> >>>>> >>>>> On Mon, Oct 10, 2011 at 11:03 AM, Han Xin xin at ind.rwth-aachen.de >>>>> wrote: >>>>>> yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the >>>>>> media >>>>>> bugs are >>>>>> automatically removed with the DEBUG log infomation. Now the >>>>>> problem >>>>>> is the >>>>>> session ending. >>>>>> >>>>>> Detailed situation description: I added two media bugs to both >>>>>> local >>>>>> session >>>>>> and remote session of one call. When I ended the call, the media >>>>>> bugs are >>>>>> removed >>>>>> first, and then the session should be ended. But only the local >>>>>> session >>>>>> is ended >>>>>> correctly. >>>>>> When I press F3 and F4 to show current channels and calls, the >>>>>> remote >>>>>> channel >>>>>> and call info is till there. But when I try to dump uuid to get >>>>>> channel >>>>>> infomation >>>>>> with the cmd "uuid_dump remote_session_uuid", it says there >>>>>> is no >>>>>> such >>>>>> channel! >>>>>> >>>>>> here is some related log info: >>>>>> >>>>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>>>> 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local >>>>>> variable >>>>>> store! >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_ivr_bridge.c:1332 >>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 skip >>>>>> receive >>>>>> message >>>>>> [UNBRIDGE] (channel is hungup already) >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_ivr_bridge.c:1335 >>>>>> sofia/internal/1000 at asterisk skip receive message >>>>>> [UNBRIDGE] >>>>>> (channel is >>>>>> hungup already) >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_media_bug.c:480 >>>>>> Removing BUG from >>>>>> sofia/internal/sip:1001 at 137.226.198.252 >>>>>> :5060 >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:602 >>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>> HANGUP >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>> Overriding SIP >>>>>> cause 480 >>>>>> with 200 from the other leg >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 >>>>>> Channel >>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging >>>>>> up, >>>>>> cause: >>>>>> NORMAL_CLEARING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 >>>>>> Sending BYE >>>>>> to >>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_session.c:2235 >>>>>> sofia/internal/1000 at asterisk skip receive message >>>>>> [APPLICATION_EXEC_COMPLETE] (channel is hungup already) >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:417 >>>>>> (sofia/internal/1000 at asterisk ) State EXECUTE going to >>>>>> sleep >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:362 >>>>>> (sofia/internal/1000 at asterisk ) Running State Change >>>>>> CS_HANGUP >>>>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>>>> 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local >>>>>> variable >>>>>> store! >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_media_bug.c:480 >>>>>> Removing BUG from sofia/internal/1000 at asterisk >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:602 >>>>>> (sofia/internal/1000 at asterisk ) State HANGUP >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>>>> sofia/internal/1000 at asterisk Overriding SIP cause 480 with >>>>>> 200 >>>>>> from the >>>>>> other leg >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 >>>>>> Channel >>>>>> sofia/internal/1000 at asterisk hanging up, cause: >>>>>> NORMAL_CLEARING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:47 >>>>>> sofia/internal/1000 at asterisk Standard HANGUP, cause: >>>>>> NORMAL_CLEARING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:47 >>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard >>>>>> HANGUP, >>>>>> cause: >>>>>> NORMAL_CLEARING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:602 >>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>> HANGUP >>>>>> going to >>>>>> sleep >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:393 >>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>> Change >>>>>> CS_HANGUP >>>>>> -> CS_REPORTING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_session.c:1177 >>>>>> Send >>>>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>> [BREAK] >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:362 >>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running >>>>>> State >>>>>> Change >>>>>> CS_REPORTING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:662 >>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>> REPORTING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:79 >>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard >>>>>> REPORTING, >>>>>> cause: NORMAL_CLEARING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:662 >>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>> REPORTING going >>>>>> to sleep >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:387 >>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>> Change >>>>>> CS_REPORTING -> CS_DESTROY >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_session.c:1177 >>>>>> Send >>>>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>> [BREAK] >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_session.c:1351 >>>>>> Session >>>>>> 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) >>>>>> Locked, >>>>>> Waiting on >>>>>> external entities >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:602 >>>>>> (sofia/internal/1000 at asterisk ) State HANGUP going to >>>>>> sleep >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:393 >>>>>> (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> >>>>>> CS_REPORTING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_session.c:1177 >>>>>> Send >>>>>> signal sofia/internal/1000 at asterisk [BREAK] >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:362 >>>>>> (sofia/internal/1000 at asterisk ) Running State Change >>>>>> CS_REPORTING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:662 >>>>>> (sofia/internal/1000 at asterisk ) State REPORTING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:79 >>>>>> sofia/internal/1000 at asterisk Standard REPORTING, cause: >>>>>> NORMAL_CLEARING >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:662 >>>>>> (sofia/internal/1000 at asterisk ) State REPORTING going to >>>>>> sleep >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:387 >>>>>> (sofia/internal/1000 at asterisk ) State Change CS_REPORTING >>>>>> -> >>>>>> CS_DESTROY >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_session.c:1177 >>>>>> Send >>>>>> signal sofia/internal/1000 at asterisk [BREAK] >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_session.c:1351 >>>>>> Session >>>>>> 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on >>>>>> external >>>>>> entities >>>>>> 2011-10-10 17:36:41.428463 [NOTICE] >>>>>> switch_core_session.c:1369 >>>>>> Session 7 (sofia/internal/1000 at asterisk ) Ended >>>>>> 2011-10-10 17:36:41.428463 [NOTICE] >>>>>> switch_core_session.c:1371 >>>>>> Close >>>>>> Channel sofia/internal/1000 at asterisk [CS_DESTROY] >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:491 >>>>>> (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> >>>>>> DOWN >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:494 >>>>>> (sofia/internal/1000 at asterisk ) Running State Change >>>>>> CS_DESTROY >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:504 >>>>>> (sofia/internal/1000 at asterisk ) State DESTROY >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 >>>>>> sofia/internal/1000 at asterisk SOFIA DESTROY >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:86 >>>>>> sofia/internal/1000 at asterisk Standard DESTROY >>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>> switch_core_state_machine.c:504 >>>>>> (sofia/internal/1000 at asterisk ) State DESTROY going to >>>>>> sleep >>>>>> >>>>>> Could anyone give me some hints why the remote session is not >>>>>> ended >>>>>> automatically? >>>>>> >>>>>> >>>>>> ----------------urspr?ngliche >>>>>> Nachricht----------------- >>>>>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>>>>> An: freeswitch-dev at lists.freeswitch.org >>>>>> Datum: Mon, 10 Oct 2011 10:17:36 -0500 >>>>>> ------------------------------------------------- >>>>>> >>>>>> >>>>>>> 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/freeswi >>>>>>>>> tch- >>>>>>>>> dev >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/opti >>>>>>>>> ons/ >>>>>>>>> free >>>>>>>>> swit >>>>>>>>> ch-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/freeswitc >>>>>>>> h-de >>>>>>>> v >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/option >>>>>>>> s/fr >>>>>>>> eesw >>>>>>>> itch >>>>>>>> -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, 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/ >>>>>>> free >>>>>>> swit >>>>>>> ch-d >>>>>>> ev >>>>>>> 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-de >>>>>> v >>>>>> >>>>>> >>>>>> >>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/fr >>>>>> eesw >>>>>> itch >>>>>> -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, 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/free >>>>> swit >>>>> ch-d >>>>> ev >>>>> 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/freesw >>>> itch >>>> -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, 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/freeswit >>> ch-d >>> ev >>> 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, 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-d > ev > http://www.freeswitch.org > -- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mod_bwe_debug.c Url: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111020/85fff7bb/attachment-0001.c From anthony.minessale at gmail.com Thu Oct 20 21:45:29 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 20 Oct 2011 12:45:29 -0500 Subject: [Freeswitch-dev] trouble on how to remove the media bug from the session after the sessions are closed In-Reply-To: <314ebfaf9a5bf1bbd700ce3ba8a7920b@gw.ind.rwth-aachen.de> References: <314ebfaf9a5bf1bbd700ce3ba8a7920b@gw.ind.rwth-aachen.de> Message-ID: try getting a gdb trace while the app is running, maybe the interface you connected to is blocking? On Thu, Oct 20, 2011 at 11:09 AM, Han Xin wrote: > ?I tried a lot in the past days but still got no progress. So I upload my code here to ask for help again. > > Thanks anyway! > > ----------------original message----------------- > From: "Anthony Minessale" anthony.minessale at gmail.com > To: freeswitch-dev at lists.freeswitch.org > Date: Mon, 17 Oct 2011 09:39:26 -0500 > ------------------------------------------------- > > >> I have no more guesses. You need to review your custom code and find >> out where you read locked your session. >> >> >> On Mon, Oct 17, 2011 at 2:38 AM, Han Xin xin at ind.rwth-aachen.de wrote: >>> no, no use of ivr_originate function. >>> I constructed a helper struct which include the remote session, could this >>> cause the session releasing problem? >>> >>> ----------------urspr?ngliche Nachricht----------------- >>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>> An: freeswitch-dev at lists.freeswitch.org >>> Datum: Thu, 13 Oct 2011 15:55:35 -0500 >>> ------------------------------------------------- >>> >>> >>>> how about switch_ivr_originate() ? >>>> >>>> On Thu, Oct 13, 2011 at 2:19 AM, Han Xin xin at ind.rwth-aachen.de wrote: >>>>> yes I use a custom mod and the latest git on Oct 10 but I did not use the >>>>> function >>>>> "switch_core_session_locate". >>>>> >>>>> ----------------urspr?ngliche Nachricht----------------- >>>>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>>>> An: freeswitch-dev at lists.freeswitch.org >>>>> Datum: Wed, 12 Oct 2011 17:06:41 -0500 >>>>> ------------------------------------------------- >>>>> >>>>> >>>>>> looks like you have some custom mods maybe you used >>>>>> switch_core_session_locate and did not rwunlock it? >>>>>> are you using latest GIT ? >>>>>> >>>>>> >>>>>> On Mon, Oct 10, 2011 at 11:03 AM, Han Xin xin at ind.rwth-aachen.de >>>>>> wrote: >>>>>>> yes, I use the SWITCH_ABC_TYPE_CLOSE type and I've found the >>>>>>> media >>>>>>> bugs are >>>>>>> automatically removed with the DEBUG log infomation. Now the >>>>>>> problem >>>>>>> is the >>>>>>> session ending. >>>>>>> >>>>>>> Detailed situation description: I added two media bugs to both >>>>>>> local >>>>>>> session >>>>>>> and remote session of one call. When I ended the call, the media >>>>>>> bugs are >>>>>>> removed >>>>>>> first, and then the session should be ended. But only the local >>>>>>> session >>>>>>> is ended >>>>>>> correctly. >>>>>>> When I press F3 and F4 to show current channels and calls, the >>>>>>> remote >>>>>>> channel >>>>>>> and call info is till there. But when I try to dump uuid to get >>>>>>> channel >>>>>>> infomation >>>>>>> with the cmd "uuid_dump remote_session_uuid", it says there >>>>>>> is no >>>>>>> such >>>>>>> channel! >>>>>>> >>>>>>> here is some related log info: >>>>>>> >>>>>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>>>>> 28b3a542-aecd-4b9b-9f55-3c2674a25b5c: Remove local >>>>>>> variable >>>>>>> store! >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_ivr_bridge.c:1332 >>>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 skip >>>>>>> receive >>>>>>> message >>>>>>> [UNBRIDGE] (channel is hungup already) >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_ivr_bridge.c:1335 >>>>>>> sofia/internal/1000 at asterisk skip receive message >>>>>>> [UNBRIDGE] >>>>>>> (channel is >>>>>>> hungup already) >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_media_bug.c:480 >>>>>>> Removing BUG from >>>>>>> sofia/internal/sip:1001 at 137.226.198.252 >>>>>>> :5060 >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:602 >>>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>>> HANGUP >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>>> Overriding SIP >>>>>>> cause 480 >>>>>>> with 200 from the other leg >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 >>>>>>> Channel >>>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 hanging >>>>>>> up, >>>>>>> cause: >>>>>>> NORMAL_CLEARING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:503 >>>>>>> Sending BYE >>>>>>> to >>>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_session.c:2235 >>>>>>> sofia/internal/1000 at asterisk skip receive message >>>>>>> [APPLICATION_EXEC_COMPLETE] (channel is hungup already) >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:417 >>>>>>> (sofia/internal/1000 at asterisk ) State EXECUTE going to >>>>>>> sleep >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:362 >>>>>>> (sofia/internal/1000 at asterisk ) Running State Change >>>>>>> CS_HANGUP >>>>>>> 2011-10-10 17:36:41.428463 [ERR] mod_bwe.c:345 >>>>>>> 713d5f0c-4341-47ec-b0bf-4b14bd6b4726: Remove local >>>>>>> variable >>>>>>> store! >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_media_bug.c:480 >>>>>>> Removing BUG from sofia/internal/1000 at asterisk >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:602 >>>>>>> (sofia/internal/1000 at asterisk ) State HANGUP >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:454 >>>>>>> sofia/internal/1000 at asterisk Overriding SIP cause 480 with >>>>>>> 200 >>>>>>> from the >>>>>>> other leg >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:460 >>>>>>> Channel >>>>>>> sofia/internal/1000 at asterisk hanging up, cause: >>>>>>> NORMAL_CLEARING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:47 >>>>>>> sofia/internal/1000 at asterisk Standard HANGUP, cause: >>>>>>> NORMAL_CLEARING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:47 >>>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard >>>>>>> HANGUP, >>>>>>> cause: >>>>>>> NORMAL_CLEARING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:602 >>>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>>> HANGUP >>>>>>> going to >>>>>>> sleep >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:393 >>>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>>> Change >>>>>>> CS_HANGUP >>>>>>> -> CS_REPORTING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_session.c:1177 >>>>>>> Send >>>>>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>>> [BREAK] >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:362 >>>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) Running >>>>>>> State >>>>>>> Change >>>>>>> CS_REPORTING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:662 >>>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>>> REPORTING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:79 >>>>>>> sofia/internal/sip:1001 at 137.226.198.252 :5060 Standard >>>>>>> REPORTING, >>>>>>> cause: NORMAL_CLEARING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:662 >>>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>>> REPORTING going >>>>>>> to sleep >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:387 >>>>>>> (sofia/internal/sip:1001 at 137.226.198.252 :5060) State >>>>>>> Change >>>>>>> CS_REPORTING -> CS_DESTROY >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_session.c:1177 >>>>>>> Send >>>>>>> signal sofia/internal/sip:1001 at 137.226.198.252 :5060 >>>>>>> [BREAK] >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_session.c:1351 >>>>>>> Session >>>>>>> 8 (sofia/internal/sip:1001 at 137.226.198.252 :5060) >>>>>>> Locked, >>>>>>> Waiting on >>>>>>> external entities >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:602 >>>>>>> (sofia/internal/1000 at asterisk ) State HANGUP going to >>>>>>> sleep >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:393 >>>>>>> (sofia/internal/1000 at asterisk ) State Change CS_HANGUP -> >>>>>>> CS_REPORTING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_session.c:1177 >>>>>>> Send >>>>>>> signal sofia/internal/1000 at asterisk [BREAK] >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:362 >>>>>>> (sofia/internal/1000 at asterisk ) Running State Change >>>>>>> CS_REPORTING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:662 >>>>>>> (sofia/internal/1000 at asterisk ) State REPORTING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:79 >>>>>>> sofia/internal/1000 at asterisk Standard REPORTING, cause: >>>>>>> NORMAL_CLEARING >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:662 >>>>>>> (sofia/internal/1000 at asterisk ) State REPORTING going to >>>>>>> sleep >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:387 >>>>>>> (sofia/internal/1000 at asterisk ) State Change CS_REPORTING >>>>>>> -> >>>>>>> CS_DESTROY >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_session.c:1177 >>>>>>> Send >>>>>>> signal sofia/internal/1000 at asterisk [BREAK] >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_session.c:1351 >>>>>>> Session >>>>>>> 7 (sofia/internal/1000 at asterisk ) Locked, Waiting on >>>>>>> external >>>>>>> entities >>>>>>> 2011-10-10 17:36:41.428463 [NOTICE] >>>>>>> switch_core_session.c:1369 >>>>>>> Session 7 (sofia/internal/1000 at asterisk ) Ended >>>>>>> 2011-10-10 17:36:41.428463 [NOTICE] >>>>>>> switch_core_session.c:1371 >>>>>>> Close >>>>>>> Channel sofia/internal/1000 at asterisk [CS_DESTROY] >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:491 >>>>>>> (sofia/internal/1000 at asterisk ) Callstate Change HANGUP -> >>>>>>> DOWN >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:494 >>>>>>> (sofia/internal/1000 at asterisk ) Running State Change >>>>>>> CS_DESTROY >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:504 >>>>>>> (sofia/internal/1000 at asterisk ) State DESTROY >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] mod_sofia.c:365 >>>>>>> sofia/internal/1000 at asterisk SOFIA DESTROY >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:86 >>>>>>> sofia/internal/1000 at asterisk Standard DESTROY >>>>>>> 2011-10-10 17:36:41.428463 [DEBUG] >>>>>>> switch_core_state_machine.c:504 >>>>>>> (sofia/internal/1000 at asterisk ) State DESTROY going to >>>>>>> sleep >>>>>>> >>>>>>> Could anyone give me some hints why the remote session is not >>>>>>> ended >>>>>>> automatically? >>>>>>> >>>>>>> >>>>>>> ----------------urspr?ngliche >>>>>>> Nachricht----------------- >>>>>>> Von: "Anthony Minessale" anthony.minessale at gmail.com >>>>>>> An: freeswitch-dev at lists.freeswitch.org >>>>>>> Datum: Mon, 10 Oct 2011 10:17:36 -0500 >>>>>>> ------------------------------------------------- >>>>>>> >>>>>>> >>>>>>>> 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/freeswi >>>>>>>>>> tch- >>>>>>>>>> dev >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/opti >>>>>>>>>> ons/ >>>>>>>>>> free >>>>>>>>>> swit >>>>>>>>>> ch-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/freeswitc >>>>>>>>> h-de >>>>>>>>> v >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/option >>>>>>>>> s/fr >>>>>>>>> eesw >>>>>>>>> itch >>>>>>>>> -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, 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/ >>>>>>>> free >>>>>>>> swit >>>>>>>> ch-d >>>>>>>> ev >>>>>>>> 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-de >>>>>>> v >>>>>>> >>>>>>> >>>>>>> >>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/fr >>>>>>> eesw >>>>>>> itch >>>>>>> -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, 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/free >>>>>> swit >>>>>> ch-d >>>>>> ev >>>>>> 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/freesw >>>>> itch >>>>> -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, 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/freeswit >>>> ch-d >>>> ev >>>> 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, 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-d >> ev >> 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 From kheimerl at cs.berkeley.edu Fri Oct 21 00:40:39 2011 From: kheimerl at cs.berkeley.edu (Kurtis Heimerl) Date: Thu, 20 Oct 2011 13:40:39 -0700 Subject: [Freeswitch-dev] Calling Python Application from Chatplan (mod_sms help) In-Reply-To: References: Message-ID: Still not working: 2011-10-20 13:39:49.534714 [INFO] mod_sms.c:300 Processing text message IMSI641104278340879->smsc in context default 2011-10-20 13:39:49.534714 [ERR] switch_loadable_module.c:705 Invalid chat application interface [python]! On Wed, Oct 19, 2011 at 9:57 AM, Kurtis Heimerl wrote: > Great, will do! > > On Wed, Oct 19, 2011 at 8:23 AM, Anthony Minessale > wrote: >> try latest >> >> On Tue, Oct 18, 2011 at 7:00 PM, Kurtis Heimerl >> wrote: >>> Oh, and I can confirm that only Lua works from the chatplan. >>> >>> On Tue, Oct 18, 2011 at 4:12 PM, Kurtis Heimerl >>> wrote: >>>> I'm pushing this to FreeSwitch-dev as mod_sms is still under active >>>> development. >>>> >>>> Any way to call a Python Application from the chatplan? >>>> >>>> This works: >>>> >>>> >>>> >>>> But I can't monkey with the session variables with the fs_api call. >>>> >>>> Instead, I want to do this: >>>> >>>> >>>> >>>> and this fails in the following way: >>>> >>>> 2011-10-18 16:12:02.776298 [ERR] switch_loadable_module.c:705 Invalid >>>> chat application interface [python]! >>>> >>>> The mod_sms page seems to indicate that lua works just fine from the >>>> chatplan... is this just not implemented yet? Can I do that? >>>> >>>> Thanks! >>>> >>> >>> _______________________________________________ >>> 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, 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 >> > From anthony.minessale at gmail.com Fri Oct 21 01:37:23 2011 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 20 Oct 2011 16:37:23 -0500 Subject: [Freeswitch-dev] Calling Python Application from Chatplan (mod_sms help) In-Reply-To: References: Message-ID: from the code: SWITCH_ADD_CHAT_APP(chat_app_interface, "python", "execute a python script", "execute a python script", python_chat_function, "