From tonhudung at gmail.com Sun Nov 1 03:35:06 2009 From: tonhudung at gmail.com (Alex To) Date: Sun, 1 Nov 2009 19:35:06 +0800 Subject: [Freeswitch-dev] Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] Message-ID: <004501ca5ae7$5e2308e0$1a691aa0$@com> Hi, excuse me if this is already asked where else but I did browse through the mailing list and I couldn't find anything related. I tried to create a new end point module by copying the mod_skel to mod/endpoints/my_module folder. I modified "skel" to my module name and basically I leave no codes in the load function, just a few lines to test if the new module is working. These few lines are: *module_interface = switch_loadable_module_create_module_interface(pool, modname); modem_endpoint_interface = (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*modul e_interface, SWITCH_ENDPOINT_INTERFACE); modem_endpoint_interface->interface_name = "modem"; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello World!\n"); // //do_config(SWITCH_FALSE); // SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, "syntax"); /* indicate that the module should continue to be loaded */ return SWITCH_STATUS_SUCCESS; It compiles but the module can't load properly. I received the following error: 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll **dll sym error [127l] ** I tried to load module normally at the FS console but "load mod_skel" and "load mod_mymodule" gives the same error. Would someone tell me what do I miss here. Btw, I looked at mod_sofia and mod_iax, this line of code could compile in those 2 modules. modem_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE); The same line of code couldn't compile in my module coz VS complains: cannot convert from void* to switch_endpoint_interface_t*. I know C++ require more type-safe conversion than C but anyone got the same error? And how would I search in the mailing list ? Sorry for this dumb question but I can't seem to find out how to search in the archives. For now, before posting anything, I need to try to browse through all the postings first, which is quite tedious to do. Regards Alex To -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091101/51ac7069/attachment-0001.html From tonhudung at gmail.com Sun Nov 1 03:44:26 2009 From: tonhudung at gmail.com (Alex To) Date: Sun, 1 Nov 2009 19:44:26 +0800 Subject: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] Message-ID: <004e01ca5ae8$ac449a10$04cdce30$@com> Sorry, I figured it out by myself. It was because my code file is mod_mymodule.cpp. I changed it to mod_mymodule.c and the module loaded file. So I take it as FS accepts only C library but not C++ ? Regards Alex To From: Alex To [mailto:tonhudung at gmail.com] Sent: Sunday, November 01, 2009 7:35 PM To: 'freeswitch-dev at lists.freeswitch.org' Subject: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] Hi, excuse me if this is already asked where else but I did browse through the mailing list and I couldn't find anything related. I tried to create a new end point module by copying the mod_skel to mod/endpoints/my_module folder. I modified "skel" to my module name and basically I leave no codes in the load function, just a few lines to test if the new module is working. These few lines are: *module_interface = switch_loadable_module_create_module_interface(pool, modname); modem_endpoint_interface = (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*modul e_interface, SWITCH_ENDPOINT_INTERFACE); modem_endpoint_interface->interface_name = "modem"; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello World!\n"); // //do_config(SWITCH_FALSE); // SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, "syntax"); /* indicate that the module should continue to be loaded */ return SWITCH_STATUS_SUCCESS; It compiles but the module can't load properly. I received the following error: 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll **dll sym error [127l] ** I tried to load module normally at the FS console but "load mod_skel" and "load mod_mymodule" gives the same error. Would someone tell me what do I miss here. Btw, I looked at mod_sofia and mod_iax, this line of code could compile in those 2 modules. modem_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE); The same line of code couldn't compile in my module coz VS complains: cannot convert from void* to switch_endpoint_interface_t*. I know C++ require more type-safe conversion than C but anyone got the same error? And how would I search in the mailing list ? Sorry for this dumb question but I can't seem to find out how to search in the archives. For now, before posting anything, I need to try to browse through all the postings first, which is quite tedious to do. Regards Alex To -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091101/c9796390/attachment.html From gmaruzz at celliax.org Sun Nov 1 05:04:41 2009 From: gmaruzz at celliax.org (Giovanni Maruzzelli) Date: Sun, 1 Nov 2009 14:04:41 +0100 Subject: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] In-Reply-To: <004e01ca5ae8$ac449a10$04cdce30$@com> References: <004e01ca5ae8$ac449a10$04cdce30$@com> Message-ID: <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> On Sun, Nov 1, 2009 at 12:44 PM, Alex To wrote: > Sorry, I figured it out by myself. It was because my code file is > mod_mymodule.cpp. I changed it to mod_mymodule.c and the module loaded file. > So I take it as FS accepts only C library but not C++ ? Ciao Alex, no, you're on the wrong track. FS loads CPP modules. Your problems probably come because mod_skel is a C module, and the Makefile for it manages it as a C module. If you want to compile a CPP module, find one as an example, and adjust yourmodule and its Makefile to be compiled in a similar way. I've done it, and I can assure it works. In this moment I cannot tell you out of my memory which module is CPP, but just browse the sources looking for *.cc or *.cpp. -giovanni > > > > Regards > > > > Alex To > > > > From: Alex To [mailto:tonhudung at gmail.com] > Sent: Sunday, November 01, 2009 7:35 PM > To: 'freeswitch-dev at lists.freeswitch.org' > Subject: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error > Loading module .... **dll sym error [127l] > > > > Hi, excuse me if this is already asked where else but I did browse through > the mailing list and I couldn?t find anything related. I tried to create a > new end point module by copying the mod_skel to mod/endpoints/my_module > folder. > > > > I modified ?skel? to my module name and basically I leave no codes in the > load function, just a few lines to test if the new module is working. These > few lines are: > > > > *module_interface = switch_loadable_module_create_module_interface(pool, > modname); > > ????? modem_endpoint_interface = > (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*module_interface, > SWITCH_ENDPOINT_INTERFACE); > > ????? modem_endpoint_interface->interface_name = "modem"; > > ????? switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello > World!\n"); > > ????? // > > ????? //do_config(SWITCH_FALSE); > > ????? // > > ????? SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, > "syntax"); > > > > ????? /* indicate that the module should continue to be loaded */ > > ????? return SWITCH_STATUS_SUCCESS; > > > > It compiles but the module can?t load properly. I received the following > error: > > > > 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading > module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll > > **dll sym error [127l] > > ** > > I tried to load module normally at the FS console but ?load mod_skel? and > ?load mod_mymodule? gives the same error. > > > > Would someone tell me what do I miss here. > > > > Btw, I looked at mod_sofia and mod_iax, this line of code could compile in > those 2 modules. > > > > modem_endpoint_interface = > switch_loadable_module_create_interface(*module_interface, > SWITCH_ENDPOINT_INTERFACE); > > > > The same line of code couldn?t compile in my module coz VS complains: cannot > convert from void* to switch_endpoint_interface_t*. I know C++ require more > type-safe conversion than C but anyone got the same error? > > > > And how would I search in the mailing list ? Sorry for this dumb question > but I can?t seem to find out how to search in the archives. For now, before > posting anything, I need to try to browse through all the postings first, > which is > > > > quite tedious to do. > > > > Regards > > > > Alex To > > _______________________________________________ > 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 > > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 From tonhudung at gmail.com Sun Nov 1 05:52:21 2009 From: tonhudung at gmail.com (Alex To) Date: Sun, 1 Nov 2009 21:52:21 +0800 Subject: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] In-Reply-To: <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> References: <004e01ca5ae8$ac449a10$04cdce30$@com> <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> Message-ID: <005601ca5afa$8d2a1670$a77e4350$@com> Right I checked it again and I did miss some information. I am modifying my module to be written in C++. Thank you. -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Giovanni Maruzzelli Sent: Sunday, November 01, 2009 9:05 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] On Sun, Nov 1, 2009 at 12:44 PM, Alex To wrote: > Sorry, I figured it out by myself. It was because my code file is > mod_mymodule.cpp. I changed it to mod_mymodule.c and the module loaded file. > So I take it as FS accepts only C library but not C++ ? Ciao Alex, no, you're on the wrong track. FS loads CPP modules. Your problems probably come because mod_skel is a C module, and the Makefile for it manages it as a C module. If you want to compile a CPP module, find one as an example, and adjust yourmodule and its Makefile to be compiled in a similar way. I've done it, and I can assure it works. In this moment I cannot tell you out of my memory which module is CPP, but just browse the sources looking for *.cc or *.cpp. -giovanni > > > > Regards > > > > Alex To > > > > From: Alex To [mailto:tonhudung at gmail.com] > Sent: Sunday, November 01, 2009 7:35 PM > To: 'freeswitch-dev at lists.freeswitch.org' > Subject: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error > Loading module .... **dll sym error [127l] > > > > Hi, excuse me if this is already asked where else but I did browse through > the mailing list and I couldn?t find anything related. I tried to create a > new end point module by copying the mod_skel to mod/endpoints/my_module > folder. > > > > I modified ?skel? to my module name and basically I leave no codes in the > load function, just a few lines to test if the new module is working. These > few lines are: > > > > *module_interface = switch_loadable_module_create_module_interface(pool, > modname); > > ????? modem_endpoint_interface = > (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*modul e_interface, > SWITCH_ENDPOINT_INTERFACE); > > ????? modem_endpoint_interface->interface_name = "modem"; > > ????? switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello > World!\n"); > > ????? // > > ????? //do_config(SWITCH_FALSE); > > ????? // > > ????? SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, > "syntax"); > > > > ????? /* indicate that the module should continue to be loaded */ > > ????? return SWITCH_STATUS_SUCCESS; > > > > It compiles but the module can?t load properly. I received the following > error: > > > > 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading > module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll > > **dll sym error [127l] > > ** > > I tried to load module normally at the FS console but ?load mod_skel? and > ?load mod_mymodule? gives the same error. > > > > Would someone tell me what do I miss here. > > > > Btw, I looked at mod_sofia and mod_iax, this line of code could compile in > those 2 modules. > > > > modem_endpoint_interface = > switch_loadable_module_create_interface(*module_interface, > SWITCH_ENDPOINT_INTERFACE); > > > > The same line of code couldn?t compile in my module coz VS complains: cannot > convert from void* to switch_endpoint_interface_t*. I know C++ require more > type-safe conversion than C but anyone got the same error? > > > > And how would I search in the mailing list ? Sorry for this dumb question > but I can?t seem to find out how to search in the archives. For now, before > posting anything, I need to try to browse through all the postings first, > which is > > > > quite tedious to do. > > > > Regards > > > > Alex To > > _______________________________________________ > 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 > > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 _______________________________________________ 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 Sun Nov 1 11:08:22 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Sun, 1 Nov 2009 13:08:22 -0600 Subject: [Freeswitch-dev] Employment Opportunities Message-ID: <191c3a030911011108l3da34048r403e1bc7cc24462f@mail.gmail.com> Posted to users list last week.... We're looking for a few individuals to work with us on the CudaTel Product powered by FreeSWITCH. AJAX Developer: Must have strong skill in HTTP/CGI/Javascript preferably some exp in jquery. We would prefer if are not overly obsessed with any standards but respect them enough to try to follow them in a well-balanced way. Best if you live near Silicon Valley, Ann Arbor Michigan, or Milwaukee WI but not mandatory. Must be self-motivated. OCD a plus. Willing to work late if necessary to get things done right. Working knowledge of Perl, DBI-X Catalyst and TT2 would make your life easier. Knowing a little about FS and Telephony would be nice. Must be able to work diligently from a ssh terminal. Back-end Developer: Good knowledge of 2 or more Perl, DBI-X Catalyst and TT2. Attention to detail, good debugging skills. Best if you live near Silicon Valley, Ann Arbor Michigan, or Milwaukee WI but not mandatory. Must be self-motivated. OCD a plus. Willing to work late if necessary to get things done right. Ability to work well with the guy in the other job description above. Knowing a little about FS and Telephony would be nice. Must be able to work diligently from a ssh terminal. Both positions involve a hands-on "extreme programming" type environment with shared screens and a permanent line of communication to your peers. Send CR to jobs at 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091101/7c711b27/attachment-0001.html From mitul at enterux.com Sun Nov 1 18:45:28 2009 From: mitul at enterux.com (Mitul Limbani) Date: Mon, 2 Nov 2009 08:15:28 +0530 Subject: [Freeswitch-dev] Employment Opportunities In-Reply-To: <191c3a030911011108l3da34048r403e1bc7cc24462f@mail.gmail.com> References: <191c3a030911011108l3da34048r403e1bc7cc24462f@mail.gmail.com> Message-ID: Hey Anthony, Are you looking for US candidates or ok with candidates from india? Thanks & Regards, Mitul Limbani, Founder & CEO, Enterux Solutions Pvt. Ltd., The Enterprise Linux Company (r), http://www.enterux.com http://www.entVoice.com On 02-Nov-2009, at 0:38, Anthony Minessale wrote: > Posted to users list last week.... > > We're looking for a few individuals to work with us on the CudaTel > Product powered by FreeSWITCH. > > AJAX Developer: > Must have strong skill in HTTP/CGI/Javascript preferably some exp in > jquery. > We would prefer if are not overly obsessed with any standards but > respect them enough to try to follow them in a well-balanced way. > Best if you live near Silicon Valley, Ann Arbor Michigan, or > Milwaukee WI but not mandatory. > Must be self-motivated. OCD a plus. Willing to work late if > necessary to get things done right. > Working knowledge of Perl, DBI-X Catalyst and TT2 would make your > life easier. > Knowing a little about FS and Telephony would be nice. > Must be able to work diligently from a ssh terminal. > > Back-end Developer: > Good knowledge of 2 or more Perl, DBI-X Catalyst and TT2. > Attention to detail, good debugging skills. > Best if you live near Silicon Valley, Ann Arbor Michigan, or > Milwaukee WI but not mandatory. > Must be self-motivated. OCD a plus. Willing to work late if > necessary to get things done right. > Ability to work well with the guy in the other job description above. > Knowing a little about FS and Telephony would be nice. > Must be able to work diligently from a ssh terminal. > > > Both positions involve a hands-on "extreme programming" type > environment with shared screens and a permanent line of > communication to your peers. > Send CR to jobs at 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 > iax:guest at conference.freeswitch.org/888 > googletalk:conf+888 at conference.freeswitch.org > pstn:213-799-1400 > _______________________________________________ > 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/20091102/df7211e0/attachment.html From tonhudung at gmail.com Mon Nov 2 04:19:24 2009 From: tonhudung at gmail.com (Alex To) Date: Mon, 2 Nov 2009 20:19:24 +0800 Subject: [Freeswitch-dev] mod managed, cant receive events thru EventReceivedFunction callback Message-ID: <000001ca5bb6$b9079da0$2b16d8e0$@com> Hi, I would like to raise this question again since it doesn't seem to have an answer yet. I built a .NET module which implements IAppPlugin and IApiPlugin. I looked at the /contrib/verifier/eventsocket and it is actually the client to connect to FS through mod_event_socket (correct me if I'm wrong here). I believe Andrew's concern was how to receive events through EventReceivedFunctionCallback but not connect to FS and receive event via TCP/IP. I would want to implement a .NET module that acts like an endpoint. Could someone show me the direction of how to hook up handlers like it is done in native C++? How would I read the incoming audio data and how would I send audio as an outgoing stream. I setup the .NET module and dial plan so that the Run() method in my module is invoked whenever a call is bridged to my endpoint. The ParkingLot and Demo script sample does enlighten me a little but I still have no clue how would I go about the audio stream after I call session.Answer(). Any help would be greatly appreciated. Best Regards Alex To -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091102/baa46a04/attachment.html From mgg at giagnocavo.net Mon Nov 2 04:34:05 2009 From: mgg at giagnocavo.net (Michael Giagnocavo) Date: Mon, 2 Nov 2009 07:34:05 -0500 Subject: [Freeswitch-dev] mod managed, cant receive events thru EventReceivedFunction callback In-Reply-To: <000001ca5bb6$b9079da0$2b16d8e0$@com> References: <000001ca5bb6$b9079da0$2b16d8e0$@com> Message-ID: <6E8D2069C08AA84A83D336E996AE4C6703243E29FE@mse17be1.mse17.exchange.ms> Basically, if you want to do something that's not "made easy" for language plugins, you just do it the C way, like any other FreeSWITCH C module. The mod_managed swig wrappers expose nearly every function. The difficult part is that some of the indirect types (pointers to types and function pointers) aren't swig'd very nicely, and just have a wrapper class such as "SWIGTYPE_p_foo_t". In this case, you're required to create the backing structure however required, then get a pointer to that structure and wrap it in the SWIGTYPE_p_xxx class. If your backing structure is a .NET type, you can use GCHandle to get an IntPtr to it. Or you can directly allocate memory via the Marshal class and use that IntPtr. This is likely to be annoying and a lot of work. It's only really easy for function pointers, as all you need to do is declare a delegate, attribute it [UnmanagedFunctionPointer(CallingConvention.Cdecl)], then call Marshal.GetFunctionPointerForDelegate. The runtime will emit unmanaged stubs that will handle unmanaged-managed transitioning and give you a nice C compatible function pointer you can wrap and pass around. You can see some examples in ManagedSession.cs. Additionally, the SWIGTYPE_p_xxx classes don't have public constructors, so the FSUtil class provides this extension method on IntPtr: public static T CreateSwigTypePointer(this IntPtr cPtr) That way you can create the wrapper classes as needed after you've created the structures and wrapped them up. In summary, it's possible to create an endpoint module from C#, but a major PITA. You should consider either using a mixed-mode language such as C++/CLI or write a helper library in C/C++ and export that via swig. We'd welcome contributions to mod_managed that simplify access to a set of the FS APIs. -Michael From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Alex To Sent: Monday, November 02, 2009 5:19 AM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] mod managed, cant receive events thru EventReceivedFunction callback Hi, I would like to raise this question again since it doesn't seem to have an answer yet. I built a .NET module which implements IAppPlugin and IApiPlugin. I looked at the /contrib/verifier/eventsocket and it is actually the client to connect to FS through mod_event_socket (correct me if I'm wrong here). I believe Andrew's concern was how to receive events through EventReceivedFunctionCallback but not connect to FS and receive event via TCP/IP. I would want to implement a .NET module that acts like an endpoint. Could someone show me the direction of how to hook up handlers like it is done in native C++? How would I read the incoming audio data and how would I send audio as an outgoing stream. I setup the .NET module and dial plan so that the Run() method in my module is invoked whenever a call is bridged to my endpoint. The ParkingLot and Demo script sample does enlighten me a little but I still have no clue how would I go about the audio stream after I call session.Answer(). Any help would be greatly appreciated. Best Regards Alex To -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091102/b838a894/attachment.html From lei.tlfly at gmail.com Mon Nov 2 01:14:52 2009 From: lei.tlfly at gmail.com (Lei Tang) Date: Mon, 2 Nov 2009 17:14:52 +0800 Subject: [Freeswitch-dev] =?gb2312?b?UXVlc3Rpb24gYWJvdXQgdGhyZWFkaW5nIG1v?= =?gb2312?b?ZGVsLCBEb2VzIGl0IHJlc3RyaWN0IHRoZSBjb25jdXJyZW50IGNh?= =?gb2312?b?cGFiaWxpdHkgb2YgRlOjvw==?= Message-ID: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> Hi All, As I known FS usually use two thread to handle one call, one for inbound and one for outbound. In 32bits system, a process's memory is limited to 2GB, So I think a FS process can create up to 500 threads, and handle 250 call in the same time. Is it right? How if FS run in 64bits system? Best Regards! -- Lei.Tang lei.tlfly at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091102/af84833d/attachment-0001.html From mike at jerris.com Mon Nov 2 06:20:36 2009 From: mike at jerris.com (Michael Jerris) Date: Mon, 2 Nov 2009 09:20:36 -0500 Subject: [Freeswitch-dev] =?utf-8?q?Question_about_threading_model=2C_Does?= =?utf-8?q?_it_restrict_the_concurrent_capability_of_FS=EF=BC=9F?= In-Reply-To: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> References: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> Message-ID: <2FF312E7-E649-4589-8421-29E1EA97EFDC@jerris.com> That would be the case if we used standard 8MB stack size, but we do not. Mike On Nov 2, 2009, at 4:14 AM, Lei Tang wrote: > Hi All, As I known FS usually use two thread to handle one call, > one for inbound and one for outbound. In 32bits system, a > process's memory is limited to 2GB, So I think a FS process can > create up to 500 threads, and handle 250 call in the same time. Is > it right? How if FS run in 64bits system? From brian at freeswitch.org Mon Nov 2 06:22:39 2009 From: brian at freeswitch.org (Brian West) Date: Mon, 2 Nov 2009 08:22:39 -0600 Subject: [Freeswitch-dev] =?utf-8?q?Question_about_threading_model=2C_Does?= =?utf-8?q?_it_restrict_the_concurrent_capability_of_FS=EF=BC=9F?= In-Reply-To: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> References: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> Message-ID: <1DDF3E85-C3D1-482A-9482-5B5D674AF041@freeswitch.org> Step 1. TRY IT. We never recommend running on a 32bit system EVER. Even our spec sheet says 64bit is recommended. You should get more than 500 on a 32bit machine if it sets the stack size properly to 240 per thread. /b On Nov 2, 2009, at 3:14 AM, Lei Tang wrote: > Hi All, As I known FS usually use two thread to handle one call, > one for inbound and one for outbound. In 32bits system, a > process's memory is limited to 2GB, So I think a FS process can > create up to 500 threads, and handle 250 call in the same time. Is > it right? How if FS run in 64bits system? > > Best Regards! > -- > Lei.Tang > lei.tlfly at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091102/c422f145/attachment.html From lei.tlfly at gmail.com Mon Nov 2 06:53:13 2009 From: lei.tlfly at gmail.com (Lei Tang) Date: Mon, 2 Nov 2009 22:53:13 +0800 Subject: [Freeswitch-dev] =?gb2312?b?UXVlc3Rpb24gYWJvdXQgdGhyZWFkaW5nIG1v?= =?gb2312?b?ZGVsLCBEb2VzIGl0IHJlc3RyaWN0IHRoZSBjb25jdXJyZW50IGNh?= =?gb2312?b?cGFiaWxpdHkgb2YgRlOjvw==?= In-Reply-To: <1DDF3E85-C3D1-482A-9482-5B5D674AF041@freeswitch.org> References: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> <1DDF3E85-C3D1-482A-9482-5B5D674AF041@freeswitch.org> Message-ID: <50c41b4e0911020653t297cbd7cmaa16505478dab4ec@mail.gmail.com> Hi Michael and Brian, Thanks for your answers. Brian, Did you mean set the thread stack size to 240KB? Is it enough for FS? If thread stack size is 240kB, so FS can create about 4000 threads and handle 2000 concurrent call? 2009/11/2 Brian West > Step 1. TRY IT. > > We never recommend running on a 32bit system EVER. Even our spec sheet > says 64bit is recommended. You should get more than 500 on a 32bit machine > if it sets the stack size properly to 240 per thread. > > /b > > > On Nov 2, 2009, at 3:14 AM, Lei Tang wrote: > > Hi All, As I known FS usually use two thread to handle one call, one for > inbound and one for outbound. In 32bits system, a process's memory is > limited to 2GB, So I think a FS process can create up to 500 threads, and > handle 250 call in the same time. Is it right? How if FS run in 64bits > system? > > Best Regards! > -- > Lei.Tang > lei.tlfly at gmail.com > > > > _______________________________________________ > 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 > > -- Lei.Tang lei.tlfly at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091102/c4ac5885/attachment.html From mike at jerris.com Mon Nov 2 07:34:09 2009 From: mike at jerris.com (Michael Jerris) Date: Mon, 2 Nov 2009 10:34:09 -0500 Subject: [Freeswitch-dev] =?utf-8?q?Question_about_threading_model=2C_Does?= =?utf-8?q?_it_restrict_the_concurrent_capability_of_FS=EF=BC=9F?= In-Reply-To: <50c41b4e0911020653t297cbd7cmaa16505478dab4ec@mail.gmail.com> References: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> <1DDF3E85-C3D1-482A-9482-5B5D674AF041@freeswitch.org> <50c41b4e0911020653t297cbd7cmaa16505478dab4ec@mail.gmail.com> Message-ID: <91723126-ABF7-4231-B8E2-4D8744DA5F52@jerris.com> freeswitch should set its own stack if you don't have it set, it will also tell you if it should be reset when you start. The limits you state are all theoretical, depends on other limitations other than ram. Mike On Nov 2, 2009, at 9:53 AM, Lei Tang wrote: > Hi Michael and Brian, Thanks for your answers. > Brian, Did you mean set the thread stack size to 240KB? Is it enough > for FS? If thread stack size is 240kB, so FS can create about 4000 > threads and handle 2000 concurrent call? > > 2009/11/2 Brian West > Step 1. TRY IT. > > We never recommend running on a 32bit system EVER. Even our spec > sheet says 64bit is recommended. You should get more than 500 on a > 32bit machine if it sets the stack size properly to 240 per thread. > > /b > > > On Nov 2, 2009, at 3:14 AM, Lei Tang wrote: > >> Hi All, As I known FS usually use two thread to handle one call, >> one for inbound and one for outbound. In 32bits system, a >> process's memory is limited to 2GB, So I think a FS process can >> create up to 500 threads, and handle 250 call in the same time. >> Is it right? How if FS run in 64bits system? >> >> Best Regards! >> -- >> Lei.Tang >> lei.tlfly at gmail.com > > > _______________________________________________ > 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 > > > > > -- > Lei.Tang > lei.tlfly at gmail.com > _______________________________________________ > 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/20091102/651ba580/attachment.html From brian at freeswitch.org Mon Nov 2 07:53:45 2009 From: brian at freeswitch.org (Brian West) Date: Mon, 2 Nov 2009 09:53:45 -0600 Subject: [Freeswitch-dev] =?utf-8?q?Question_about_threading_model=2C_Does?= =?utf-8?q?_it_restrict_the_concurrent_capability_of_FS=EF=BC=9F?= In-Reply-To: <91723126-ABF7-4231-B8E2-4D8744DA5F52@jerris.com> References: <50c41b4e0911020114j1a1b4198mfedc7b4a40c78b27@mail.gmail.com> <1DDF3E85-C3D1-482A-9482-5B5D674AF041@freeswitch.org> <50c41b4e0911020653t297cbd7cmaa16505478dab4ec@mail.gmail.com> <91723126-ABF7-4231-B8E2-4D8744DA5F52@jerris.com> Message-ID: You have to watch out some linux will still give out 8MB even when we say DO NOT. So set 'ulimit -s 240' before starting FS. ulimit -c unlimited ulimit -d unlimited ulimit -f unlimited ulimit -i unlimited ulimit -n 999999 ulimit -q unlimited ulimit -u unlimited ulimit -v unlimited ulimit -x unlimited ulimit -s 244 ulimit -l unlimited ulimit -a Try all these /b On Nov 2, 2009, at 9:34 AM, Michael Jerris wrote: > freeswitch should set its own stack if you don't have it set, it > will also tell you if it should be reset when you start. The limits > you state are all theoretical, depends on other limitations other > than ram. > > Mike From tonhudung at gmail.com Mon Nov 2 21:43:32 2009 From: tonhudung at gmail.com (Alex To) Date: Tue, 3 Nov 2009 13:43:32 +0800 Subject: [Freeswitch-dev] mod managed, cant receive events thru EventReceivedFunction callback In-Reply-To: <6E8D2069C08AA84A83D336E996AE4C6703243E29FE@mse17be1.mse17.exchange.ms> References: <000001ca5bb6$b9079da0$2b16d8e0$@com> <6E8D2069C08AA84A83D336E996AE4C6703243E29FE@mse17be1.mse17.exchange.ms> Message-ID: <001801ca5c48$974a9a90$c5dfcfb0$@com> Oh thank you Michael for answering all my dumb questions. :D I agree with you Interoperability between unmanaged and managed code is such a PITA. I think I am going back to C++ module for the moment since the unmanaged API isn't "made easy" in managed code yet. If I have the time later, I will go back and read the managed part, hopefully I could contribute to the managed part in FS. Regards Alex To From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Michael Giagnocavo Sent: Monday, November 02, 2009 8:34 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] mod managed, cant receive events thru EventReceivedFunction callback Basically, if you want to do something that's not "made easy" for language plugins, you just do it the C way, like any other FreeSWITCH C module. The mod_managed swig wrappers expose nearly every function. The difficult part is that some of the indirect types (pointers to types and function pointers) aren't swig'd very nicely, and just have a wrapper class such as "SWIGTYPE_p_foo_t". In this case, you're required to create the backing structure however required, then get a pointer to that structure and wrap it in the SWIGTYPE_p_xxx class. If your backing structure is a .NET type, you can use GCHandle to get an IntPtr to it. Or you can directly allocate memory via the Marshal class and use that IntPtr. This is likely to be annoying and a lot of work. It's only really easy for function pointers, as all you need to do is declare a delegate, attribute it [UnmanagedFunctionPointer(CallingConvention.Cdecl)], then call Marshal.GetFunctionPointerForDelegate. The runtime will emit unmanaged stubs that will handle unmanaged-managed transitioning and give you a nice C compatible function pointer you can wrap and pass around. You can see some examples in ManagedSession.cs. Additionally, the SWIGTYPE_p_xxx classes don't have public constructors, so the FSUtil class provides this extension method on IntPtr: public static T CreateSwigTypePointer(this IntPtr cPtr) That way you can create the wrapper classes as needed after you've created the structures and wrapped them up. In summary, it's possible to create an endpoint module from C#, but a major PITA. You should consider either using a mixed-mode language such as C++/CLI or write a helper library in C/C++ and export that via swig. We'd welcome contributions to mod_managed that simplify access to a set of the FS APIs. -Michael From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Alex To Sent: Monday, November 02, 2009 5:19 AM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] mod managed, cant receive events thru EventReceivedFunction callback Hi, I would like to raise this question again since it doesn't seem to have an answer yet. I built a .NET module which implements IAppPlugin and IApiPlugin. I looked at the /contrib/verifier/eventsocket and it is actually the client to connect to FS through mod_event_socket (correct me if I'm wrong here). I believe Andrew's concern was how to receive events through EventReceivedFunctionCallback but not connect to FS and receive event via TCP/IP. I would want to implement a .NET module that acts like an endpoint. Could someone show me the direction of how to hook up handlers like it is done in native C++? How would I read the incoming audio data and how would I send audio as an outgoing stream. I setup the .NET module and dial plan so that the Run() method in my module is invoked whenever a call is bridged to my endpoint. The ParkingLot and Demo script sample does enlighten me a little but I still have no clue how would I go about the audio stream after I call session.Answer(). Any help would be greatly appreciated. Best Regards Alex To -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091103/0fec3d8c/attachment-0001.html From tonhudung at gmail.com Mon Nov 2 22:21:43 2009 From: tonhudung at gmail.com (Alex To) Date: Tue, 3 Nov 2009 14:21:43 +0800 Subject: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] In-Reply-To: <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> References: <004e01ca5ae8$ac449a10$04cdce30$@com> <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> Message-ID: <001d01ca5c4d$eca08360$c5e18a20$@com> Hi, I copied mod_opal to mod_mymodule which is C++ module and remove all the codes. I copied mod_skel.c to my module and rename it to .cpp. Compiled fine in VS 2008 SP1 but still I couldn't load the module in FS. The FS console still complains "dll sym error.". If I rename mod_mymodule.cpp to .c, it loaded successfully. Hmm, what do I miss here ? any special trick to load a C++ module in FS ? Alex -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Giovanni Maruzzelli Sent: Sunday, November 01, 2009 9:05 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] On Sun, Nov 1, 2009 at 12:44 PM, Alex To wrote: > Sorry, I figured it out by myself. It was because my code file is > mod_mymodule.cpp. I changed it to mod_mymodule.c and the module loaded file. > So I take it as FS accepts only C library but not C++ ? Ciao Alex, no, you're on the wrong track. FS loads CPP modules. Your problems probably come because mod_skel is a C module, and the Makefile for it manages it as a C module. If you want to compile a CPP module, find one as an example, and adjust yourmodule and its Makefile to be compiled in a similar way. I've done it, and I can assure it works. In this moment I cannot tell you out of my memory which module is CPP, but just browse the sources looking for *.cc or *.cpp. -giovanni > > > > Regards > > > > Alex To > > > > From: Alex To [mailto:tonhudung at gmail.com] > Sent: Sunday, November 01, 2009 7:35 PM > To: 'freeswitch-dev at lists.freeswitch.org' > Subject: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error > Loading module .... **dll sym error [127l] > > > > Hi, excuse me if this is already asked where else but I did browse through > the mailing list and I couldn?t find anything related. I tried to create a > new end point module by copying the mod_skel to mod/endpoints/my_module > folder. > > > > I modified ?skel? to my module name and basically I leave no codes in the > load function, just a few lines to test if the new module is working. These > few lines are: > > > > *module_interface = switch_loadable_module_create_module_interface(pool, > modname); > > ????? modem_endpoint_interface = > (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*modul e_interface, > SWITCH_ENDPOINT_INTERFACE); > > ????? modem_endpoint_interface->interface_name = "modem"; > > ????? switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello > World!\n"); > > ????? // > > ????? //do_config(SWITCH_FALSE); > > ????? // > > ????? SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, > "syntax"); > > > > ????? /* indicate that the module should continue to be loaded */ > > ????? return SWITCH_STATUS_SUCCESS; > > > > It compiles but the module can?t load properly. I received the following > error: > > > > 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading > module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll > > **dll sym error [127l] > > ** > > I tried to load module normally at the FS console but ?load mod_skel? and > ?load mod_mymodule? gives the same error. > > > > Would someone tell me what do I miss here. > > > > Btw, I looked at mod_sofia and mod_iax, this line of code could compile in > those 2 modules. > > > > modem_endpoint_interface = > switch_loadable_module_create_interface(*module_interface, > SWITCH_ENDPOINT_INTERFACE); > > > > The same line of code couldn?t compile in my module coz VS complains: cannot > convert from void* to switch_endpoint_interface_t*. I know C++ require more > type-safe conversion than C but anyone got the same error? > > > > And how would I search in the mailing list ? Sorry for this dumb question > but I can?t seem to find out how to search in the archives. For now, before > posting anything, I need to try to browse through all the postings first, > which is > > > > quite tedious to do. > > > > Regards > > > > Alex To > > _______________________________________________ > 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 > > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 _______________________________________________ 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 msc at freeswitch.org Tue Nov 3 08:38:41 2009 From: msc at freeswitch.org (Michael Collins) Date: Tue, 3 Nov 2009 08:38:41 -0800 Subject: [Freeswitch-dev] FreeSWITCH 1.0.5 Scheduled For November 10; 1.0.5pre5 Now Available Message-ID: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> Greetings! The latest FreeSWITCH pre-release is now available: http://www.freeswitch.org/node/215 Please update and test as soon as possible. With the community's help we should be able to hit our target of releasing version 1.0.5 next Tuesday November 10. The FreeSWITCH developers appreciate all the hard work that the community does on behalf of the project. Like most open source projects, FreeSWITCH needs the community to "give back" a little and you all certainly do that. Please keep up the great work. -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091103/da32af15/attachment.html From pvolchek at voicemobility.com Tue Nov 3 12:20:45 2009 From: pvolchek at voicemobility.com (Peter Volchek) Date: Tue, 03 Nov 2009 12:20:45 -0800 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> Message-ID: <4AF0909D.8070103@voicemobility.com> Hi, I am having some troubles adopting [session:playAndGetDigits] function to my application needs. There are three possible outcomes that the function should report on: 1. Success. The required number of of digits was collected and they match the mask. 2. Fail 1.The entered digits do not match the mask 3. Fail2. Timeout failure Right now, I cannot distinguish between 2 & 3. In both cases, an empty string is returned, so I have no idea what was the real failure. 4. Success upon termination That is a tricky one, and I believe, there is a bug in this function. This function accept the terminators, which should stop digits collection. Consider the following function call: digits = session:playAndGetDigits( 0, 5, 1, 3000, "#", "enter_mailbox_number_or_hit_pound_to_login.wav", "error.wav", "\\d*" ); Here, I want to collect up to 5 digits, that represent a mailbox number. Note that I set the minimum value to be 0, as I want "#" itself to be the sign, that I want to login to my system. However, when I execute this code and hit "#" immediately, the system play me an error message. Oops! Well, I changed my digits mask to be "#", and it did not help either. BTW, about the last case. If I my digits mask contains the symbol used in the terminators, then it has to be collected and returned. The current implementation just uses terminates the collection and does not include the terminator to the returned string. Possible solutions to determine the function's outcome: 1. Return multiple values (state, digits). That may break tons of the existing code 2. Set a channel (or session) variable. Similar to C's errno and define some variables defining the outcome. Below is a summary table that covers all the cases: ------------------------------------------------------ ERRNO | Description ------------------------------------------------------ RET_OK | Maximum number of digits was collected or | terminated when in range [min_digits..max_digits-1] | or timeout triggered after collecting enough digits [min_digits..max_digits-1]. | The collected digits match digits_regex | Returns the collected digits RET_TERM | Terminating before collecting enough digits or when | the collected digits do not match digits_regex | Return whatever was collected (for logging) RET_TIMEOUT | Did not collect enough digits for the time specified or when | the collected digits do not match digits_regex | Return whatever was collected (for logging) Does it all make sense? Cheers, PV From anthony.minessale at gmail.com Tue Nov 3 12:40:36 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 3 Nov 2009 14:40:36 -0600 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <4AF0909D.8070103@voicemobility.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> Message-ID: <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> We have such a variable called "read_result" possible vals: success, timeout, failure "read_terminator_used" contains the terminator On Tue, Nov 3, 2009 at 2:20 PM, Peter Volchek wrote: > Hi, > I am having some troubles adopting [session:playAndGetDigits] function > to my application needs. > > There are three possible outcomes that the function should report on: > 1. Success. The required number of of digits was collected and they > match the mask. > 2. Fail 1.The entered digits do not match the mask > 3. Fail2. Timeout failure > > Right now, I cannot distinguish between 2 & 3. In both cases, an empty > string is returned, so I have no idea what was the real failure. > > 4. Success upon termination > That is a tricky one, and I believe, there is a bug in this function. > This function accept the terminators, which should stop digits collection. > Consider the following function call: > > digits = session:playAndGetDigits( > 0, 5, 1, 3000, "#", > "enter_mailbox_number_or_hit_pound_to_login.wav", > "error.wav", > "\\d*" > ); > > > Here, I want to collect up to 5 digits, that represent a mailbox number. > Note that I set the minimum value to be 0, as I want "#" itself to be > the sign, that I want to login to my system. > However, when I execute this code and hit "#" immediately, the system > play me an error message. Oops! Well, I changed my digits mask to be > "#", and it did not help either. > BTW, about the last case. If I my digits mask contains the symbol used > in the terminators, then it has to be collected and returned. The > current implementation just uses terminates the collection and does not > include the terminator to the returned string. > > Possible solutions to determine the function's outcome: > 1. Return multiple values (state, digits). That may break tons of the > existing code > 2. Set a channel (or session) variable. Similar to C's errno and define > some variables defining the outcome. Below is a summary table that > covers all the cases: > > ------------------------------------------------------ > ERRNO | Description > ------------------------------------------------------ > RET_OK | Maximum number of digits was collected or > | terminated when in range [min_digits..max_digits-1] > | or timeout triggered after collecting enough digits > [min_digits..max_digits-1]. > | The collected digits match digits_regex > | Returns the collected digits > > RET_TERM | Terminating before collecting enough digits or when > | the collected digits do not match digits_regex > | Return whatever was collected (for logging) > > > RET_TIMEOUT | Did not collect enough digits for the time specified or when > | the collected digits do not match digits_regex > | Return whatever was collected (for logging) > > > Does it all make sense? > Cheers, > PV > > > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091103/b85ea5b1/attachment.html From pvolchek at voicemobility.com Tue Nov 3 13:12:37 2009 From: pvolchek at voicemobility.com (Peter Volchek) Date: Tue, 03 Nov 2009 13:12:37 -0800 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> Message-ID: <4AF09CC5.5090003@voicemobility.com> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091103/8da06201/attachment-0001.html From pvolchek at voicemobility.com Tue Nov 3 13:26:36 2009 From: pvolchek at voicemobility.com (Peter Volchek) Date: Tue, 03 Nov 2009 13:26:36 -0800 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <4AF09CC5.5090003@voicemobility.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> <4AF09CC5.5090003@voicemobility.com> Message-ID: <4AF0A00C.1000606@voicemobility.com> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091103/55221040/attachment.html From josh at radianttiger.com Tue Nov 3 15:00:35 2009 From: josh at radianttiger.com (Josh Rivers) Date: Tue, 3 Nov 2009 15:00:35 -0800 Subject: [Freeswitch-dev] Command-line windows build? Message-ID: I've spent a couple of nights trying to get FS to build on Win32 using msbuild against the .sln file. Debug builds seem to fail in spidermonkey, and release builds fail in util.vbs. Everything builds fine if I do it in Studio, it just doesn't build from the command line. Is anybody doing an automated build of FS on windows? If so, are you using any tricks to get it compile or am I missing something obvious? Thanks, Josh ps. I see a binary build reference in the Wiki. Is the code to build / package that checked in somewhere? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091103/37c91f9c/attachment.html From lei.tlfly at gmail.com Wed Nov 4 01:36:35 2009 From: lei.tlfly at gmail.com (Lei Tang) Date: Wed, 4 Nov 2009 17:36:35 +0800 Subject: [Freeswitch-dev] How to get digitals and stop play when speaking tts? Just like session:playAndGetDigits Message-ID: <50c41b4e0911040136k19ccfe7aw1420fdafec68bd6@mail.gmail.com> Hi, I'm writing lua ivr scirpt, Does some known how to get digitals and stop play when speaking tts? Just like session:playAndGetDigits do. Thanks lots! Best Regards! -- Lei.Tang lei.tlfly at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091104/e2fb65a6/attachment.html From tonhudung at gmail.com Wed Nov 4 04:01:49 2009 From: tonhudung at gmail.com (Alex To) Date: Wed, 4 Nov 2009 20:01:49 +0800 Subject: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] In-Reply-To: <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> References: <004e01ca5ae8$ac449a10$04cdce30$@com> <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> Message-ID: <000f01ca5d46$99a5e340$ccf1a9c0$@com> Anyone out there have built and loaded successfully a C++ module using Visual Studio 2008 SP1 with FS? This error really got me frustrated these few days. I can't seem to load a C++ module in FS, the error is "dll sym error [1271]" If I rename the code file to .c or change the compile option to "Compile as C code", the module loads fine. If I compile using option "Compile as C++ code" then I got the error. Would really appreciate it if anyone could shed some lights. It must be a setting somewhere in VS or in FS ?? I build FS on Windows 7 x64, VS 2008 SP1, Windows SDK 7.0, build target win32. Regards Alex To -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Giovanni Maruzzelli Sent: Sunday, November 01, 2009 9:05 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] On Sun, Nov 1, 2009 at 12:44 PM, Alex To wrote: > Sorry, I figured it out by myself. It was because my code file is > mod_mymodule.cpp. I changed it to mod_mymodule.c and the module loaded file. > So I take it as FS accepts only C library but not C++ ? Ciao Alex, no, you're on the wrong track. FS loads CPP modules. Your problems probably come because mod_skel is a C module, and the Makefile for it manages it as a C module. If you want to compile a CPP module, find one as an example, and adjust yourmodule and its Makefile to be compiled in a similar way. I've done it, and I can assure it works. In this moment I cannot tell you out of my memory which module is CPP, but just browse the sources looking for *.cc or *.cpp. -giovanni > > > > Regards > > > > Alex To > > > > From: Alex To [mailto:tonhudung at gmail.com] > Sent: Sunday, November 01, 2009 7:35 PM > To: 'freeswitch-dev at lists.freeswitch.org' > Subject: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error > Loading module .... **dll sym error [127l] > > > > Hi, excuse me if this is already asked where else but I did browse through > the mailing list and I couldn?t find anything related. I tried to create a > new end point module by copying the mod_skel to mod/endpoints/my_module > folder. > > > > I modified ?skel? to my module name and basically I leave no codes in the > load function, just a few lines to test if the new module is working. These > few lines are: > > > > *module_interface = switch_loadable_module_create_module_interface(pool, > modname); > > ????? modem_endpoint_interface = > (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*modul e_interface, > SWITCH_ENDPOINT_INTERFACE); > > ????? modem_endpoint_interface->interface_name = "modem"; > > ????? switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello > World!\n"); > > ????? // > > ????? //do_config(SWITCH_FALSE); > > ????? // > > ????? SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, > "syntax"); > > > > ????? /* indicate that the module should continue to be loaded */ > > ????? return SWITCH_STATUS_SUCCESS; > > > > It compiles but the module can?t load properly. I received the following > error: > > > > 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading > module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll > > **dll sym error [127l] > > ** > > I tried to load module normally at the FS console but ?load mod_skel? and > ?load mod_mymodule? gives the same error. > > > > Would someone tell me what do I miss here. > > > > Btw, I looked at mod_sofia and mod_iax, this line of code could compile in > those 2 modules. > > > > modem_endpoint_interface = > switch_loadable_module_create_interface(*module_interface, > SWITCH_ENDPOINT_INTERFACE); > > > > The same line of code couldn?t compile in my module coz VS complains: cannot > convert from void* to switch_endpoint_interface_t*. I know C++ require more > type-safe conversion than C but anyone got the same error? > > > > And how would I search in the mailing list ? Sorry for this dumb question > but I can?t seem to find out how to search in the archives. For now, before > posting anything, I need to try to browse through all the postings first, > which is > > > > quite tedious to do. > > > > Regards > > > > Alex To > > _______________________________________________ > 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 > > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 _______________________________________________ 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 mgg at giagnocavo.net Wed Nov 4 04:29:54 2009 From: mgg at giagnocavo.net (Michael Giagnocavo) Date: Wed, 4 Nov 2009 07:29:54 -0500 Subject: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] In-Reply-To: <000f01ca5d46$99a5e340$ccf1a9c0$@com> References: <004e01ca5ae8$ac449a10$04cdce30$@com> <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> <000f01ca5d46$99a5e340$ccf1a9c0$@com> Message-ID: <6E8D2069C08AA84A83D336E996AE4C6703244F7B9E@mse17be1.mse17.exchange.ms> mod_managed is C++ and builds and loads fine. You could look at that and compare options and code. (Actually, all of the language plugins should be C++.) -Michael -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Alex To Sent: Wednesday, November 04, 2009 5:02 AM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] Anyone out there have built and loaded successfully a C++ module using Visual Studio 2008 SP1 with FS? This error really got me frustrated these few days. I can't seem to load a C++ module in FS, the error is "dll sym error [1271]" If I rename the code file to .c or change the compile option to "Compile as C code", the module loads fine. If I compile using option "Compile as C++ code" then I got the error. Would really appreciate it if anyone could shed some lights. It must be a setting somewhere in VS or in FS ?? I build FS on Windows 7 x64, VS 2008 SP1, Windows SDK 7.0, build target win32. Regards Alex To -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Giovanni Maruzzelli Sent: Sunday, November 01, 2009 9:05 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] On Sun, Nov 1, 2009 at 12:44 PM, Alex To wrote: > Sorry, I figured it out by myself. It was because my code file is > mod_mymodule.cpp. I changed it to mod_mymodule.c and the module loaded file. > So I take it as FS accepts only C library but not C++ ? Ciao Alex, no, you're on the wrong track. FS loads CPP modules. Your problems probably come because mod_skel is a C module, and the Makefile for it manages it as a C module. If you want to compile a CPP module, find one as an example, and adjust yourmodule and its Makefile to be compiled in a similar way. I've done it, and I can assure it works. In this moment I cannot tell you out of my memory which module is CPP, but just browse the sources looking for *.cc or *.cpp. -giovanni > > > > Regards > > > > Alex To > > > > From: Alex To [mailto:tonhudung at gmail.com] > Sent: Sunday, November 01, 2009 7:35 PM > To: 'freeswitch-dev at lists.freeswitch.org' > Subject: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error > Loading module .... **dll sym error [127l] > > > > Hi, excuse me if this is already asked where else but I did browse through > the mailing list and I couldn't find anything related. I tried to create a > new end point module by copying the mod_skel to mod/endpoints/my_module > folder. > > > > I modified "skel" to my module name and basically I leave no codes in the > load function, just a few lines to test if the new module is working. These > few lines are: > > > > *module_interface = switch_loadable_module_create_module_interface(pool, > modname); > > ????? modem_endpoint_interface = > (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*modul e_interface, > SWITCH_ENDPOINT_INTERFACE); > > ????? modem_endpoint_interface->interface_name = "modem"; > > ????? switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello > World!\n"); > > ????? // > > ????? //do_config(SWITCH_FALSE); > > ????? // > > ????? SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, > "syntax"); > > > > ????? /* indicate that the module should continue to be loaded */ > > ????? return SWITCH_STATUS_SUCCESS; > > > > It compiles but the module can't load properly. I received the following > error: > > > > 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading > module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll > > **dll sym error [127l] > > ** > > I tried to load module normally at the FS console but "load mod_skel" and > "load mod_mymodule" gives the same error. > > > > Would someone tell me what do I miss here. > > > > Btw, I looked at mod_sofia and mod_iax, this line of code could compile in > those 2 modules. > > > > modem_endpoint_interface = > switch_loadable_module_create_interface(*module_interface, > SWITCH_ENDPOINT_INTERFACE); > > > > The same line of code couldn't compile in my module coz VS complains: cannot > convert from void* to switch_endpoint_interface_t*. I know C++ require more > type-safe conversion than C but anyone got the same error? > > > > And how would I search in the mailing list ? Sorry for this dumb question > but I can't seem to find out how to search in the archives. For now, before > posting anything, I need to try to browse through all the postings first, > which is > > > > quite tedious to do. > > > > Regards > > > > Alex To > > _______________________________________________ > 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 > > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 _______________________________________________ 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 _______________________________________________ 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 tonhudung at gmail.com Wed Nov 4 05:57:23 2009 From: tonhudung at gmail.com (Alex To) Date: Wed, 4 Nov 2009 21:57:23 +0800 Subject: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] In-Reply-To: <6E8D2069C08AA84A83D336E996AE4C6703244F7B9E@mse17be1.mse17.exchange.ms> References: <004e01ca5ae8$ac449a10$04cdce30$@com> <7b197bef0911010504o19001048s6382ba4efcbb63ce@mail.gmail.com> <000f01ca5d46$99a5e340$ccf1a9c0$@com> <6E8D2069C08AA84A83D336E996AE4C6703244F7B9E@mse17be1.mse17.exchange.ms> Message-ID: <001001ca5d56$bf6af970$3e40ec50$@com> Thanks Mike for the hint. I figured it out. To avoid this error, I need to wrap the part where we define the SWITCH_MODULE_..._FUNCTION inside SWITCH_BEGIN_EXTERN_C AND SWITCH_END_EXTERN_C. It is now loaded fine. Regards Alex To -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Michael Giagnocavo Sent: Wednesday, November 04, 2009 8:30 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] mod_managed is C++ and builds and loads fine. You could look at that and compare options and code. (Actually, all of the language plugins should be C++.) -Michael -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Alex To Sent: Wednesday, November 04, 2009 5:02 AM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] Anyone out there have built and loaded successfully a C++ module using Visual Studio 2008 SP1 with FS? This error really got me frustrated these few days. I can't seem to load a C++ module in FS, the error is "dll sym error [1271]" If I rename the code file to .c or change the compile option to "Compile as C code", the module loads fine. If I compile using option "Compile as C++ code" then I got the error. Would really appreciate it if anyone could shed some lights. It must be a setting somewhere in VS or in FS ?? I build FS on Windows 7 x64, VS 2008 SP1, Windows SDK 7.0, build target win32. Regards Alex To -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Giovanni Maruzzelli Sent: Sunday, November 01, 2009 9:05 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] FW: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error Loading module .... **dll sym error [127l] On Sun, Nov 1, 2009 at 12:44 PM, Alex To wrote: > Sorry, I figured it out by myself. It was because my code file is > mod_mymodule.cpp. I changed it to mod_mymodule.c and the module loaded file. > So I take it as FS accepts only C library but not C++ ? Ciao Alex, no, you're on the wrong track. FS loads CPP modules. Your problems probably come because mod_skel is a C module, and the Makefile for it manages it as a C module. If you want to compile a CPP module, find one as an example, and adjust yourmodule and its Makefile to be compiled in a similar way. I've done it, and I can assure it works. In this moment I cannot tell you out of my memory which module is CPP, but just browse the sources looking for *.cc or *.cpp. -giovanni > > > > Regards > > > > Alex To > > > > From: Alex To [mailto:tonhudung at gmail.com] > Sent: Sunday, November 01, 2009 7:35 PM > To: 'freeswitch-dev at lists.freeswitch.org' > Subject: Visual Studio 2008 Pro SP1: switch_loadable_module.c:871 Error > Loading module .... **dll sym error [127l] > > > > Hi, excuse me if this is already asked where else but I did browse through > the mailing list and I couldn't find anything related. I tried to create a > new end point module by copying the mod_skel to mod/endpoints/my_module > folder. > > > > I modified "skel" to my module name and basically I leave no codes in the > load function, just a few lines to test if the new module is working. These > few lines are: > > > > *module_interface = switch_loadable_module_create_module_interface(pool, > modname); > > ????? modem_endpoint_interface = > (switch_endpoint_interface_t*)switch_loadable_module_create_interface(*modul e_interface, > SWITCH_ENDPOINT_INTERFACE); > > ????? modem_endpoint_interface->interface_name = "modem"; > > ????? switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello > World!\n"); > > ????? // > > ????? //do_config(SWITCH_FALSE); > > ????? // > > ????? SWITCH_ADD_API(api_interface, "modem", "Modem API", modem_function, > "syntax"); > > > > ????? /* indicate that the module should continue to be loaded */ > > ????? return SWITCH_STATUS_SUCCESS; > > > > It compiles but the module can't load properly. I received the following > error: > > > > 2009-11-01 19:18:10.551180 [CRIT] switch_loadable_module.c:871 Error Loading > module D:\Projects\freeswitch\Debug\mod\mod_mymodule.dll > > **dll sym error [127l] > > ** > > I tried to load module normally at the FS console but "load mod_skel" and > "load mod_mymodule" gives the same error. > > > > Would someone tell me what do I miss here. > > > > Btw, I looked at mod_sofia and mod_iax, this line of code could compile in > those 2 modules. > > > > modem_endpoint_interface = > switch_loadable_module_create_interface(*module_interface, > SWITCH_ENDPOINT_INTERFACE); > > > > The same line of code couldn't compile in my module coz VS complains: cannot > convert from void* to switch_endpoint_interface_t*. I know C++ require more > type-safe conversion than C but anyone got the same error? > > > > And how would I search in the mailing list ? Sorry for this dumb question > but I can't seem to find out how to search in the archives. For now, before > posting anything, I need to try to browse through all the postings first, > which is > > > > quite tedious to do. > > > > Regards > > > > Alex To > > _______________________________________________ > 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 > > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 vipkilla at gmail.com Wed Nov 4 11:11:04 2009 From: vipkilla at gmail.com (vip killa) Date: Wed, 4 Nov 2009 14:11:04 -0500 Subject: [Freeswitch-dev] execute api after conference Message-ID: <957f61370911041111l33a0c6c8u13a7d0120ef9d15d@mail.gmail.com> I'm trying to figure out how to execute an API command such as a lua script after a user has connected to a conference. for example, an extension is executed and the user is connected to a conference: after the user has connected to the conference, i want a lua script to run. is this possible? everything i've tried results in executing the lua script before the user is actually connected to the conference. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091104/bdba6d82/attachment.html From brian at freeswitch.org Wed Nov 4 11:18:24 2009 From: brian at freeswitch.org (Brian West) Date: Wed, 4 Nov 2009 13:18:24 -0600 Subject: [Freeswitch-dev] execute api after conference In-Reply-To: <957f61370911041111l33a0c6c8u13a7d0120ef9d15d@mail.gmail.com> References: <957f61370911041111l33a0c6c8u13a7d0120ef9d15d@mail.gmail.com> Message-ID: If you look in the defaults I do something like this: You can set it to anything and use the ${sched_api()} variable to do it for you. This is just one example. /b On Nov 4, 2009, at 1:11 PM, vip killa wrote: > I'm trying to figure out how to execute an API command such as a lua > script after a user has connected to a conference. > > for example, an extension is executed and the user is connected to a > conference: > > after the user has connected to the conference, i want a lua script > to run. > is this possible? > everything i've tried results in executing the lua script before the > user is actually connected to the conference. From trixter at 0xdecafbad.com Wed Nov 4 11:51:03 2009 From: trixter at 0xdecafbad.com (Trixter aka Bret McDanel) Date: Wed, 04 Nov 2009 11:51:03 -0800 Subject: [Freeswitch-dev] execute api after conference In-Reply-To: References: <957f61370911041111l33a0c6c8u13a7d0120ef9d15d@mail.gmail.com> Message-ID: <1257364263.7100.101.camel@trixeee> > On Nov 4, 2009, at 1:11 PM, vip killa wrote: > > > I'm trying to figure out how to execute an API command such as a lua > > script after a user has connected to a conference. > > > > for example, an extension is executed and the user is connected to a > > conference: > > > > after the user has connected to the conference, i want a lua script > > to run. > > is this possible? > > everything i've tried results in executing the lua script before the > > user is actually connected to the conference. If you look in {SRC}/conntrib/trixter/scheduled_event.lua there is an example of capturing events in lua, similar to connecting to event socket. You can monitor for conference::maintenance for join events and execute whatever lua code you want to that way. So there are options as to how you do this. -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 From trever.adams at gmail.com Wed Nov 4 00:19:53 2009 From: trever.adams at gmail.com (Trever L. Adams) Date: Wed, 04 Nov 2009 01:19:53 -0700 Subject: [Freeswitch-dev] Libraries (http://files.freeswitch.org/ or system) Message-ID: <4AF13929.9030009@gmail.com> Hello everyone, I have tried to find this answer, but have been unable to do so. Fedora has most of the libraries and programs used by freeswitch. Can I use the system ones or do I need to use the ones at files.freeswitch.org? I understand they are needed on windows for compilation reasons, but I am interested in Linux. Thank you, Trever -- "It was as true as taxes is. And nothing's truer than them." -- Charles Dickens (1812-70) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091104/36d29a05/attachment.bin From gmaruzz at celliax.org Wed Nov 4 12:10:31 2009 From: gmaruzz at celliax.org (Giovanni Maruzzelli) Date: Wed, 4 Nov 2009 21:10:31 +0100 Subject: [Freeswitch-dev] Libraries (http://files.freeswitch.org/ or system) In-Reply-To: <4AF13929.9030009@gmail.com> References: <4AF13929.9030009@gmail.com> Message-ID: <7b197bef0911041210i5298993agb2d68ecec818af7c@mail.gmail.com> On Wed, Nov 4, 2009 at 9:19 AM, Trever L. Adams wrote: > Fedora has most of the libraries and programs used by freeswitch. Can I > use the system ones or do I need to use the ones at > files.freeswitch.org? I understand they are needed on windows for > compilation reasons, but I am interested in Linux. No, you cannot use the system one. FS developers had chosen a set of revision of libraries (and often patched them), so to be sure to have a sane platform, and not to depend on the particular distro packages. The FS build system automagically builds and uses its own libs, that do not interfere with the rest of the system. In short: no. -gm > > Thank you, > Trever > -- > "It was as true as taxes is. And nothing's truer than them." -- Charles > Dickens (1812-70) > > > > _______________________________________________ > 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 > > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 From mike at jerris.com Wed Nov 4 12:15:13 2009 From: mike at jerris.com (Michael Jerris) Date: Wed, 4 Nov 2009 15:15:13 -0500 Subject: [Freeswitch-dev] Libraries (http://files.freeswitch.org/ or system) In-Reply-To: <4AF13929.9030009@gmail.com> References: <4AF13929.9030009@gmail.com> Message-ID: <377DEB94-40A1-4F5A-8A4D-7311EAE6DE82@jerris.com> No, many of our libs are patched or require the exact versions we have in tree. Mike On Nov 4, 2009, at 3:19 AM, Trever L. Adams wrote: > Hello everyone, > > I have tried to find this answer, but have been unable to do so. > > Fedora has most of the libraries and programs used by freeswitch. > Can I > use the system ones or do I need to use the ones at > files.freeswitch.org? I understand they are needed on windows for > compilation reasons, but I am interested in Linux. > > Thank you, > Trever > -- > "It was as true as taxes is. And nothing's truer than them." -- > Charles > Dickens (1812-70) > > > _______________________________________________ > 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 trever.adams at gmail.com Thu Nov 5 07:11:43 2009 From: trever.adams at gmail.com (Trever L. Adams) Date: Thu, 05 Nov 2009 08:11:43 -0700 Subject: [Freeswitch-dev] Libraries (http://files.freeswitch.org/ or system) In-Reply-To: <377DEB94-40A1-4F5A-8A4D-7311EAE6DE82@jerris.com> References: <4AF13929.9030009@gmail.com> <377DEB94-40A1-4F5A-8A4D-7311EAE6DE82@jerris.com> Message-ID: <4AF2EB2F.7020609@gmail.com> On 11/04/2009 01:15 PM, Michael Jerris wrote: > No, many of our libs are patched or require the exact versions we have > in tree. > > Mike > > On Nov 4, 2009, at 3:19 AM, Trever L. Adams wrote: > Thank you for the quick response. This makes sense. Trever -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091105/cf429ef0/attachment.bin From msc at freeswitch.org Fri Nov 6 01:44:26 2009 From: msc at freeswitch.org (Michael Collins) Date: Fri, 6 Nov 2009 01:44:26 -0800 Subject: [Freeswitch-dev] FreeSWITCH Weekly Conf Call - Nov 6 Message-ID: <87f2f3b90911060144h1a5e4e96id53fab67d26d5ec1@mail.gmail.com> FYI, The agenda is posted here: http://wiki.freeswitch.org/wiki/FS_weekly_2009_11_06 It's a light agenda this week. Also, I'm out of town and will only be on the call for about an hour before I have to drop off. I'll be checking in off and on. Everyone is welcome to bring items for discussion. Talk to you tomorrow. -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091106/bd6efbc7/attachment.html From gromovd at gmail.com Thu Nov 5 23:17:19 2009 From: gromovd at gmail.com (Dmitry Gromov) Date: Fri, 6 Nov 2009 02:17:19 -0500 Subject: [Freeswitch-dev] Command-line windows build? In-Reply-To: References: Message-ID: Hi. That's funny you asking... I just finished test builds of the FreeSwitch snapshot using Msbuild and nothing more than Platform SDK. And I haven't seen your email until after I had Debug build succeed. Release build took a bit more tweaking. If anyone interested - Platform SDK, starting with version 6.1 (or may be even 6.0, so not remember) includes non-optimizing C++ compiler, msbuild and most other tools (but not all) needed to build projects. Builds Freeswitch.2008.express.sln with PlatformSDK only needs some tweaking to project files. If you have VS2008 Express or full version, it should be even easier - just correct one typo and one tweak (I think that should be enough). So, except obvious fixes, there are two limitations to PlatformSDK build environments: - bscmake.exe tool is not included, so it is not possible to build .bsc files - this is just debug info and can be easily turned off - there is one project which has a requirement for optimization to be turned on when building in Release mode, so it will be compatible with default compiler switch (/GS- BufferSecurityCheck), but that can be turned off as well Below are the tweaks I did to project files in order too build with PlatformSDK. As I said - you may need less tweaking if you have VS installed. Disclamer - I haven't tried running Freeswitch executables I built, the results based on successful build results with PlatformSDK 6.1 only. Also - once I test this and verify all tweaks, I plan to post the info on the wiki (if there are no objections, of course). Let's go over the tweaks: \libs\win32\Download sphinxmodel.2008.vcproj This file has a typo, preventing build to succeed in release mode, Look for section wrote: > I've spent a couple of nights trying to get FS to build on Win32 using > msbuild against the .sln file. Debug builds seem to fail in spidermonkey, > and release builds fail in util.vbs. Everything builds fine if I do it in > Studio, it just doesn't build from the command line. > > Is anybody doing an automated build of FS on windows? If so, are you using > any tricks to get it compile or am I missing something obvious? > > Thanks, > Josh > > ps. I see a binary build reference in the Wiki. Is the code to build / > package that checked in somewhere? > > _______________________________________________ > 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 > > -- DG NJ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091106/231b6109/attachment-0001.html From tonhudung at gmail.com Sun Nov 8 04:21:00 2009 From: tonhudung at gmail.com (Alex To) Date: Sun, 8 Nov 2009 20:21:00 +0800 Subject: [Freeswitch-dev] Questions about read_frame and write_frame events Message-ID: <000301ca606d$f097ea70$d1c7bf50$@com> Hi, I am getting stuck on read_frame and write_frame in my custom endpoint. Would someone shed some lights on how it works? My questions about read_frame, write_frame after reading mod_iax, mod_portaudio and mod_skyiax are: 1. Is it correct that I need to check a flag (for e.g TFLAG_HUP) of the private object at the beginning of the event to determine whether I should continue reading audio or just return. The flag TFLAG_HUP is set when a hangup or kill channel event is detected. 2. Read_frame is called on an interval (how frequently is the interval ? how do I determine that?) to read audio from my endpoint. 3. What is TFLAG_IO normally used for ? 4. What is the label "cng" is all about ? May I know what "cng" stands for and how it is used? 5. What if read_frame is called while my end point is not ready to send any audio yet? 6. What is the tech_pvt->cng_frame is used for? I notice that the *frame is set to tech_pvt->cng_frame if the label "cng" is reached. Thank you very much for even reading my questions. I tried to look for documents that explains clearly the above questions but so far no luck. Until now I still don't have a clear understanding about these 2 events yet. Best Regards Alex To -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091108/96812f2f/attachment.html From mrene_lists at avgs.ca Sun Nov 8 10:54:27 2009 From: mrene_lists at avgs.ca (Mathieu Rene) Date: Sun, 8 Nov 2009 10:54:27 -0800 Subject: [Freeswitch-dev] Questions about read_frame and write_frame events In-Reply-To: <000301ca606d$f097ea70$d1c7bf50$@com> References: <000301ca606d$f097ea70$d1c7bf50$@com> Message-ID: <7DEDFFB2-ED8A-4B99-A4DE-3A0E5A640D3F@avgs.ca> Hi, See answers inline. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene at avgs.ca On 8-Nov-09, at 4:21 AM, Alex To wrote: > Hi, > > I am getting stuck on read_frame and write_frame in my custom > endpoint. Would someone shed some lights on how it works? > > My questions about read_frame, write_frame after reading mod_iax, > mod_portaudio and mod_skyiax are: > > 1. Is it correct that I need to check a flag (for e.g > TFLAG_HUP) of the private object at the beginning of the event to > determine whether I should continue reading audio or just return. > The flag TFLAG_HUP is set when a hangup or kill channel event is > detected. Thats what TFLAG_IO is for, clear the flag the read_frame functions should return immediately. If you catch TFLAG_BREAK, on the other side, you should clear it and return a comfort noise frame ( cng ) > 2. Read_frame is called on an interval (how frequently is the > interval ? how do I determine that?) to read audio from my endpoint. It depends on the codec you are using, if you are using 20 packetization time, it'll be called every 20ms. > 3. What is TFLAG_IO normally used for ? See point 1 > 4. What is the label ?cng? is all about ? May I know what > ?cng? stands for and how it is used? CNG stands for Comfort Noise Generation, whenever read_frame jumps there, it returns a frame of silence. It it first initialized on private_t since its pointless to re-allocate empty frames. > 5. What if read_frame is called while my end point is not > ready to send any audio yet? That's why you set TFLAG_IO whenever you are ready. Also note that it wont be called until you either pre_answer (go in early media) or answer the channel. When a call is made, switch_ivr_originate() doesn't return until your endpoint is ready to exchange audio. > 6. What is the tech_pvt->cng_frame is used for? I notice that > the *frame is set to tech_pvt->cng_frame if the label ?cng? is > reached. See point 4. > > Thank you very much for even reading my questions. I tried to look > for documents that explains clearly the above questions but so far > no luck. Until now I still don?t have a clear understanding about > these 2 events yet. > > Best Regards > > Alex To > _______________________________________________ > 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/20091108/c8fc5360/attachment.html From tonhudung at gmail.com Mon Nov 9 01:54:35 2009 From: tonhudung at gmail.com (Alex To) Date: Mon, 9 Nov 2009 17:54:35 +0800 Subject: [Freeswitch-dev] Questions about read_frame and write_frame events In-Reply-To: <7DEDFFB2-ED8A-4B99-A4DE-3A0E5A640D3F@avgs.ca> References: <000301ca606d$f097ea70$d1c7bf50$@com> <7DEDFFB2-ED8A-4B99-A4DE-3A0E5A640D3F@avgs.ca> Message-ID: <000301ca6122$a7e426d0$f7ac7470$@com> Thank you very much Mathieu So if TFLAG_IO is not set, read_frame will return immediately and *frame is NULL ? Is it a normal behavior if the call is terminated when a NULL frame is returned ? Coz when I return a NULL frame, the call is terminated. So now my understanding is that if my endpoint buffer is empty, I need to return a silence frame to the other end, right? Thank again Mathieu for your quick reply, that helps a lot J. Regards Alex To From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Mathieu Rene Sent: Monday, November 09, 2009 2:54 AM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] Questions about read_frame and write_frame events Hi, See answers inline. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene at avgs.ca On 8-Nov-09, at 4:21 AM, Alex To wrote: Hi, I am getting stuck on read_frame and write_frame in my custom endpoint. Would someone shed some lights on how it works? My questions about read_frame, write_frame after reading mod_iax, mod_portaudio and mod_skyiax are: 1. Is it correct that I need to check a flag (for e.g TFLAG_HUP) of the private object at the beginning of the event to determine whether I should continue reading audio or just return. The flag TFLAG_HUP is set when a hangup or kill channel event is detected. Thats what TFLAG_IO is for, clear the flag the read_frame functions should return immediately. If you catch TFLAG_BREAK, on the other side, you should clear it and return a comfort noise frame ( cng ) 2. Read_frame is called on an interval (how frequently is the interval ? how do I determine that?) to read audio from my endpoint. It depends on the codec you are using, if you are using 20 packetization time, it'll be called every 20ms. 3. What is TFLAG_IO normally used for ? See point 1 4. What is the label "cng" is all about ? May I know what "cng" stands for and how it is used? CNG stands for Comfort Noise Generation, whenever read_frame jumps there, it returns a frame of silence. It it first initialized on private_t since its pointless to re-allocate empty frames. 5. What if read_frame is called while my end point is not ready to send any audio yet? That's why you set TFLAG_IO whenever you are ready. Also note that it wont be called until you either pre_answer (go in early media) or answer the channel. When a call is made, switch_ivr_originate() doesn't return until your endpoint is ready to exchange audio. 6. What is the tech_pvt->cng_frame is used for? I notice that the *frame is set to tech_pvt->cng_frame if the label "cng" is reached. See point 4. Thank you very much for even reading my questions. I tried to look for documents that explains clearly the above questions but so far no luck. Until now I still don't have a clear understanding about these 2 events yet. Best Regards Alex To _______________________________________________ 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/20091109/128e3f45/attachment-0001.html From anthony.minessale at gmail.com Mon Nov 9 10:00:14 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 9 Nov 2009 12:00:14 -0600 Subject: [Freeswitch-dev] Questions about read_frame and write_frame events In-Reply-To: <000301ca6122$a7e426d0$f7ac7470$@com> References: <000301ca606d$f097ea70$d1c7bf50$@com> <7DEDFFB2-ED8A-4B99-A4DE-3A0E5A640D3F@avgs.ca> <000301ca6122$a7e426d0$f7ac7470$@com> Message-ID: <191c3a030911091000x7f2a4ea6wb6bb299987d60c9d@mail.gmail.com> yes you must return a frame marked SFF_CNG rather than a NULL frame. The TFLAG flags are all arbitrary, you can get rid of all of them if you wish they are just an example of how those modules communicate internally. Sometimes they were used for the host technology to have a way to mark the channel so the call should die but you may get the same effect by just hanging up the channel since the core now does a lot of this and may never let your read func even be called. On Mon, Nov 9, 2009 at 3:54 AM, Alex To wrote: > Thank you very much Mathieu > > > > So if TFLAG_IO is not set, read_frame will return immediately and *frame is > NULL ? Is it a normal behavior if the call is terminated when a NULL frame > is returned ? > > > > Coz when I return a NULL frame, the call is terminated. So now my > understanding is that if my endpoint buffer is empty, I need to return a > silence frame to the other end, right? > > > > Thank again Mathieu for your quick reply, that helps a lot J. > > > > Regards > > > > Alex To > > > > *From:* freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] *On Behalf Of *Mathieu Rene > *Sent:* Monday, November 09, 2009 2:54 AM > *To:* freeswitch-dev at lists.freeswitch.org > *Subject:* Re: [Freeswitch-dev] Questions about read_frame and write_frame > events > > > > Hi, > > > > See answers inline. > > > > Mathieu Rene > > Avant-Garde Solutions Inc > > Office: + 1 (514) 664-1044 x100 > > Cell: +1 (514) 664-1044 x200 > > mrene at avgs.ca > > > > > > > > > > On 8-Nov-09, at 4:21 AM, Alex To wrote: > > > > Hi, > > > > I am getting stuck on read_frame and write_frame in my custom endpoint. > Would someone shed some lights on how it works? > > > > My questions about read_frame, write_frame after reading mod_iax, > mod_portaudio and mod_skyiax are: > > > > 1. Is it correct that I need to check a flag (for e.g TFLAG_HUP) of > the private object at the beginning of the event to determine whether I > should continue reading audio or just return. The flag TFLAG_HUP is set when > a hangup or kill channel event is detected. > > Thats what TFLAG_IO is for, clear the flag the read_frame functions should > return immediately. > > If you catch TFLAG_BREAK, on the other side, you should clear it and return > a comfort noise frame ( cng ) > > 2. Read_frame is called on an interval (how frequently is the > interval ? how do I determine that?) to read audio from my endpoint. > > It depends on the codec you are using, if you are using 20 packetization > time, it'll be called every 20ms. > > 3. What is TFLAG_IO normally used for ? > > See point 1 > > 4. What is the label ?cng? is all about ? May I know what ?cng? > stands for and how it is used? > > CNG stands for Comfort Noise Generation, whenever read_frame jumps there, > it returns a frame of silence. It it first initialized on private_t since > its pointless to re-allocate empty frames. > > 5. What if read_frame is called while my end point is not ready to > send any audio yet? > > That's why you set TFLAG_IO whenever you are ready. Also note that it wont > be called until you either pre_answer (go in early media) or answer the > channel. > > When a call is made, switch_ivr_originate() doesn't return until your > endpoint is ready to exchange audio. > > 6. What is the tech_pvt->cng_frame is used for? I notice that the > *frame is set to tech_pvt->cng_frame if the label ?cng? is reached. > > See point 4. > > > > Thank you very much for even reading my questions. I tried to look for > documents that explains clearly the above questions but so far no luck. > Until now I still don?t have a clear understanding about these 2 events yet. > > > > Best Regards > > > > Alex To > > _______________________________________________ > 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 > > > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091109/f9dd35cb/attachment.html From brian at freeswitch.org Mon Nov 9 16:03:14 2009 From: brian at freeswitch.org (Brian West) Date: Mon, 9 Nov 2009 18:03:14 -0600 Subject: [Freeswitch-dev] [Freeswitch-users] Request: Notify sip messages from Freeswitch to UserAgent In-Reply-To: References: Message-ID: <3EBF2A1F-122E-4116-B0AE-989C9268B1D5@freeswitch.org> gratuitous notifies are what they are called and I think their is a patch on jira with that functionality. I would have to dig thru jira to double check... I think Moc wrote the patch. /b On Nov 9, 2009, at 5:36 PM, srinivasula reddy wrote: > Hi, > > From Freeswitch there is continuously Request: Notify (Messages- > waiting) requests are comming, i didnt subscribe from Freeswith and > pjsip(ua). > any body know how to stop those requests from Freeswitch. > > Thanks-- > Srinivasula Reddy K > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- > users > http://www.freeswitch.org From mike at jerris.com Mon Nov 9 16:19:10 2009 From: mike at jerris.com (Michael Jerris) Date: Mon, 9 Nov 2009 19:19:10 -0500 Subject: [Freeswitch-dev] [Freeswitch-users] Request: Notify sip messages from Freeswitch to UserAgent In-Reply-To: References: Message-ID: I have asked you before to please not cross post to both mailing lists. Please refrain from this in the future. Mike On Nov 9, 2009, at 6:36 PM, srinivasula reddy wrote: > Hi, > > From Freeswitch there is continuously Request: Notify (Messages- > waiting) requests are comming, i didnt subscribe from Freeswith and > pjsip(ua). > any body know how to stop those requests from Freeswitch. > > Thanks-- > Srinivasula Reddy K > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users at lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- > users > http://www.freeswitch.org From bobc at devassert.com Mon Nov 9 19:19:16 2009 From: bobc at devassert.com (Bob Coleman) Date: Tue, 10 Nov 2009 16:19:16 +1300 Subject: [Freeswitch-dev] api getvar / setvar problem In-Reply-To: References: Message-ID: <1ce2393c0911091919h78a69637i1518738c1a3c5e8a@mail.gmail.com> Hi, I am pretty sure I am doing something wrong but here goes. I am using outbound event socket running on windows and everytime I send an api uuid_getvar or uuid_setvar the reply I get back is fragmented. I get the content type and the line that tells me the length, but then I get a blank line and nothing more coming down the socket. If I try to read another line after the blank line it blocks. eg. content-type: api/response content-length: ?? If I make another call, say just api i get the actual variable contents i expected from the first call followed by the next content header?? I can product a small demo if necessary, and that is my next step for diagnosing this, ie remove all the back ground stuff and focus on the problem, but I am hoping someone else has come across this and can point me in the right direction Cheers Bob From tonhudung at gmail.com Tue Nov 10 07:03:23 2009 From: tonhudung at gmail.com (Alex To) Date: Tue, 10 Nov 2009 23:03:23 +0800 Subject: [Freeswitch-dev] Questions about read_frame and write_frame events In-Reply-To: <191c3a030911091000x7f2a4ea6wb6bb299987d60c9d@mail.gmail.com> References: <000301ca606d$f097ea70$d1c7bf50$@com> <7DEDFFB2-ED8A-4B99-A4DE-3A0E5A640D3F@avgs.ca> <000301ca6122$a7e426d0$f7ac7470$@com> <191c3a030911091000x7f2a4ea6wb6bb299987d60c9d@mail.gmail.com> Message-ID: <002001ca6216$f8c47e70$ea4d7b50$@com> Thanks very much Anthony. It is quite clear now but I wonder if anyone could suggest me the proper way to go about this problem My device has a buffer of 64 bytes equal to 8 ms of PCMA/PCMU so in the write_frame I need to write 64 bytes of PCMA to the device every 8 ms. Attempt to more at a time will cause frames lost. However, codecs in freeswitch only support ptime of multiple of 10 (10, 20, 30, 40.) so the work around that I go for is to take ptime = 40 ms since 40 can device by 8. It means, every 40 ms the write_frame event will be called right? And the frame->data will have 320 bytes so I try to write to the device 5 times, each time 64 bytes. Still trying different ways for this problem as I haven't achieved a good timing yet. Anybody has added support for ptime of multiple of 2, 4 or 8 for G711 before ? Regards Alex To From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Tuesday, November 10, 2009 2:00 AM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] Questions about read_frame and write_frame events yes you must return a frame marked SFF_CNG rather than a NULL frame. The TFLAG flags are all arbitrary, you can get rid of all of them if you wish they are just an example of how those modules communicate internally. Sometimes they were used for the host technology to have a way to mark the channel so the call should die but you may get the same effect by just hanging up the channel since the core now does a lot of this and may never let your read func even be called. On Mon, Nov 9, 2009 at 3:54 AM, Alex To wrote: Thank you very much Mathieu So if TFLAG_IO is not set, read_frame will return immediately and *frame is NULL ? Is it a normal behavior if the call is terminated when a NULL frame is returned ? Coz when I return a NULL frame, the call is terminated. So now my understanding is that if my endpoint buffer is empty, I need to return a silence frame to the other end, right? Thank again Mathieu for your quick reply, that helps a lot J. Regards Alex To From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Mathieu Rene Sent: Monday, November 09, 2009 2:54 AM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] Questions about read_frame and write_frame events Hi, See answers inline. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene at avgs.ca On 8-Nov-09, at 4:21 AM, Alex To wrote: Hi, I am getting stuck on read_frame and write_frame in my custom endpoint. Would someone shed some lights on how it works? My questions about read_frame, write_frame after reading mod_iax, mod_portaudio and mod_skyiax are: 1. Is it correct that I need to check a flag (for e.g TFLAG_HUP) of the private object at the beginning of the event to determine whether I should continue reading audio or just return. The flag TFLAG_HUP is set when a hangup or kill channel event is detected. Thats what TFLAG_IO is for, clear the flag the read_frame functions should return immediately. If you catch TFLAG_BREAK, on the other side, you should clear it and return a comfort noise frame ( cng ) 2. Read_frame is called on an interval (how frequently is the interval ? how do I determine that?) to read audio from my endpoint. It depends on the codec you are using, if you are using 20 packetization time, it'll be called every 20ms. 3. What is TFLAG_IO normally used for ? See point 1 4. What is the label "cng" is all about ? May I know what "cng" stands for and how it is used? CNG stands for Comfort Noise Generation, whenever read_frame jumps there, it returns a frame of silence. It it first initialized on private_t since its pointless to re-allocate empty frames. 5. What if read_frame is called while my end point is not ready to send any audio yet? That's why you set TFLAG_IO whenever you are ready. Also note that it wont be called until you either pre_answer (go in early media) or answer the channel. When a call is made, switch_ivr_originate() doesn't return until your endpoint is ready to exchange audio. 6. What is the tech_pvt->cng_frame is used for? I notice that the *frame is set to tech_pvt->cng_frame if the label "cng" is reached. See point 4. Thank you very much for even reading my questions. I tried to look for documents that explains clearly the above questions but so far no luck. Until now I still don't have a clear understanding about these 2 events yet. Best Regards Alex To _______________________________________________ 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 _______________________________________________ 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091110/859e5556/attachment-0001.html From anthony.minessale at gmail.com Tue Nov 10 08:37:26 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 10 Nov 2009 10:37:26 -0600 Subject: [Freeswitch-dev] api getvar / setvar problem In-Reply-To: <1ce2393c0911091919h78a69637i1518738c1a3c5e8a@mail.gmail.com> References: <1ce2393c0911091919h78a69637i1518738c1a3c5e8a@mail.gmail.com> Message-ID: <191c3a030911100837g3701917g5a41084326badb3f@mail.gmail.com> Are you writing your own client code? What language are you using? Have you seen the ESL library in tree that can be used as a client? If you are writing your own client: are you following the protocol properly? read lines only until you reach 2 newline in a row while collecting headers when you have read 2 newline if there was a content-type you must read that exact number of bytes no more or no less. When you send commands are you terminating them with 2 newlines? Have you disabled nagle's algorithm? If you lose your framing somewhere you will certainly mess up eventually. This is why I wrote the ESL lib for everyone to use. On Mon, Nov 9, 2009 at 9:19 PM, Bob Coleman wrote: > Hi, > > I am pretty sure I am doing something wrong but here goes. > > I am using outbound event socket running on windows and everytime I > send an api uuid_getvar or uuid_setvar the reply I get back is > fragmented. > > I get the content type and the line that tells me the length, but then > I get a blank line and nothing more coming down the socket. If I try > to read another line after the blank line it blocks. > > eg. > content-type: api/response > content-length: ?? > > If I make another call, say just api i get the actual variable > contents i expected from the first call followed by the next content > header?? > > I can product a small demo if necessary, and that is my next step for > diagnosing this, ie remove all the back ground stuff and focus on the > problem, but I am hoping someone else has come across this and can > point me in the right direction > > Cheers > > Bob > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091110/8a11b153/attachment.html From bobc at devassert.com Tue Nov 10 12:34:14 2009 From: bobc at devassert.com (Bob Coleman) Date: Wed, 11 Nov 2009 09:34:14 +1300 Subject: [Freeswitch-dev] api getvar / setvar problem In-Reply-To: <191c3a030911100837g3701917g5a41084326badb3f@mail.gmail.com> References: <1ce2393c0911091919h78a69637i1518738c1a3c5e8a@mail.gmail.com> <191c3a030911100837g3701917g5a41084326badb3f@mail.gmail.com> Message-ID: <1ce2393c0911101234g7b49a89ap150be169d6574d7@mail.gmail.com> Yes, own client, c#, I have used some of the esl code to work out how to use event socket. Ah that explains it, I believe what I am doing wrong is after I have read the headers, I am expecting to just be able to read another line, but the last line is not terminated with a new line, and I must use the content length to read it. I have it working aside from dealing with the responses Thanks very much Bob On Wed, Nov 11, 2009 at 5:37 AM, Anthony Minessale wrote: > Are you writing your own client code? > What language are you using? > Have you seen the ESL library in tree that can be used as a client? > > If you are writing your own client: > ?are you following the protocol properly? > ?read lines only until you reach 2 newline in a row while collecting headers > ?when you have read 2 newline if there was a content-type you must read that > exact number of bytes no more or no less. > When you send commands are you terminating them with 2 newlines? > Have you disabled nagle's algorithm? > > If you lose your framing somewhere you will certainly mess up eventually. > > This is why I wrote the ESL lib for everyone to use. > > > On Mon, Nov 9, 2009 at 9:19 PM, Bob Coleman wrote: >> >> Hi, >> >> I am pretty sure I am doing something wrong but here goes. >> >> I am using outbound event socket running on windows and everytime I >> send an api uuid_getvar or uuid_setvar the reply I get back is >> fragmented. >> >> I get the content type and the line that tells me the length, but then >> I get a blank line and nothing more coming down the socket. If I try >> to read another line after the blank line it blocks. >> >> eg. >> content-type: api/response >> content-length: ?? >> >> If I make another call, say just api i get the actual variable >> contents i expected from the first call followed by the next content >> header?? >> >> I can product a small demo if necessary, and that is my next step for >> diagnosing this, ie remove all the back ground stuff and focus on the >> problem, but I am hoping someone else has come across this and can >> point me in the right direction >> >> Cheers >> >> Bob >> >> _______________________________________________ >> 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 > iax:guest at conference.freeswitch.org/888 > googletalk:conf+888 at conference.freeswitch.org > pstn:213-799-1400 > > _______________________________________________ > 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 Tue Nov 10 13:30:37 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 10 Nov 2009 15:30:37 -0600 Subject: [Freeswitch-dev] api getvar / setvar problem In-Reply-To: <191c3a030911101330g51b7c3fak85795f5baab1d59b@mail.gmail.com> References: <1ce2393c0911091919h78a69637i1518738c1a3c5e8a@mail.gmail.com> <191c3a030911100837g3701917g5a41084326badb3f@mail.gmail.com> <1ce2393c0911101234g7b49a89ap150be169d6574d7@mail.gmail.com> <191c3a030911101330g51b7c3fak85795f5baab1d59b@mail.gmail.com> Message-ID: <191c3a030911101330k41741aa9xcfa5a75c7007c971@mail.gmail.com> The esl has swig mods to use several langs maybe you can add a target to make it for c# too On Nov 10, 2009 2:44 PM, "Bob Coleman" wrote: Yes, own client, c#, I have used some of the esl code to work out how to use event socket. Ah that explains it, I believe what I am doing wrong is after I have read the headers, I am expecting to just be able to read another line, but the last line is not terminated with a new line, and I must use the content length to read it. I have it working aside from dealing with the responses Thanks very much Bob On Wed, Nov 11, 2009 at 5:37 AM, Anthony Minessale < anthony.minessale at gmail.com> wrote: > Are you w... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091110/869acdc6/attachment.html From Suneel.Papineni at mettoni.com Thu Nov 12 10:00:19 2009 From: Suneel.Papineni at mettoni.com (Suneel Papineni) Date: Thu, 12 Nov 2009 18:00:19 -0000 Subject: [Freeswitch-dev] Originate call problem Message-ID: <3181A30B8C35AB4AA8577B78DDF461380611F9E7@nickel.mettonigroup.com> Hi, I am trying to set up a scenario where Call coming to FS1 at 2001 should be diverted to another freeswitch FS2. FS2 gateway is configured at FS1 as a gateway with name "10001" . Now when I try to originate call from CLI, it is giving me errors. Please help me in sorting this out. freeswitch@ Opt330> originate sofia/external/2001 at 10001 9999 2009-11-12 17:47:23.626250 [NOTICE] switch_channel.c:613 New Channel sofia/external/2001 at 10001 [e2e54fd6-fa47-d64b-b700-1c62fd5e905e] 2009-11-12 17:47:23.626250 [NOTICE] sofia.c:4187 Hangup sofia/external/2001 at 10001 [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE]API CALL [originate(sofia/external/2001 at 10001 9999)] output: -ERR NORMAL_TEMPORARY_FAILURE 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1155 Session 20 (sofia/external/2001 at 10001) Ended 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1157 Close Channel sofia/external/2001 at 10001 [CS_DESTROY] Please find configurations as: Gateway: Dialplan: Log from FS is as follows..... 2009-11-12 17:47:23.626250 [NOTICE] switch_channel.c:613 New Channel sofia/external/2001 at 10001 [e2e54fd6-fa47-d64b-b700-1c62fd5e905e] 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:3061 (sofia/external/2001 at 10001) State Change CS_NEW -> CS_INIT 2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001 at 10001 [BREAK] 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001 at 10001) Running State Change CS_INIT 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:330 (sofia/external/2001 at 10001) State INIT 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:83 sofia/external/2001 at 10001 SOFIA INIT 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:111 (sofia/external/2001 at 10001) State Change CS_INIT -> CS_ROUTING 2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001 at 10001 [BREAK] 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:330 (sofia/external/2001 at 10001) State INIT going to sleep 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001 at 10001) Running State Change CS_ROUTING 2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel sofia/external/2001 at 10001 entering state [calling][0] 2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel sofia/external/2001 at 10001 entering state [terminated][503] 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:333 (sofia/external/2001 at 10001) State ROUTING 2009-11-12 17:47:23.626250 [NOTICE] sofia.c:4187 Hangup sofia/external/2001 at 10001 [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE] 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:130 sofia/external/2001 at 10001 SOFIA ROUTING 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:333 (sofia/external/2001 at 10001) State ROUTING going to sleep 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001 at 10001) Running State Change CS_HANGUP 2009-11-12 17:47:23.626250 [DEBUG] switch_ivr_originate.c:2465 Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE] 2009-11-12 17:47:23.626250 [DEBUG] switch_channel.c:1896 Send signal sofia/external/2001 at 10001 [KILL] 2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001 at 10001 [BREAK] 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:451 thread mismatch skipping state handler. 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:478 (sofia/external/2001 at 10001) State HANGUP 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:329 sofia/external/2001 at 10001 Overriding SIP cause 503 with 503 from the other leg 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:361 Channel sofia/external/2001 at 10001 hanging up, cause: NORMAL_TEMPORARY_FAILURE 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:46 sofia/external/2001 at 10001 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:478 (sofia/external/2001 at 10001) State HANGUP going to sleep 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:325 (sofia/external/2001 at 10001) State Change CS_HANGUP -> CS_REPORTING 2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001 at 10001 [BREAK] 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:306 (sofia/external/2001 at 10001) Running State Change CS_REPORTING 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:569 (sofia/external/2001 at 10001) State REPORTING 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:53 sofia/external/2001 at 10001 Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:569 (sofia/external/2001 at 10001) State REPORTING going to sleep 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:319 (sofia/external/2001 at 10001) State Change CS_REPORTING -> CS_DESTROY 2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1000 Send signal sofia/external/2001 at 10001 [BREAK] 2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1137 Session 20 (sofia/external/2001 at 10001) Locked, Waiting on external entities 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1155 Session 20 (sofia/external/2001 at 10001) Ended 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1157 Close Channel sofia/external/2001 at 10001 [CS_DESTROY] 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:415 (sofia/external/2001 at 10001) Running State Change CS_DESTROY 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:426 (sofia/external/2001 at 10001) State DESTROY 2009-11-12 17:47:23.641875 [DEBUG] mod_sofia.c:278 sofia/external/2001 at 10001 SOFIA DESTROY 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:60 sofia/external/2001 at 10001 Standard DESTROY 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:426 (sofia/external/2001 at 10001) State DESTROY going to sleep Thanks & Regards Suneel ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091112/d45e5340/attachment-0001.html From msc at freeswitch.org Thu Nov 12 10:37:32 2009 From: msc at freeswitch.org (Michael Collins) Date: Thu, 12 Nov 2009 10:37:32 -0800 Subject: [Freeswitch-dev] Originate call problem In-Reply-To: <3181A30B8C35AB4AA8577B78DDF461380611F9E7@nickel.mettonigroup.com> References: <3181A30B8C35AB4AA8577B78DDF461380611F9E7@nickel.mettonigroup.com> Message-ID: <87f2f3b90911121037j6b9ba5f9l60f2aaaa1eb8cb37@mail.gmail.com> On Thu, Nov 12, 2009 at 10:00 AM, Suneel Papineni < Suneel.Papineni at mettoni.com> wrote: > Hi, > > > > I am trying to set up a scenario where Call coming to FS1 at 2001 should be > diverted to another freeswitch FS2. FS2 gateway is configured at FS1 as a > gateway with name ?10001? . > > Now when I try to originate call from CLI, it is giving me errors. Please > help me in sorting this out. > > > > freeswitch@ Opt330> originate sofia/external/2001 at 10001 9999 > > 2009-11-12 17:47:23.626250 [NOTICE] switch_channel.c:613 New Channel > sofia/external/2001 at 10001 [e2e54fd6-fa47-d64b-b700-1c62fd5e905e] > > 2009-11-12 17:47:23.626250 [NOTICE] sofia.c:4187 Hangup > sofia/external/2001 at 10001 [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE]API CALL > [originate(sofia/external/2001 at 10001 9999)] output: > > -ERR NORMAL_TEMPORARY_FAILURE > > 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1155 Session 20 > (sofia/external/2001 at 10001) Ended > > 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1157 Close > Channel sofia/external/2001 at 10001 [CS_DESTROY] > > > If I understand you correctly, you're trying to test the connection from FS1 to FS2 by originating a call at the CLI on FS2? Please confirm your topology and how you are testing. Also, if you are at the CLI on FS1 you can do a quick test to make sure that the bridge is working: originate loopback/9999 2001 -MC > Please find configurations as: > > Gateway: > > > > > > > > > > > > > > > > > > Dialplan: > > > > > > > > > > > > > > Log from FS is as follows..... > > > > 2009-11-12 17:47:23.626250 [NOTICE] switch_channel.c:613 New Channel > sofia/external/2001 at 10001 [e2e54fd6-fa47-d64b-b700-1c62fd5e905e] > > 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:3061 > (sofia/external/2001 at 10001) State Change CS_NEW -> CS_INIT > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal > sofia/external/2001 at 10001 [BREAK] > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 > (sofia/external/2001 at 10001) Running State Change CS_INIT > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:330 > (sofia/external/2001 at 10001) State INIT > > 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:83 sofia/external/2001 at 10001SOFIA INIT > > 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:111 > (sofia/external/2001 at 10001) State Change CS_INIT -> CS_ROUTING > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal > sofia/external/2001 at 10001 [BREAK] > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:330 > (sofia/external/2001 at 10001) State INIT going to sleep > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 > (sofia/external/2001 at 10001) Running State Change CS_ROUTING > > 2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel > sofia/external/2001 at 10001 entering state [calling][0] > > 2009-11-12 17:47:23.626250 [DEBUG] sofia.c:3588 Channel > sofia/external/2001 at 10001 entering state [terminated][503] > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:333 > (sofia/external/2001 at 10001) State ROUTING > > 2009-11-12 17:47:23.626250 [NOTICE] sofia.c:4187 Hangup > sofia/external/2001 at 10001 [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE] > > 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:130 > sofia/external/2001 at 10001 SOFIA ROUTING > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:333 > (sofia/external/2001 at 10001) State ROUTING going to sleep > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:306 > (sofia/external/2001 at 10001) Running State Change CS_HANGUP > > 2009-11-12 17:47:23.626250 [DEBUG] switch_ivr_originate.c:2465 Originate > Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE] > > 2009-11-12 17:47:23.626250 [DEBUG] switch_channel.c:1896 Send signal > sofia/external/2001 at 10001 [KILL] > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_session.c:1000 Send signal > sofia/external/2001 at 10001 [BREAK] > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:451 thread > mismatch skipping state handler. > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:478 > (sofia/external/2001 at 10001) State HANGUP > > 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:329 > sofia/external/2001 at 10001 Overriding SIP cause 503 with 503 from the other > leg > > 2009-11-12 17:47:23.626250 [DEBUG] mod_sofia.c:361 Channel > sofia/external/2001 at 10001 hanging up, cause: NORMAL_TEMPORARY_FAILURE > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:46 > sofia/external/2001 at 10001 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE > > 2009-11-12 17:47:23.626250 [DEBUG] switch_core_state_machine.c:478 > (sofia/external/2001 at 10001) State HANGUP going to sleep > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:325 > (sofia/external/2001 at 10001) State Change CS_HANGUP -> CS_REPORTING > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1000 Send signal > sofia/external/2001 at 10001 [BREAK] > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:306 > (sofia/external/2001 at 10001) Running State Change CS_REPORTING > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:569 > (sofia/external/2001 at 10001) State REPORTING > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:53 > sofia/external/2001 at 10001 Standard REPORTING, cause: > NORMAL_TEMPORARY_FAILURE > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:569 > (sofia/external/2001 at 10001) State REPORTING going to sleep > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:319 > (sofia/external/2001 at 10001) State Change CS_REPORTING -> CS_DESTROY > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1000 Send signal > sofia/external/2001 at 10001 [BREAK] > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_session.c:1137 Session 20 > (sofia/external/2001 at 10001) Locked, Waiting on external entities > > 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1155 Session 20 > (sofia/external/2001 at 10001) Ended > > 2009-11-12 17:47:23.641875 [NOTICE] switch_core_session.c:1157 Close > Channel sofia/external/2001 at 10001 [CS_DESTROY] > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:415 > (sofia/external/2001 at 10001) Running State Change CS_DESTROY > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:426 > (sofia/external/2001 at 10001) State DESTROY > > 2009-11-12 17:47:23.641875 [DEBUG] mod_sofia.c:278 > sofia/external/2001 at 10001 SOFIA DESTROY > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:60 > sofia/external/2001 at 10001 Standard DESTROY > > 2009-11-12 17:47:23.641875 [DEBUG] switch_core_state_machine.c:426 > (sofia/external/2001 at 10001) State DESTROY going to sleep > > > > > > > > Thanks & Regards > > Suneel > > > > > > ************************************************************************* > Please consider the environment before printing this e-mail > ************************************************************************* > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. http://www.mettoni.com > > Mettoni Ltd > Registered in England and Wales: 4485956 > 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN > ************************************************************************* > > > _______________________________________________ > 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/20091112/40e7a872/attachment.html From paul.thirumalai at gmail.com Sat Nov 14 17:33:08 2009 From: paul.thirumalai at gmail.com (Paul Thirumalai) Date: Sat, 14 Nov 2009 17:33:08 -0800 Subject: [Freeswitch-dev] Question about channel creation messages in logfile In-Reply-To: <900c9adf0911141711h11e0e251r748034dfa92959f9@mail.gmail.com> References: <900c9adf0911141711h11e0e251r748034dfa92959f9@mail.gmail.com> Message-ID: <900c9adf0911141733q116059epfeb1e9107186d66b@mail.gmail.com> Hello All I am a freeswitch newbie. I have managed to get internal phones setup on different computers at home, using X-lite My issue is with making outbound calls. I'm trying to use voicepulse for that. My Freeswitch server IP is 11.111.123.23 My issue is as follows. I used extension 1000 (X-Lite softphone) to make an out going call my cell phone (555-123-1234) >From the freeswitch.log logfile I see that the channel for 1000 goes from CS_NEW-> CS_INIT->CS_ROUTING . At this point it starts going through the dial plans and finds the correct dialplan. According to the dialplan the outgoing call needs to go to sofia/gateway/voicepulse/5551231234 and I see the following lines in the logfile EXECUTE sofia/internal/1000 at 11.111.123.23hash(insert/11.111.123.23-last_dial/global/115be3f6-d01c-11de-8360-976b377ef920) EXECUTE sofia/internal/1000 at 11.111.123.23bridge(sofia/gateway/voicepulse/5551231234) * *This message makes sense to me and appears to be right. Freeswitch is trying to bridge a call from extension # 1000 to outbound number 5551231234 Now the very next line I see freeswitch attempting to create a channel to the outbound number. 2009-11-13 01:16:23.654519 [NOTICE] switch_channel.c:602 New Channel sofia/external/5551231234 [115c7c76-d01c-11de-8360-976b377ef920] Please correct me if I'm mistaken, but isnt freeswitch supposed to create a channel for sofia/gateway/voicepulse/5551231234 and not sjofia/external/5551231235 In any case the channel to sofia/external/5551231234 changes state from CS_NEW->CS_INIT->CS_ROUTING->CS_CONSUME_MEDIA . At this point the freeswitch gets an Remote SDP, I am assuming from voicepulse. In the end I see message which reads 2009-11-13 01:16:30.880417 [DEBUG] mod_sofia.c:306 sofia/external/5035440933 Overriding SIP cause 503 with 500 from the other leg Can someone please tell me what this error means. SIP error code 500 is what I get in X-Lite also. Also could someone please explain what Pre-Answer is. Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091114/ce01565b/attachment.html From mike at jerris.com Sat Nov 14 18:19:42 2009 From: mike at jerris.com (Michael Jerris) Date: Sat, 14 Nov 2009 21:19:42 -0500 Subject: [Freeswitch-dev] Question about channel creation messages in logfile In-Reply-To: <900c9adf0911141733q116059epfeb1e9107186d66b@mail.gmail.com> References: <900c9adf0911141711h11e0e251r748034dfa92959f9@mail.gmail.com> <900c9adf0911141733q116059epfeb1e9107186d66b@mail.gmail.com> Message-ID: This is probably the wrong list for this message, try the users list. Mike On Nov 14, 2009, at 8:33 PM, Paul Thirumalai wrote: > Hello All > I am a freeswitch newbie. I have managed to get internal phones setup on different computers at home, using X-lite > My issue is with making outbound calls. I'm trying to use voicepulse for that. My Freeswitch server IP is 11.111.123.23 > > My issue is as follows. I used extension 1000 (X-Lite softphone) to make an out going call my cell phone (555-123-1234) > From the freeswitch.log logfile I see that the channel for 1000 goes from CS_NEW-> CS_INIT->CS_ROUTING . At this point it starts going through the dial plans and finds the correct dialplan. According to the dialplan the outgoing call needs to go to sofia/gateway/voicepulse/5551231234 and I see the following lines in the logfile > EXECUTE sofia/internal/1000 at 11.111.123.23 hash(insert/11.111.123.23-last_dial/global/115be3f6-d01c-11de-8360-976b377ef920) > EXECUTE sofia/internal/1000 at 11.111.123.23 bridge(sofia/gateway/voicepulse/5551231234) > > > This message makes sense to me and appears to be right. Freeswitch is trying to bridge a call from extension # 1000 to outbound number 5551231234 > > Now the very next line I see freeswitch attempting to create a channel to the outbound number. > > 2009-11-13 01:16:23.654519 [NOTICE] switch_channel.c:602 New Channel sofia/external/5551231234 [115c7c76-d01c-11de-8360-976b377ef920] > > Please correct me if I'm mistaken, but isnt freeswitch supposed to create a channel for sofia/gateway/voicepulse/5551231234 and not sjofia/external/5551231235 > > > In any case the channel to sofia/external/5551231234 changes state from CS_NEW->CS_INIT->CS_ROUTING->CS_CONSUME_MEDIA . At this point the freeswitch gets an Remote SDP, I am assuming from voicepulse. > > In the end I see message which reads > 2009-11-13 01:16:30.880417 [DEBUG] mod_sofia.c:306 sofia/external/5035440933 Overriding SIP cause 503 with 500 from the other leg > > Can someone please tell me what this error means. SIP error code 500 is what I get in X-Lite also. > > Also could someone please explain what Pre-Answer is. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091114/d85c2b0b/attachment-0001.html From bobc at devassert.com Sun Nov 15 14:36:31 2009 From: bobc at devassert.com (Bob Coleman) Date: Mon, 16 Nov 2009 11:36:31 +1300 Subject: [Freeswitch-dev] Channel variable read_terminator_used Message-ID: <1ce2393c0911151436q5427e8caubaa8155fc9f4512@mail.gmail.com> Hi, Am using outbound socket mode, own client, using the latest code. I have noticed that there is a channel variable read_terminator_used for returning what terminator was used when using the read command It would be very useful to know what terminator has been used to terminate the playback command as well, especially where you allow someone to short circuit the prompt and start entering a pin etc. These are cases where you are not interested in capturing more than one digit, and the playback command seems to have less overhead than the read command. I realise I could just use the read command, expecting zero digits from one etc, but if a terminator can be used, generally you want to know what it was. I am wondering if this would be a good idea for a small enhancement, perhaps a terminator_used variable that could be set by any command that allows termination. Thanks Bob From anthony.minessale at gmail.com Mon Nov 16 07:32:39 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 16 Nov 2009 09:32:39 -0600 Subject: [Freeswitch-dev] Channel variable read_terminator_used In-Reply-To: <1ce2393c0911151436q5427e8caubaa8155fc9f4512@mail.gmail.com> References: <1ce2393c0911151436q5427e8caubaa8155fc9f4512@mail.gmail.com> Message-ID: <191c3a030911160732m5125a6e9o44b3a361dd0ae265@mail.gmail.com> do you mean playback_terminator_used ? That is already in place. On Sun, Nov 15, 2009 at 4:36 PM, Bob Coleman wrote: > Hi, > > Am using outbound socket mode, own client, using the latest code. > > I have noticed that there is a channel variable read_terminator_used > for returning what terminator was used when using the read command > > It would be very useful to know what terminator has been used to > terminate the playback command as well, especially where you allow > someone to short circuit the prompt and start entering a pin etc. > These are cases where you are not interested in capturing more than > one digit, and the playback command seems to have less overhead than > the read command. > > I realise I could just use the read command, expecting zero digits > from one etc, but if a terminator can be used, generally you want to > know what it was. > > I am wondering if this would be a good idea for a small enhancement, > perhaps a terminator_used variable that could be set by any command > that allows termination. > > Thanks > > Bob > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091116/dd1ba998/attachment.html From vipkilla at gmail.com Mon Nov 16 08:25:05 2009 From: vipkilla at gmail.com (vip killa) Date: Mon, 16 Nov 2009 11:25:05 -0500 Subject: [Freeswitch-dev] execute script before hangup Message-ID: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> i'm trying to execute a script 1 or 2 seconds before a user hangs up. is this possible? i'm using "api_hangup_hook=" to execute the script currently but it executes after the user hangs up. is there anyway to have api_hangup_hook execute before the actual hang up of the call? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091116/dd53118e/attachment.html From sramsey at sipinterchange.com Mon Nov 16 08:36:39 2009 From: sramsey at sipinterchange.com (Shelby Ramsey) Date: Mon, 16 Nov 2009 10:36:39 -0600 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> Message-ID: <4B017F97.2030105@sipinterchange.com> how would you know whether or not the user is going to hang up in 1 or 2 seconds? vip killa wrote: > i'm trying to execute a script 1 or 2 seconds before a user hangs up. > is this possible? i'm using "api_hangup_hook=" to execute the script > currently but it executes after the user hangs up. is there anyway to > have api_hangup_hook execute before the actual hang up of the call? > ------------------------------------------------------------------------ > > _______________________________________________ > 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 vipkilla at gmail.com Mon Nov 16 08:44:58 2009 From: vipkilla at gmail.com (vip killa) Date: Mon, 16 Nov 2009 11:44:58 -0500 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <4B017F97.2030105@sipinterchange.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> Message-ID: <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> well, when the user hangs up, freeswitch detects it and reacts accordingly so there must be a way to execute a command between the time freeswitch detects and reacts. On Mon, Nov 16, 2009 at 11:36 AM, Shelby Ramsey wrote: > how would you know whether or not the user is going to hang up in 1 or 2 > seconds? > > vip killa wrote: > > i'm trying to execute a script 1 or 2 seconds before a user hangs up. > > is this possible? i'm using "api_hangup_hook=" to execute the script > > currently but it executes after the user hangs up. is there anyway to > > have api_hangup_hook execute before the actual hang up of the call? > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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/20091116/c9118040/attachment.html From brian at freeswitch.org Mon Nov 16 08:54:42 2009 From: brian at freeswitch.org (Brian West) Date: Mon, 16 Nov 2009 10:54:42 -0600 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> Message-ID: <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> Yes but we can't time travel and do it 1 to 2 seconds before this takes place... Can you outline your reasoning as to WHY you need to do this? Are you trying to do your billing inline when the user hangs up? /b On Nov 16, 2009, at 10:44 AM, vip killa wrote: > well, when the user hangs up, freeswitch detects it and reacts > accordingly so there must be a way to execute a command between the > time freeswitch detects and reacts. From vipkilla at gmail.com Mon Nov 16 09:08:48 2009 From: vipkilla at gmail.com (vip killa) Date: Mon, 16 Nov 2009 12:08:48 -0500 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> Message-ID: <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> well, the actual time does not matter, i just need the command to execute before the user hangs up. what im trying to do is maintain a conference (i don't want it to end unless i choose to end it) but once the last person leaves the conference, it automatically ends. so i figure if i can do a pa call to the conference before that last user hangs up, then the conference will continue. On Mon, Nov 16, 2009 at 11:54 AM, Brian West wrote: > Yes but we can't time travel and do it 1 to 2 seconds before this > takes place... Can you outline your reasoning as to WHY you need to do > this? Are you trying to do your billing inline when the user hangs up? > > /b > > On Nov 16, 2009, at 10:44 AM, vip killa wrote: > > > well, when the user hangs up, freeswitch detects it and reacts > > accordingly so there must be a way to execute a command between the > > time freeswitch detects and reacts. > > > _______________________________________________ > 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/20091116/8d39bee4/attachment.html From trixter at 0xdecafbad.com Mon Nov 16 09:06:43 2009 From: trixter at 0xdecafbad.com (Trixter aka Bret McDanel) Date: Mon, 16 Nov 2009 09:06:43 -0800 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> Message-ID: <1258391203.4934.57.camel@trixeee> On Mon, 2009-11-16 at 11:44 -0500, vip killa wrote: > well, when the user hangs up, freeswitch detects it and reacts > accordingly so there must be a way to execute a command between the > time freeswitch detects and reacts. I think there is some terminology that is causing confusion. When a user hangs up the state of the channel is changed, this cannot be avoided, and probably should not be avoided. Depending on the channel type it can do somewhat evil things to have a call still "up" even though the remote end point has indicated it is no longer "up". What is it that you want to do that cannot be done using just the hangup hook? -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 From msc at freeswitch.org Mon Nov 16 11:17:04 2009 From: msc at freeswitch.org (Michael Collins) Date: Mon, 16 Nov 2009 11:17:04 -0800 Subject: [Freeswitch-dev] FreeSWITCH Weekly Conf Call - Nov 20 Message-ID: <87f2f3b90911161117k1a0ef20cs80dda5d89beaefe5@mail.gmail.com> FYI, I've added the skeleton of the agenda for this week's call: http://wiki.freeswitch.org/wiki/FS_weekly_2009_11_20 The agendas have been pretty light lately. I would like everyone to think about questions that could be brought up for discussion. Also, I'd like to take this time to say thank you to the many folks who have signed up for the wiki lately and have been adding content. We've had quite a few people join over the past few weeks and they have been doing tweaks and adding content to the wiki. We definitely appreciate your help. If you would like to help out with anything else on the wiki (or other janitorial projects) please contact me off list. We have lots of wiki and JIRA things that folks can help with. Thanks, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091116/00d190fd/attachment.html From bobc at devassert.com Mon Nov 16 11:40:00 2009 From: bobc at devassert.com (Bob Coleman) Date: Tue, 17 Nov 2009 08:40:00 +1300 Subject: [Freeswitch-dev] Channel variable read_terminator_used In-Reply-To: <191c3a030911160732m5125a6e9o44b3a361dd0ae265@mail.gmail.com> References: <1ce2393c0911151436q5427e8caubaa8155fc9f4512@mail.gmail.com> <191c3a030911160732m5125a6e9o44b3a361dd0ae265@mail.gmail.com> Message-ID: <1ce2393c0911161140m2b1d7b90h63497dc632f3a363@mail.gmail.com> Ah, missed that, perfect Thanks Bob On Tue, Nov 17, 2009 at 4:32 AM, Anthony Minessale wrote: > do you mean playback_terminator_used ? > That is already in place. > > > On Sun, Nov 15, 2009 at 4:36 PM, Bob Coleman wrote: >> >> Hi, >> >> Am using outbound socket mode, own client, using the latest code. >> >> I have noticed that there is a channel variable read_terminator_used >> for returning what terminator was used when using the read command >> >> It would be very useful to know what terminator has been used to >> terminate the playback command as well, especially where you allow >> someone to short circuit the prompt and start entering a pin etc. >> These are cases where you are not interested in capturing more than >> one digit, and the playback command seems to have less overhead than >> the read command. >> >> I realise I could just use the read command, expecting zero digits >> from one etc, but if a terminator can be used, generally you want to >> know what it was. >> >> I am wondering if this would be a good idea for a small enhancement, >> perhaps a terminator_used variable that could be set by any command >> that allows termination. >> >> Thanks >> >> Bob >> >> _______________________________________________ >> 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 > iax:guest at conference.freeswitch.org/888 > googletalk:conf+888 at conference.freeswitch.org > pstn:213-799-1400 > > _______________________________________________ > 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 trixter at 0xdecafbad.com Mon Nov 16 11:59:15 2009 From: trixter at 0xdecafbad.com (Trixter aka Bret McDanel) Date: Mon, 16 Nov 2009 11:59:15 -0800 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> Message-ID: <1258401555.4934.65.camel@trixeee> On Mon, 2009-11-16 at 12:08 -0500, vip killa wrote: > well, the actual time does not matter, i just need the command to > execute before the user hangs up. what im trying to do is maintain a > conference (i don't want it to end unless i choose to end it) but once > the last person leaves the conference, it automatically ends. so i > figure if i can do a pa call to the conference before that last user > hangs up, then the conference will continue. > well there are a couple ways to attack this, and none have anything to do with the user "hanging up". If I put my phone on hook you cant stop that, you cant prevent it, you cant delay it, my phone is on hook - only then is a signal sent to FS to tell it that my phone is on hook, or "hung up". What you are saying is that you want the conference to run after the last person has left it (which could be for reasons other than hanging up). The conference is an application and has little to do with the channel state. The instant way would be to have the conference do an outcall to some application that just holds the conference open. Then your api hangup hook call could check to see if the conference only has that user in it and if so do whatever you wanted it to do. This would require 0 modification to any code in FS, but would allow you to achieve the task you have indicated. The other way would be to have a modification to the conference that would keep it running, this would not be as trivial as it might sound given which thread the conference runs in and all that. -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 From vipkilla at gmail.com Mon Nov 16 13:18:43 2009 From: vipkilla at gmail.com (vip killa) Date: Mon, 16 Nov 2009 16:18:43 -0500 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <1258401555.4934.65.camel@trixeee> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> Message-ID: <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> i don't understand how to do a conference outcall to an application, every time a try conference confname dial sofia/...../999999%192.168.9.999 i get Call Requested: result: [USER_NOT_REGISTERED] On Mon, Nov 16, 2009 at 2:59 PM, Trixter aka Bret McDanel < trixter at 0xdecafbad.com> wrote: > On Mon, 2009-11-16 at 12:08 -0500, vip killa wrote: > > well, the actual time does not matter, i just need the command to > > execute before the user hangs up. what im trying to do is maintain a > > conference (i don't want it to end unless i choose to end it) but once > > the last person leaves the conference, it automatically ends. so i > > figure if i can do a pa call to the conference before that last user > > hangs up, then the conference will continue. > > > > well there are a couple ways to attack this, and none have anything to > do with the user "hanging up". If I put my phone on hook you cant stop > that, you cant prevent it, you cant delay it, my phone is on hook - only > then is a signal sent to FS to tell it that my phone is on hook, or > "hung up". > > What you are saying is that you want the conference to run after the > last person has left it (which could be for reasons other than hanging > up). The conference is an application and has little to do with the > channel state. > > The instant way would be to have the conference do an outcall to some > application that just holds the conference open. Then your api hangup > hook call could check to see if the conference only has that user in it > and if so do whatever you wanted it to do. This would require 0 > modification to any code in FS, but would allow you to achieve the task > you have indicated. > > The other way would be to have a modification to the conference that > would keep it running, this would not be as trivial as it might sound > given which thread the conference runs in and all that. > -- > Trixter http://www.0xdecafbad.com Bret McDanel > pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 > > > > _______________________________________________ > 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/20091116/f839e7df/attachment.html From brian at freeswitch.org Mon Nov 16 13:31:06 2009 From: brian at freeswitch.org (Brian West) Date: Mon, 16 Nov 2009 15:31:06 -0600 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> Message-ID: <5478C493-6164-4893-BDB4-BECEFD7C91BC@freeswitch.org> because the user isn't registered... and 192.168.9.999 is not a valid IP or domain. /b On Nov 16, 2009, at 3:18 PM, vip killa wrote: > i don't understand how to do a conference outcall to an application, > every time a try conference confname dial sofia/...../ > 999999%192.168.9.999 > > i get Call Requested: result: [USER_NOT_REGISTERED] From msc at freeswitch.org Mon Nov 16 13:32:20 2009 From: msc at freeswitch.org (Michael Collins) Date: Mon, 16 Nov 2009 13:32:20 -0800 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> Message-ID: <87f2f3b90911161332k1df7cb00ma4dbf8bbbec8eee6@mail.gmail.com> On Mon, Nov 16, 2009 at 1:18 PM, vip killa wrote: > i don't understand how to do a conference outcall to an application, every > time a try conference confname dial sofia/...../999999%192.168.9.999 > > i get Call Requested: result: [USER_NOT_REGISTERED] > > Is 999999%192.168.9.999 a registered user on your system? -MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091116/b15af202/attachment.html From vipkilla at gmail.com Mon Nov 16 13:41:34 2009 From: vipkilla at gmail.com (vip killa) Date: Mon, 16 Nov 2009 16:41:34 -0500 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <87f2f3b90911161332k1df7cb00ma4dbf8bbbec8eee6@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> <87f2f3b90911161332k1df7cb00ma4dbf8bbbec8eee6@mail.gmail.com> Message-ID: <957f61370911161341t19a98e8dsc1190e8e9a5f9e73@mail.gmail.com> it is a valid user that is not registered but the extension points to a park action On Mon, Nov 16, 2009 at 4:32 PM, Michael Collins wrote: > > > On Mon, Nov 16, 2009 at 1:18 PM, vip killa wrote: > >> i don't understand how to do a conference outcall to an application, every >> time a try conference confname dial sofia/...../999999%192.168.9.999 >> >> i get Call Requested: result: [USER_NOT_REGISTERED] >> >> > Is 999999%192.168.9.999 a registered user on your system? > -MC > > > _______________________________________________ > 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/20091116/608ce3fa/attachment.html From msc at freeswitch.org Mon Nov 16 13:48:51 2009 From: msc at freeswitch.org (Michael Collins) Date: Mon, 16 Nov 2009 13:48:51 -0800 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911161341t19a98e8dsc1190e8e9a5f9e73@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> <87f2f3b90911161332k1df7cb00ma4dbf8bbbec8eee6@mail.gmail.com> <957f61370911161341t19a98e8dsc1190e8e9a5f9e73@mail.gmail.com> Message-ID: <87f2f3b90911161348i3c788a12j238b2557793e26a9@mail.gmail.com> On Mon, Nov 16, 2009 at 1:41 PM, vip killa wrote: > it is a valid user that is not registered but the extension points to a > park action > If I read this correctly... http://wiki.freeswitch.org/wiki/Dialplan_XML#Dialing_A_Registered_User ... Then you shouldn't be using % with a non-registered user. How about using the standard user at domain syntax? -MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091116/a69ae684/attachment-0001.html From mrene_lists at avgs.ca Mon Nov 16 13:53:47 2009 From: mrene_lists at avgs.ca (Mathieu Rene) Date: Mon, 16 Nov 2009 13:53:47 -0800 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911161341t19a98e8dsc1190e8e9a5f9e73@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> <87f2f3b90911161332k1df7cb00ma4dbf8bbbec8eee6@mail.gmail.com> <957f61370911161341t19a98e8dsc1190e8e9a5f9e73@mail.gmail.com> Message-ID: If you want to go back in the dialplan you can use the loopback channel, since you arent making any actual call out of the system, you do not wanrt to use sofia. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene at avgs.ca On 16-Nov-09, at 1:41 PM, vip killa wrote: > it is a valid user that is not registered but the extension points > to a park action > > On Mon, Nov 16, 2009 at 4:32 PM, Michael Collins > wrote: > > > On Mon, Nov 16, 2009 at 1:18 PM, vip killa wrote: > i don't understand how to do a conference outcall to an application, > every time a try conference confname dial sofia/...../ > 999999%192.168.9.999 > > i get Call Requested: result: [USER_NOT_REGISTERED] > > > Is 999999%192.168.9.999 a registered user on your system? > -MC > > > _______________________________________________ > 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 > > > _______________________________________________ > 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/20091116/8586c6b8/attachment.html From brian at freeswitch.org Mon Nov 16 14:21:17 2009 From: brian at freeswitch.org (Brian West) Date: Mon, 16 Nov 2009 16:21:17 -0600 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> <87f2f3b90911161332k1df7cb00ma4dbf8bbbec8eee6@mail.gmail.com> <957f61370911161341t19a98e8dsc1190e8e9a5f9e73@mail.gmail.com> Message-ID: I personally wouldn't ever encourage anyone to use loopback. :) /b On Nov 16, 2009, at 3:53 PM, Mathieu Rene wrote: > If you want to go back in the dialplan you can use the loopback > channel, since you arent making any actual call out of the system, > you do not wanrt to use sofia. > > Mathieu Rene > Avant-Garde Solutions Inc > Office: + 1 (514) 664-1044 x100 > Cell: +1 (514) 664-1044 x200 > mrene at avgs.ca > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091116/784b518e/attachment.html From leon at scarlet-internet.nl Mon Nov 16 14:48:01 2009 From: leon at scarlet-internet.nl (Leon de Rooij) Date: Mon, 16 Nov 2009 23:48:01 +0100 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <51C675A4-90BE-4C09-9D3C-B6CC834AA3F0@freeswitch.org> <957f61370911160908t16c3a2a9q70e66a486d98431f@mail.gmail.com> <1258401555.4934.65.camel@trixeee> <957f61370911161318o5286205etf1701eed411afca4@mail.gmail.com> <87f2f3b90911161332k1df7cb00ma4dbf8bbbec8eee6@mail.gmail.com> <957f61370911161341t19a98e8dsc1190e8e9a5f9e73@mail.gmail.com> Message-ID: <1258411681.9730.98.camel@desk.bofh.scarlet-internet.nl> Indeed, it reminds me of a PSTN switch that had some signalling links from one port to another to 'fix' a routing issue.. It's a hack and before you know it you can't go back :) On Mon, 2009-11-16 at 16:21 -0600, Brian West wrote: > I personally wouldn't ever encourage anyone to use loopback. :) > > > /b > > On Nov 16, 2009, at 3:53 PM, Mathieu Rene wrote: > > > If you want to go back in the dialplan you can use the loopback > > channel, since you arent making any actual call out of the system, > > you do not wanrt to use sofia. > > > > Mathieu Rene > > Avant-Garde Solutions Inc > > Office: + 1 (514) 664-1044 x100 > > Cell: +1 (514) 664-1044 x200 > > mrene at avgs.ca > > > > > > > _______________________________________________ > 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 msc at freeswitch.org Mon Nov 16 16:25:09 2009 From: msc at freeswitch.org (Michael Collins) Date: Mon, 16 Nov 2009 16:25:09 -0800 Subject: [Freeswitch-dev] FreeSWITCH 1.0.5 Status Update Message-ID: <87f2f3b90911161625yb69f604i4b19f7f6a6a31800@mail.gmail.com> Hello folks! I just wanted to let everyone know that there is a status update on the main FreeSWITCH page. Here's a quick link for your convenience: http://bit.ly/3RSY9F The abridged version is this: we're working on it, there are some outstanding JIRA reports that people need to review & test, and we would appreciate more people updating to the latest trunk and making sure all is well. Thanks for helping! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091116/506f467d/attachment.html From mike at jerris.com Tue Nov 17 09:35:52 2009 From: mike at jerris.com (Michael Jerris) Date: Tue, 17 Nov 2009 12:35:52 -0500 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> Message-ID: <24B2603C-E9DA-496B-BD39-F932DD005423@jerris.com> Conferences are totally dynamic, if there is no one in it, why does it matter that it ends? On Nov 16, 2009, at 11:44 AM, vip killa wrote: > well, when the user hangs up, freeswitch detects it and reacts accordingly so there must be a way to execute a command between the time freeswitch detects and reacts. > > On Mon, Nov 16, 2009 at 11:36 AM, Shelby Ramsey wrote: > how would you know whether or not the user is going to hang up in 1 or 2 > seconds? > > vip killa wrote: > > i'm trying to execute a script 1 or 2 seconds before a user hangs up. > > is this possible? i'm using "api_hangup_hook=" to execute the script > > currently but it executes after the user hangs up. is there anyway to > > have api_hangup_hook execute before the actual hang up of the call? > > ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091117/cd2afbc0/attachment.html From vipkilla at gmail.com Tue Nov 17 11:34:03 2009 From: vipkilla at gmail.com (vip killa) Date: Tue, 17 Nov 2009 14:34:03 -0500 Subject: [Freeswitch-dev] execute script before hangup In-Reply-To: <24B2603C-E9DA-496B-BD39-F932DD005423@jerris.com> References: <957f61370911160825k270e8735p56d04c6cc8cd077c@mail.gmail.com> <4B017F97.2030105@sipinterchange.com> <957f61370911160844y55825f73yc54225dfb703831f@mail.gmail.com> <24B2603C-E9DA-496B-BD39-F932DD005423@jerris.com> Message-ID: <957f61370911171134s35f34c01o87af651210152efa@mail.gmail.com> to maintain a recording On Tue, Nov 17, 2009 at 12:35 PM, Michael Jerris wrote: > Conferences are totally dynamic, if there is no one in it, why does it > matter that it ends? > > > On Nov 16, 2009, at 11:44 AM, vip killa wrote: > > well, when the user hangs up, freeswitch detects it and reacts accordingly > so there must be a way to execute a command between the time freeswitch > detects and reacts. > > On Mon, Nov 16, 2009 at 11:36 AM, Shelby Ramsey < > sramsey at sipinterchange.com> wrote: > >> how would you know whether or not the user is going to hang up in 1 or 2 >> seconds? >> >> vip killa wrote: >> > i'm trying to execute a script 1 or 2 seconds before a user hangs up. >> > is this possible? i'm using "api_hangup_hook=" to execute the script >> > currently but it executes after the user hangs up. is there anyway to >> > have api_hangup_hook execute before the actual hang up of the call? >> > ------------------------------------------------------------------------ >> > > > _______________________________________________ > 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/20091117/82176a18/attachment.html From ludovic.fouquet at bewan.com Wed Nov 18 01:45:04 2009 From: ludovic.fouquet at bewan.com (ludovic) Date: Wed, 18 Nov 2009 10:45:04 +0100 Subject: [Freeswitch-dev] FS equivalent function of ast_*_extension ? Message-ID: <4B03C220.1070606@bewan.com> Hi all, Asterisk provides functions to scan the dialplan during dialing like : ast_matchmore_extension ast_exists_extension ast_canmatch_extension Is there a way to do it in Freeswitch ? It allows to dial directly a number matching the dialplan without waiting for the timeout between key press. Regards Ludovic From anthony.minessale at gmail.com Wed Nov 18 07:20:37 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Wed, 18 Nov 2009 09:20:37 -0600 Subject: [Freeswitch-dev] FS equivalent function of ast_*_extension ? In-Reply-To: <4B03C220.1070606@bewan.com> References: <4B03C220.1070606@bewan.com> Message-ID: <191c3a030911180720p2079f305n386bdb5ee82b4811@mail.gmail.com> no this monolithic approach was replaced in FreeSWITCH with actual dial-plan modules. The routing state only happens once before a call is handed off to execute state to perform the actions acquired from the dialplan module in the routing state. On Wed, Nov 18, 2009 at 3:45 AM, ludovic wrote: > Hi all, > > Asterisk provides functions to scan the dialplan during dialing like : > ast_matchmore_extension > ast_exists_extension > ast_canmatch_extension > > Is there a way to do it in Freeswitch ? > > It allows to dial directly a number matching the dialplan without > waiting for the timeout between key press. > > Regards > > Ludovic > > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091118/f2d2e59e/attachment.html From Suneel.Papineni at mettoni.com Wed Nov 18 09:07:20 2009 From: Suneel.Papineni at mettoni.com (Suneel Papineni) Date: Wed, 18 Nov 2009 17:07:20 -0000 Subject: [Freeswitch-dev] OPTIONS Message-ID: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com> Hi, Is there anyway that I can instruct FS, not to send response to OPTIONS message that it has received from an IP or any IP. Thanks & Regards Suneel ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091118/182451b6/attachment.html From mike at jerris.com Wed Nov 18 09:53:24 2009 From: mike at jerris.com (Michael Jerris) Date: Wed, 18 Nov 2009 12:53:24 -0500 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com> Message-ID: <76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com> Why would you not want to respond to those? On Nov 18, 2009, at 12:07 PM, Suneel Papineni wrote: > Hi, > > Is there anyway that I can instruct FS, not to send response to OPTIONS message that it has received from an IP or any IP. > > Thanks & Regards > Suneel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091118/f7fe80ce/attachment.html From Suneel.Papineni at mettoni.com Thu Nov 19 05:23:48 2009 From: Suneel.Papineni at mettoni.com (Suneel Papineni) Date: Thu, 19 Nov 2009 13:23:48 -0000 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com> <76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com> Message-ID: <3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com> Hi Mic, In my set-up there is a gateway that is sending calls to FS. GW is configured with primary as FS1 and secondary as FS2. Here gateway sends OPTIONS message to both FS1 And FS2. If FS1 is responding then it is treated as alive and calls will be sent to FS1 only. If FS1 is not responding for 2 -3 OPTION messages, gateway treats it as dead and calls are sent to FS2. when there is any modification or upgrade needed to FS1, then I want stop responding to OPTIONS (so GW can send new calls to FS2) and wait till all existing calls at FS1 are cleared. Then I can perform upgrade on FS1. So is there anyway to instruct FS (through event sockets), not to respond to OPTIONS message received from the GW. Thanks & Regards Suneel From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Michael Jerris Sent: 18 November 2009 17:53 To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] OPTIONS Why would you not want to respond to those? On Nov 18, 2009, at 12:07 PM, Suneel Papineni wrote: Hi, Is there anyway that I can instruct FS, not to send response to OPTIONS message that it has received from an IP or any IP. Thanks & Regards Suneel ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091119/7d3c0c68/attachment.html From trixter at 0xdecafbad.com Thu Nov 19 05:44:08 2009 From: trixter at 0xdecafbad.com (Trixter aka Bret McDanel) Date: Thu, 19 Nov 2009 05:44:08 -0800 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com> <76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com> <3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com> Message-ID: <1258638248.4934.75.camel@trixeee> On Thu, 2009-11-19 at 13:23 +0000, Suneel Papineni wrote: > So is there anyway to instruct FS (through event sockets), not to > respond to OPTIONS message received from the GW. I would think that adding code to do that would cause some breakage. The better solution would be to have a trigger on your gateway to tell it to fail all calls over. If you did an ACL or packet filter or anything else, important messages may be lost. The exception would be if it does OPTIONS to a different port and you block that port only, so normal sip traffic goes through but the ping is stopped. This would be to a 2nd profile but the same instance of freeswitch, so it should work the same in terms of availability. You could modify sofia so that it could block this, but I do not think that it would be committed as a result you would have to maintain this out of tree. I could be wrong, it might get committed, but given that there are other solutions, and this one has some potential to create headaches for others I do not believe that it would. > -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 From contact at ipripples.com Thu Nov 19 06:02:20 2009 From: contact at ipripples.com (FS) Date: Thu, 19 Nov 2009 14:02:20 +0000 Subject: [Freeswitch-dev] ULIMIT settings Message-ID: Hi, I am using Windows XP system for FS 1.0.5. Calls are working fine. I want to test FS with Recommended ULIMIT settings. Could you please let me know where do I configure these settings and how to configure. Please guide me if any wiki page is present. Thanks Suny From mike at jerris.com Thu Nov 19 06:18:31 2009 From: mike at jerris.com (Michael Jerris) Date: Thu, 19 Nov 2009 09:18:31 -0500 Subject: [Freeswitch-dev] ULIMIT settings In-Reply-To: References: Message-ID: <2518070B-CA6F-4D4C-B9AA-032C57D0B791@jerris.com> There are no ulimit settings that I know of for windows, this is an issue only for unix like operating systems. Mike On Nov 19, 2009, at 9:02 AM, FS wrote: > Hi, > > I am using Windows XP system for FS 1.0.5. Calls are working fine. I > want to test FS with Recommended ULIMIT settings. Could you please let > me know where do I configure these settings and how to configure. > Please guide me if any wiki page is present. > > Thanks > Suny > > _______________________________________________ > 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 dave at 3c.co.uk Thu Nov 19 06:27:26 2009 From: dave at 3c.co.uk (David Knell) Date: Thu, 19 Nov 2009 07:27:26 -0700 Subject: [Freeswitch-dev] ULIMIT settings In-Reply-To: References: Message-ID: <1258640846.12820.281.camel@localhost.localdomain> Hi Suny, You don't need to - those settings are for boxes running Linux. Windows has limits on various things, but they're higher than the defaults on Linux, so you're unlikely to need to tweak them. --Dave > Hi, > > I am using Windows XP system for FS 1.0.5. Calls are working fine. I > want to test FS with Recommended ULIMIT settings. Could you please let > me know where do I configure these settings and how to configure. > Please guide me if any wiki page is present. > > Thanks > Suny > > _______________________________________________ > 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 contact at ipripples.com Thu Nov 19 06:49:31 2009 From: contact at ipripples.com (FS) Date: Thu, 19 Nov 2009 14:49:31 +0000 Subject: [Freeswitch-dev] ULIMIT settings In-Reply-To: <1258640846.12820.281.camel@localhost.localdomain> References: <1258640846.12820.281.camel@localhost.localdomain> Message-ID: Thanks Dave & Mike for clarifying me. On 19 Nov 2009, at 14:27, David Knell wrote: > Hi Suny, > > You don't need to - those settings are for boxes running Linux. > Windows > has limits on various things, but they're higher than the defaults on > Linux, so you're unlikely to need to tweak them. > > --Dave > >> Hi, >> >> I am using Windows XP system for FS 1.0.5. Calls are working fine. I >> want to test FS with Recommended ULIMIT settings. Could you please >> let >> me know where do I configure these settings and how to configure. >> Please guide me if any wiki page is present. >> >> Thanks >> Suny >> >> _______________________________________________ >> 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 >> > > > _______________________________________________ > 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 Suneel.Papineni at mettoni.com Thu Nov 19 06:45:59 2009 From: Suneel.Papineni at mettoni.com (Suneel Papineni) Date: Thu, 19 Nov 2009 14:45:59 -0000 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <1258638248.4934.75.camel@trixeee> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com><76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com><3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com> <1258638248.4934.75.camel@trixeee> Message-ID: <3181A30B8C35AB4AA8577B78DDF46138061873E0@nickel.mettonigroup.com> Thanks Bret, but unfortunately I didn't have control on Gateway because it is a 3rd party (Except for adding primary and secondary FS IP addresses). So I need to do something at FS end only. -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Trixter aka Bret McDanel Sent: 19 November 2009 13:44 To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] OPTIONS On Thu, 2009-11-19 at 13:23 +0000, Suneel Papineni wrote: > So is there anyway to instruct FS (through event sockets), not to > respond to OPTIONS message received from the GW. I would think that adding code to do that would cause some breakage. The better solution would be to have a trigger on your gateway to tell it to fail all calls over. If you did an ACL or packet filter or anything else, important messages may be lost. The exception would be if it does OPTIONS to a different port and you block that port only, so normal sip traffic goes through but the ping is stopped. This would be to a 2nd profile but the same instance of freeswitch, so it should work the same in terms of availability. You could modify sofia so that it could block this, but I do not think that it would be committed as a result you would have to maintain this out of tree. I could be wrong, it might get committed, but given that there are other solutions, and this one has some potential to create headaches for others I do not believe that it would. > -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 _______________________________________________ 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 ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* From anthony.minessale at gmail.com Thu Nov 19 07:24:03 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Thu, 19 Nov 2009 09:24:03 -0600 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <3181A30B8C35AB4AA8577B78DDF46138061873E0@nickel.mettonigroup.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com> <76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com> <3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com> <1258638248.4934.75.camel@trixeee> <3181A30B8C35AB4AA8577B78DDF46138061873E0@nickel.mettonigroup.com> Message-ID: <191c3a030911190724n113dc718ya83b7dd2e7e0a45d@mail.gmail.com> You cant block options but you can block new invites with "fsctl pause" That would cause the calls to fail over to the2nd route at least until the current calls are over. That is the only solution there is no way to not reply to options and there is nothing we can do to make that possible as it's a violation of the SIP spec. you would have to use a sip router like openser for that. On Thu, Nov 19, 2009 at 8:45 AM, Suneel Papineni < Suneel.Papineni at mettoni.com> wrote: > Thanks Bret, but unfortunately I didn't have control on Gateway because > it is a 3rd party (Except for adding primary and secondary FS IP > addresses). So I need to do something at FS end only. > > > -----Original Message----- > From: freeswitch-dev-bounces at lists.freeswitch.org > [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of > Trixter aka Bret McDanel > Sent: 19 November 2009 13:44 > To: freeswitch-dev at lists.freeswitch.org > Subject: Re: [Freeswitch-dev] OPTIONS > > On Thu, 2009-11-19 at 13:23 +0000, Suneel Papineni wrote: > > > So is there anyway to instruct FS (through event sockets), not to > > respond to OPTIONS message received from the GW. > > > I would think that adding code to do that would cause some breakage. > The better solution would be to have a trigger on your gateway to tell > it to fail all calls over. > > If you did an ACL or packet filter or anything else, important messages > may be lost. The exception would be if it does OPTIONS to a different > port and you block that port only, so normal sip traffic goes through > but the ping is stopped. This would be to a 2nd profile but the same > instance of freeswitch, so it should work the same in terms of > availability. > > You could modify sofia so that it could block this, but I do not think > that it would be committed as a result you would have to maintain this > out of tree. I could be wrong, it might get committed, but given that > there are other solutions, and this one has some potential to create > headaches for others I do not believe that it would. > > > > > -- > Trixter http://www.0xdecafbad.com Bret McDanel > pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 > > > > _______________________________________________ > 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 > > ************************************************************************* > Please consider the environment before printing this e-mail > ************************************************************************* > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. http://www.mettoni.com > > Mettoni Ltd > Registered in England and Wales: 4485956 > 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN > ************************************************************************* > > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091119/0191d8ec/attachment.html From Suneel.Papineni at mettoni.com Thu Nov 19 07:41:09 2009 From: Suneel.Papineni at mettoni.com (Suneel Papineni) Date: Thu, 19 Nov 2009 15:41:09 -0000 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <191c3a030911190724n113dc718ya83b7dd2e7e0a45d@mail.gmail.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com><76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com><3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com><1258638248.4934.75.camel@trixeee><3181A30B8C35AB4AA8577B78DDF46138061873E0@nickel.mettonigroup.com> <191c3a030911190724n113dc718ya83b7dd2e7e0a45d@mail.gmail.com> Message-ID: <3181A30B8C35AB4AA8577B78DDF4613806187449@nickel.mettonigroup.com> Thanks Anthony, as you said it is a violation of SIP specs. I will try and see if your alternative suggestion works with my set-up. From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: 19 November 2009 15:24 To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] OPTIONS You cant block options but you can block new invites with "fsctl pause" That would cause the calls to fail over to the2nd route at least until the current calls are over. That is the only solution there is no way to not reply to options and there is nothing we can do to make that possible as it's a violation of the SIP spec. you would have to use a sip router like openser for that. On Thu, Nov 19, 2009 at 8:45 AM, Suneel Papineni wrote: Thanks Bret, but unfortunately I didn't have control on Gateway because it is a 3rd party (Except for adding primary and secondary FS IP addresses). So I need to do something at FS end only. -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Trixter aka Bret McDanel Sent: 19 November 2009 13:44 To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] OPTIONS On Thu, 2009-11-19 at 13:23 +0000, Suneel Papineni wrote: > So is there anyway to instruct FS (through event sockets), not to > respond to OPTIONS message received from the GW. I would think that adding code to do that would cause some breakage. The better solution would be to have a trigger on your gateway to tell it to fail all calls over. If you did an ACL or packet filter or anything else, important messages may be lost. The exception would be if it does OPTIONS to a different port and you block that port only, so normal sip traffic goes through but the ping is stopped. This would be to a 2nd profile but the same instance of freeswitch, so it should work the same in terms of availability. You could modify sofia so that it could block this, but I do not think that it would be committed as a result you would have to maintain this out of tree. I could be wrong, it might get committed, but given that there are other solutions, and this one has some potential to create headaches for others I do not believe that it would. > -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 _______________________________________________ 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 ************************************************************************ * Please consider the environment before printing this e-mail ************************************************************************ * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************ * _______________________________________________ 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091119/a87049cb/attachment-0001.html From m.sobkow at marketelsystems.com Thu Nov 19 08:31:21 2009 From: m.sobkow at marketelsystems.com (Mark Sobkow) Date: Thu, 19 Nov 2009 10:31:21 -0600 Subject: [Freeswitch-dev] How do I issue a "load mod_sofia" from Erlang? Message-ID: <4B0572D9.6090209@marketelsystems.com> I need to automatically load mod_sofia after our Erlang synchronization process is complete. I tried the following, but it doesn't seem to work (no debug output and when I go into fs_cli I can still do a "load mod_sofia" without getting the "already loaded" errors.) freeswitch:bgapi( State#state.node, load, [mod_sofia] ) -- Mark Sobkow Senior Developer MarkeTel Multi-Line Dialing Systems LTD. 428 Victoria Ave Regina, SK S4N-0P6 Toll-Free: 800-289-8616-X533 Local: 306-359-6893-X533 Fax: 306-359-6879 Email: m.sobkow at marketelsystems.com Web: http://www.marketelsystems.com From m.sobkow at marketelsystems.com Thu Nov 19 08:56:54 2009 From: m.sobkow at marketelsystems.com (Mark Sobkow) Date: Thu, 19 Nov 2009 10:56:54 -0600 Subject: [Freeswitch-dev] How do I issue a "load mod_sofia" from Erlang? In-Reply-To: <4B0572D9.6090209@marketelsystems.com> References: <4B0572D9.6090209@marketelsystems.com> Message-ID: <4B0578D6.1080902@marketelsystems.com> Mark Sobkow wrote: > I need to automatically load mod_sofia after our Erlang synchronization > process is complete. I tried the following, but it doesn't seem to work > (no debug output and when I go into fs_cli I can still do a "load > mod_sofia" without getting the "already loaded" errors.) > > freeswitch:bgapi( State#state.node, load, [mod_sofia] ) > > Turns out that the second argument is an array, but a char array, as in: freeswitch:bgapi( State#state.node, load, "mod_sofia" ) Works beauty, eh? -- Mark Sobkow Senior Developer MarkeTel Multi-Line Dialing Systems LTD. 428 Victoria Ave Regina, SK S4N-0P6 Toll-Free: 800-289-8616-X533 Local: 306-359-6893-X533 Fax: 306-359-6879 Email: m.sobkow at marketelsystems.com Web: http://www.marketelsystems.com From andrew at hijacked.us Thu Nov 19 10:15:34 2009 From: andrew at hijacked.us (Andrew Thompson) Date: Thu, 19 Nov 2009 13:15:34 -0500 Subject: [Freeswitch-dev] How do I issue a "load mod_sofia" from Erlang? In-Reply-To: <4B0572D9.6090209@marketelsystems.com> References: <4B0572D9.6090209@marketelsystems.com> Message-ID: <20091119181534.GJ4286@hijacked.us> On Thu, Nov 19, 2009 at 10:31:21AM -0600, Mark Sobkow wrote: > I need to automatically load mod_sofia after our Erlang synchronization > process is complete. I tried the following, but it doesn't seem to work > (no debug output and when I go into fs_cli I can still do a "load > mod_sofia" without getting the "already loaded" errors.) > > freeswitch:bgapi( State#state.node, load, [mod_sofia] ) > Try something like this: (cpx at DEV-CS1)24> freeswitch:api('freeswitch at DEV-CS1', unload, "mod_sofia"). {ok,"+OK\n"} (cpx at DEV-CS1)25> flush(). ok (cpx at DEV-CS1)26> freeswitch:api('freeswitch at DEV-CS1', load, "mod_sofia"). timeout (cpx at DEV-CS1)27> flush(). Shell got {ok,"+OK\n"} ok (cpx at DEV-CS1)28> I'm sorry that the module is a little schizophrenic about commmands as atoms and arguments as strings. Andrew From Suneel.Papineni at mettoni.com Fri Nov 20 03:15:08 2009 From: Suneel.Papineni at mettoni.com (Suneel Papineni) Date: Fri, 20 Nov 2009 11:15:08 -0000 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <191c3a030911190724n113dc718ya83b7dd2e7e0a45d@mail.gmail.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com><76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com><3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com><1258638248.4934.75.camel@trixeee><3181A30B8C35AB4AA8577B78DDF46138061873E0@nickel.mettonigroup.com> <191c3a030911190724n113dc718ya83b7dd2e7e0a45d@mail.gmail.com> Message-ID: <3181A30B8C35AB4AA8577B78DDF461380618766B@nickel.mettonigroup.com> Hi Anthony, In case if an application is written to send continuous messages to FS, how to stop responding to that IP or stop messages reaching to FS from that IP. (like a DoS attack). Is there any provision at FS or do we need to take care at network router level with firewall configured properly. Thanks Suneel From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: 19 November 2009 15:24 To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] OPTIONS You cant block options but you can block new invites with "fsctl pause" That would cause the calls to fail over to the2nd route at least until the current calls are over. That is the only solution there is no way to not reply to options and there is nothing we can do to make that possible as it's a violation of the SIP spec. you would have to use a sip router like openser for that. On Thu, Nov 19, 2009 at 8:45 AM, Suneel Papineni wrote: Thanks Bret, but unfortunately I didn't have control on Gateway because it is a 3rd party (Except for adding primary and secondary FS IP addresses). So I need to do something at FS end only. -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Trixter aka Bret McDanel Sent: 19 November 2009 13:44 To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] OPTIONS On Thu, 2009-11-19 at 13:23 +0000, Suneel Papineni wrote: > So is there anyway to instruct FS (through event sockets), not to > respond to OPTIONS message received from the GW. I would think that adding code to do that would cause some breakage. The better solution would be to have a trigger on your gateway to tell it to fail all calls over. If you did an ACL or packet filter or anything else, important messages may be lost. The exception would be if it does OPTIONS to a different port and you block that port only, so normal sip traffic goes through but the ping is stopped. This would be to a 2nd profile but the same instance of freeswitch, so it should work the same in terms of availability. You could modify sofia so that it could block this, but I do not think that it would be committed as a result you would have to maintain this out of tree. I could be wrong, it might get committed, but given that there are other solutions, and this one has some potential to create headaches for others I do not believe that it would. > -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 _______________________________________________ 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 ************************************************************************ * Please consider the environment before printing this e-mail ************************************************************************ * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************ * _______________________________________________ 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091120/12471920/attachment.html From brian at freeswitch.org Fri Nov 20 06:52:08 2009 From: brian at freeswitch.org (Brian West) Date: Fri, 20 Nov 2009 08:52:08 -0600 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <3181A30B8C35AB4AA8577B78DDF461380618766B@nickel.mettonigroup.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com><76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com><3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com><1258638248.4934.75.camel@trixeee><3181A30B8C35AB4AA8577B78DDF46138061873E0@nickel.mettonigroup.com> <191c3a030911190724n113dc718ya83b7dd2e7e0a45d@mail.gmail.com> <3181A30B8C35AB4AA8577B78DDF461380618766B@nickel.mettonigroup.com> Message-ID: <170DA365-364F-4E03-A688-503511939131@freeswitch.org> man iptables /b On Nov 20, 2009, at 5:15 AM, Suneel Papineni wrote: > Hi Anthony, > > In case if an application is written to send continuous messages to > FS, how to stop responding to that IP or stop messages reaching to > FS from that IP. (like a DoS attack). Is there any provision at FS > or do we need to take care at network router level with firewall > configured properly. > > Thanks > Suneel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091120/69f4f63d/attachment-0001.html From trixter at 0xdecafbad.com Fri Nov 20 03:54:15 2009 From: trixter at 0xdecafbad.com (Trixter aka Bret McDanel) Date: Fri, 20 Nov 2009 03:54:15 -0800 Subject: [Freeswitch-dev] OPTIONS In-Reply-To: <3181A30B8C35AB4AA8577B78DDF461380618766B@nickel.mettonigroup.com> References: <3181A30B8C35AB4AA8577B78DDF46138061870BE@nickel.mettonigroup.com> <76FDEDA5-A367-4CD9-AD07-98A56C32C1BE@jerris.com> <3181A30B8C35AB4AA8577B78DDF4613806187383@nickel.mettonigroup.com> <1258638248.4934.75.camel@trixeee> <3181A30B8C35AB4AA8577B78DDF46138061873E0@nickel.mettonigroup.com> <191c3a030911190724n113dc718ya83b7dd2e7e0a45d@mail.gmail.com> <3181A30B8C35AB4AA8577B78DDF461380618766B@nickel.mettonigroup.com> Message-ID: <1258718055.4934.99.camel@trixeee> On Fri, 2009-11-20 at 11:15 +0000, Suneel Papineni wrote: > Hi Anthony, > > > > In case if an application is written to send continuous messages to > FS, how to stop responding to that IP or stop messages reaching to FS > from that IP. (like a DoS attack). Is there any provision at FS or do > we need to take care at network router level with firewall configured > properly. freeswitch is a switch and not a firewall. Because it runs in userspace, any packet that it gets goes through the kernel to the application. It would be better if you did it in the kernel (lower system load) but also network based problems like DoS attacks should be done on the network level and not the application level. If FS and similar programs had to do the DoS mitigation themselves for a flood of packets, in order to protect a network you would have to have several sets of code and it would be a nightmare. It would be better to look into it from a network perspective for that reason alone (presumably FS wont be the only thing on your network, you may have a database, and other items). With that in mind, you may want to look at fail2ban which is a linux iptable script which at least works with asterisk (so it should be able to be modified to properly work with FS) and it will automagically ban IPs for too many failed attempts to authenticate or other reasons. In addition you can set a threshold in most firewalls (even iptables) of how many packets per second per IP you allow. At one time I wrote a bunch of things on this subject, although I do not think I have them anymore, but when doing SIP you have to look at the exchange of packets per call, you may end up with several packets exchanged in a short period of time just to set up a call, but a generally safe rule of thumb is 10 packets per second per channel per ip for SIP (not RTP). RTP can easily be calculated based on the ptime you are using. This lets you do some DoS mitigation. > -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721 From itamar at ispbrasil.com.br Fri Nov 20 09:20:47 2009 From: itamar at ispbrasil.com.br (Itamar Reis Peixoto) Date: Fri, 20 Nov 2009 15:20:47 -0200 Subject: [Freeswitch-dev] [Freeswitch-users] freeswitch.spec patch In-Reply-To: <4B06CD46.6050408@3gnt.net> References: <4B06CD46.6050408@3gnt.net> Message-ID: do you like to help packaging it for fedora, centos and rhel ? On Fri, Nov 20, 2009 at 3:09 PM, Igor Neves wrote: > Hi, > > Attached it's a patch that corrects the problem when doing upgrade to other > older version of freeswitch rpm the freeswitch user was being deleted. > > This patch was made against freeswitch.spec from freeswitch 1.0.4. > It should be applied with "patch -p0 < freeswitch.spec". > > Cheers, > > -- > Igor Neves > 3GNTW - Tecnologias de Informa??o, Lda > > ?SIP: igor at 3gnt.net ? ? JID: igor at 3gnt.net > ?ICQ: 249075444 ? ? ? ? MSN: igor at 3gnt.net > ?TLM: 00351914503611 ? ?PSTN: 00351252377120 > ------------ Itamar Reis Peixoto e-mail/msn/google talk/sip: itamar at ispbrasil.com.br skype: itamarjp icq: 81053601 +55 11 4063 5033 +55 34 3221 8599 From brian at freeswitch.org Fri Nov 20 09:34:07 2009 From: brian at freeswitch.org (Brian West) Date: Fri, 20 Nov 2009 11:34:07 -0600 Subject: [Freeswitch-dev] [Freeswitch-users] freeswitch.spec patch In-Reply-To: <4B06D1E2.3060008@3gnt.net> References: <4B06CD46.6050408@3gnt.net> <4B06D1E2.3060008@3gnt.net> Message-ID: Well contribute your patches against SVN Trunk to http://jira.freeswitch.org /b On Nov 20, 2009, at 11:29 AM, Igor Neves wrote: > Hi, > > I have it working on CentOS, I can help packaging it, what does it > involves more precisely? > > > On 11/20/2009 05:20 PM, Itamar Reis Peixoto wrote: >> do you like to help packaging it for fedora, centos and rhel ? >> >> From Suneel.Papineni at mettoni.com Wed Nov 25 04:17:00 2009 From: Suneel.Papineni at mettoni.com (Suneel Papineni) Date: Wed, 25 Nov 2009 12:17:00 -0000 Subject: [Freeswitch-dev] Freeswitch build with mod_flite Message-ID: <3181A30B8C35AB4AA8577B78DDF46138061E85A1@nickel.mettonigroup.com> Hi, I am trying to build FS 1.0.5 pre4 with mod_flite enabled, the build is successful with some warnings. Also I am able to see "flite-1.3.99" folder in libs directory. When freeswitch.exe from Debug folder was started, it was not able to load mod_flite.dll. I am running FS on Windows XP. It has shown as below: --- --- 2009-11-25 11:39:02.727445 [NOTICE] switch_loadable_module.c:270 Adding API Function 'lua' 2009-11-25 11:39:02.727445 [CRIT] switch_loadable_module.c:871 Error Loading module D:\FS\freeswitch-1.0.5\freeswitch-1.0.5pre4\Debug\mod\mod_flite.dll **dll open error [126l] ** 2009-11-25 11:39:02.743063 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_say_en] --- --- When I check for Debug/mod/mod_flite.dll, it is not present in that folder. While building mod_flite is enabled in modules.congi.in as below: #asr_tts/mod_unimrcp asr_tts/mod_flite #asr_tts/mod_pocketsphinx #asr_tts/mod_cepstral Also modules.cong.xml was edited as follows: Could someone please tell me if I missed something during build process. Thanks & Regards Suneel ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091125/3b762a56/attachment.html From jeff at jefflenk.com Wed Nov 25 07:08:29 2009 From: jeff at jefflenk.com (Jeff Lenk ) Date: Wed, 25 Nov 2009 15:08:29 +0000 Subject: [Freeswitch-dev] Freeswitch build with mod_flite Message-ID: Please rebuild all on mod_flite and try again -----Original Message----- From: Suneel Papineni Sent: 11/25/2009 12:17:00 PM To: freeswitch-dev at lists.freeswitch.org Subject: [Freeswitch-dev] Freeswitch build with mod_flite Hi, I am trying to build FS 1.0.5 pre4 with mod_flite enabled, the build is successful with some warnings. Also I am able to see "flite-1.3.99" folder in libs directory. When freeswitch.exe from Debug folder was started, it was not able to load mod_flite.dll. I am running FS on Windows XP. It has shown as below: --- --- 2009-11-25 11:39:02.727445 [NOTICE] switch_loadable_module.c:270 Adding API Function 'lua' 2009-11-25 11:39:02.727445 [CRIT] switch_loadable_module.c:871 Error Loading module D:\FS\freeswitch-1.0.5\freeswitch-1.0.5pre4\Debug\mod\mod_flite.dll **dll open error [126l] ** 2009-11-25 11:39:02.743063 [CONSOLE] switch_loadable_module.c:889 Successfully Loaded [mod_say_en] --- --- When I check for Debug/mod/mod_flite.dll, it is not present in that folder. While building mod_flite is enabled in modules.congi.in as below: #asr_tts/mod_unimrcp asr_tts/mod_flite #asr_tts/mod_pocketsphinx #asr_tts/mod_cepstral Also modules.cong.xml was edited as follows: Could someone please tell me if I missed something during build process. Thanks & Regards Suneel ************************************************************************* Please consider the environment before printing this e-mail ************************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. http://www.mettoni.com Mettoni Ltd Registered in England and Wales: 4485956 9400 Garsington Road, Oxford Business Park, Oxford, OX4 2HN ************************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091125/4385d7b0/attachment-0001.html From pvolchek at voicemobility.com Fri Nov 27 09:52:26 2009 From: pvolchek at voicemobility.com (Peter Volchek) Date: Fri, 27 Nov 2009 09:52:26 -0800 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> Message-ID: <4B1011DA.8030201@voicemobility.com> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091127/30526f06/attachment.html From anthony.minessale at gmail.com Fri Nov 27 10:47:58 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Fri, 27 Nov 2009 12:47:58 -0600 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <4B1011DA.8030201@voicemobility.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> <4B1011DA.8030201@voicemobility.com> Message-ID: <191c3a030911271047q61b22f67v38bf7e29e092282d@mail.gmail.com> are you mixing getDigits with playAndGetDigits? On Fri, Nov 27, 2009 at 11:52 AM, Peter Volchek wrote: > Hi, > Now I am using lua's session:getDigits function, and it seems that > "read_result" and "read_terminator_used" are not set at all. > Besides, lua's implementation of this function accept only three > parameters( lenght, terminator and timeout), > however, some other modules allow more parameters ( > http://wiki.freeswitch.org/wiki/Session_getDigits) > Why is that? > > > Cheers, > Peter > > > > Anthony Minessale wrote: > > We have such a variable called "read_result" > possible vals: success, timeout, failure > > "read_terminator_used" contains the terminator > > > On Tue, Nov 3, 2009 at 2:20 PM, Peter Volchek wrote: > >> Hi, >> I am having some troubles adopting [session:playAndGetDigits] function >> to my application needs. >> >> There are three possible outcomes that the function should report on: >> 1. Success. The required number of of digits was collected and they >> match the mask. >> 2. Fail 1.The entered digits do not match the mask >> 3. Fail2. Timeout failure >> >> Right now, I cannot distinguish between 2 & 3. In both cases, an empty >> string is returned, so I have no idea what was the real failure. >> >> 4. Success upon termination >> That is a tricky one, and I believe, there is a bug in this function. >> This function accept the terminators, which should stop digits collection. >> Consider the following function call: >> >> digits = session:playAndGetDigits( >> 0, 5, 1, 3000, "#", >> "enter_mailbox_number_or_hit_pound_to_login.wav", >> "error.wav", >> "\\d*" >> ); >> >> >> Here, I want to collect up to 5 digits, that represent a mailbox number. >> Note that I set the minimum value to be 0, as I want "#" itself to be >> the sign, that I want to login to my system. >> However, when I execute this code and hit "#" immediately, the system >> play me an error message. Oops! Well, I changed my digits mask to be >> "#", and it did not help either. >> BTW, about the last case. If I my digits mask contains the symbol used >> in the terminators, then it has to be collected and returned. The >> current implementation just uses terminates the collection and does not >> include the terminator to the returned string. >> >> Possible solutions to determine the function's outcome: >> 1. Return multiple values (state, digits). That may break tons of the >> existing code >> 2. Set a channel (or session) variable. Similar to C's errno and define >> some variables defining the outcome. Below is a summary table that >> covers all the cases: >> >> ------------------------------------------------------ >> ERRNO | Description >> ------------------------------------------------------ >> RET_OK | Maximum number of digits was collected or >> | terminated when in range [min_digits..max_digits-1] >> | or timeout triggered after collecting enough digits >> [min_digits..max_digits-1]. >> | The collected digits match digits_regex >> | Returns the collected digits >> >> RET_TERM | Terminating before collecting enough digits or when >> | the collected digits do not match digits_regex >> | Return whatever was collected (for logging) >> >> >> RET_TIMEOUT | Did not collect enough digits for the time specified or when >> | the collected digits do not match digits_regex >> | Return whatever was collected (for logging) >> >> >> Does it all make sense? >> Cheers, >> PV >> >> >> >> _______________________________________________ >> 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 > iax:guest at conference.freeswitch.org/888 > googletalk:conf+888 at conference.freeswitch.org > pstn:213-799-1400 > > ------------------------------ > > _______________________________________________ > FreeSWITCH-dev mailing listFreeSWITCH-dev at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-devhttp://www.freeswitch.org > > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091127/034600aa/attachment.html From pvolchek at voicemobility.com Fri Nov 27 12:12:24 2009 From: pvolchek at voicemobility.com (Peter Volchek) Date: Fri, 27 Nov 2009 12:12:24 -0800 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <191c3a030911271047q61b22f67v38bf7e29e092282d@mail.gmail.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> <4B1011DA.8030201@voicemobility.com> <191c3a030911271047q61b22f67v38bf7e29e092282d@mail.gmail.com> Message-ID: <4B1032A8.4070407@voicemobility.com> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091127/446b1474/attachment-0001.html From anthony.minessale at gmail.com Fri Nov 27 13:06:43 2009 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Fri, 27 Nov 2009 15:06:43 -0600 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <4B1032A8.4070407@voicemobility.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> <4B1011DA.8030201@voicemobility.com> <191c3a030911271047q61b22f67v38bf7e29e092282d@mail.gmail.com> <4B1032A8.4070407@voicemobility.com> Message-ID: <191c3a030911271306p390489c0tdbdf69fce58d3262@mail.gmail.com> session:getDigits is a whole different function that uses the callback functions for you to control what happens yourself you set an input callback call session:getDigits and catch the input yourself. On Fri, Nov 27, 2009 at 2:12 PM, Peter Volchek wrote: > No, > I am playing a prompt, which I do not want to interrupt. Once prompt done > playing I flush the digits and start collecting. > > Here is the simple scenario: > > play ("Enter your credit card# or hit * to return to the previous menu") > -- not interruptable > session:flushDigits() > digits=session:getDigits(16, "[#*]", 3000) > > At this point I need to take the decision to continue processing. > > Choices > 1. All digits are entered -> go process > 2. Some digits were entered and terminated by # -> go process > 3. Some digits were entered but timeout occurred -> go process > 4. Some or none digits were entered terminated by * -> go previous menu > 5. No digits were entered and timeout occurred -> play prompt (are you > still there and start over, 3 times) > 6. No digits were entered and # was pressed -> play error prompt and start > over (3 times) > > Unfortunately, I cannot implement all these scenarios as the result > variables are not set (as it is done at playAndGetDigits). > I also noticed that session:read might not set these variables too > > > Anthony Minessale wrote: > > are you mixing getDigits with playAndGetDigits? > > > On Fri, Nov 27, 2009 at 11:52 AM, Peter Volchek < > pvolchek at voicemobility.com> wrote: > >> Hi, >> Now I am using lua's session:getDigits function, and it seems that >> "read_result" and "read_terminator_used" are not set at all. >> Besides, lua's implementation of this function accept only three >> parameters( lenght, terminator and timeout), >> however, some other modules allow more parameters ( >> http://wiki.freeswitch.org/wiki/Session_getDigits) >> Why is that? >> >> >> Cheers, >> Peter >> >> >> >> Anthony Minessale wrote: >> >> We have such a variable called "read_result" >> possible vals: success, timeout, failure >> >> "read_terminator_used" contains the terminator >> >> >> On Tue, Nov 3, 2009 at 2:20 PM, Peter Volchek > > wrote: >> >>> Hi, >>> I am having some troubles adopting [session:playAndGetDigits] function >>> to my application needs. >>> >>> There are three possible outcomes that the function should report on: >>> 1. Success. The required number of of digits was collected and they >>> match the mask. >>> 2. Fail 1.The entered digits do not match the mask >>> 3. Fail2. Timeout failure >>> >>> Right now, I cannot distinguish between 2 & 3. In both cases, an empty >>> string is returned, so I have no idea what was the real failure. >>> >>> 4. Success upon termination >>> That is a tricky one, and I believe, there is a bug in this function. >>> This function accept the terminators, which should stop digits >>> collection. >>> Consider the following function call: >>> >>> digits = session:playAndGetDigits( >>> 0, 5, 1, 3000, "#", >>> "enter_mailbox_number_or_hit_pound_to_login.wav", >>> "error.wav", >>> "\\d*" >>> ); >>> >>> >>> Here, I want to collect up to 5 digits, that represent a mailbox number. >>> Note that I set the minimum value to be 0, as I want "#" itself to be >>> the sign, that I want to login to my system. >>> However, when I execute this code and hit "#" immediately, the system >>> play me an error message. Oops! Well, I changed my digits mask to be >>> "#", and it did not help either. >>> BTW, about the last case. If I my digits mask contains the symbol used >>> in the terminators, then it has to be collected and returned. The >>> current implementation just uses terminates the collection and does not >>> include the terminator to the returned string. >>> >>> Possible solutions to determine the function's outcome: >>> 1. Return multiple values (state, digits). That may break tons of the >>> existing code >>> 2. Set a channel (or session) variable. Similar to C's errno and define >>> some variables defining the outcome. Below is a summary table that >>> covers all the cases: >>> >>> ------------------------------------------------------ >>> ERRNO | Description >>> ------------------------------------------------------ >>> RET_OK | Maximum number of digits was collected or >>> | terminated when in range [min_digits..max_digits-1] >>> | or timeout triggered after collecting enough digits >>> [min_digits..max_digits-1]. >>> | The collected digits match digits_regex >>> | Returns the collected digits >>> >>> RET_TERM | Terminating before collecting enough digits or when >>> | the collected digits do not match digits_regex >>> | Return whatever was collected (for logging) >>> >>> >>> RET_TIMEOUT | Did not collect enough digits for the time specified or >>> when >>> | the collected digits do not match digits_regex >>> | Return whatever was collected (for logging) >>> >>> >>> Does it all make sense? >>> Cheers, >>> PV >>> >>> >>> >>> _______________________________________________ >>> 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 >> iax:guest at conference.freeswitch.org/888 >> googletalk:conf+888 at conference.freeswitch.org >> pstn:213-799-1400 >> >> ------------------------------ >> >> _______________________________________________ >> FreeSWITCH-dev mailing listFreeSWITCH-dev at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-dev >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-devhttp://www.freeswitch.org >> >> >> _______________________________________________ >> 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 > iax:guest at conference.freeswitch.org/888 > googletalk:conf+888 at conference.freeswitch.org > pstn:213-799-1400 > > ------------------------------ > > _______________________________________________ > FreeSWITCH-dev mailing listFreeSWITCH-dev at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-devhttp://www.freeswitch.org > > > _______________________________________________ > 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 iax:guest at conference.freeswitch.org/888 googletalk:conf+888 at conference.freeswitch.org pstn:213-799-1400 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091127/0b5ea6fa/attachment.html From pvolchek at voicemobility.com Fri Nov 27 13:20:47 2009 From: pvolchek at voicemobility.com (Peter Volchek) Date: Fri, 27 Nov 2009 13:20:47 -0800 Subject: [Freeswitch-dev] taking a decision upon session:playAndGetDigits returns In-Reply-To: <191c3a030911271306p390489c0tdbdf69fce58d3262@mail.gmail.com> References: <87f2f3b90911030838h505a47b7qd5333fab525fc65b@mail.gmail.com> <4AF0909D.8070103@voicemobility.com> <191c3a030911031240m772912f1t15f1f5d2b64a5881@mail.gmail.com> <4B1011DA.8030201@voicemobility.com> <191c3a030911271047q61b22f67v38bf7e29e092282d@mail.gmail.com> <4B1032A8.4070407@voicemobility.com> <191c3a030911271306p390489c0tdbdf69fce58d3262@mail.gmail.com> Message-ID: <4B1042AF.3050104@voicemobility.com> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091127/3d754903/attachment-0001.html