From eduardonunesp at gmail.com Mon Apr 2 01:56:18 2012 From: eduardonunesp at gmail.com (Eduardo Nunes Pereira) Date: Sun, 1 Apr 2012 18:56:18 -0300 Subject: [Freeswitch-dev] About use libfreeswitch with XML embed Message-ID: I'm working with simple application using libfreeswitch, but that application cannot have his configuration exposed to the use, so i just want to embed the configurations inside the application in a header file for example. i need some tip to do that using best FS way. -- Eduardo Nunes Pereira http://about.me/eduardonunesp -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120401/a0ee17fd/attachment.html From mitch.capper at gmail.com Mon Apr 2 09:30:00 2012 From: mitch.capper at gmail.com (Mitch Capper) Date: Sun, 1 Apr 2012 22:30:00 -0700 Subject: [Freeswitch-dev] About use libfreeswitch with XML embed In-Reply-To: References: Message-ID: Look at the sample libfreeswitch .net client and its xml_search function. I am not sure if you can replace 100% of the xml required that way but its worth a shot. ~Mitch From brian at freeswitch.org Mon Apr 2 10:27:15 2012 From: brian at freeswitch.org (Brian West) Date: Mon, 2 Apr 2012 01:27:15 -0500 Subject: [Freeswitch-dev] About use libfreeswitch with XML embed In-Reply-To: References: Message-ID: <-1477195782529903080@unknownmsgid> You do realize that the XML will still be there just string the binary and you'll see it. /b Sent from my iPhone On Apr 1, 2012, at 4:57 PM, Eduardo Nunes Pereira wrote: I'm working with simple application using libfreeswitch, but that application cannot have his configuration exposed to the use, so i just want to embed the configurations inside the application in a header file for example. i need some tip to do that using best FS way. -- Eduardo Nunes Pereira http://about.me/eduardonunesp _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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/20120402/07b8d930/attachment-0001.html From anthonynovatsis at gmail.com Mon Apr 2 08:45:41 2012 From: anthonynovatsis at gmail.com (Anthony Novatsis) Date: Mon, 2 Apr 2012 14:45:41 +1000 Subject: [Freeswitch-dev] SIP Presence Activities Message-ID: Dear All, I am having some unexpected behaviour with SIP presence and would like some clarification. I have a FS server setup to manage sip presence (manage-presence=true in the SIP profile) and have two clients connected. The clients online/offline status is reported correctly however when a client publishes an activity of "away" the other client only receives status "open" without the associated activity. Here is the XML that I have observed on the wire (IP addresses replaced): PUBLISH (sent by client) open away sip:3011 at a.b.c.d away NOTIFY (sent by FS) open Available I observe the same behaviour when a client sends other activities such as dnd, busy, etc. I thought that FS would just forward the published status/activity to the subscribers. Is there a way to configure FS to behave in this way? Thank you very much in advance. Anthony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120402/ff6a6652/attachment.html From math.parent at gmail.com Mon Apr 2 16:00:25 2012 From: math.parent at gmail.com (Mathieu Parent) Date: Mon, 2 Apr 2012 14:00:25 +0200 Subject: [Freeswitch-dev] Busy trigger implementation in mod_skinny In-Reply-To: <4F799381.70208@power.com.pl> References: <4F72EBDE.1030401@power.com.pl> <4F799381.70208@power.com.pl> Message-ID: Le 2 avril 2012 13:54, Konrad Wyrozumski a ?crit : > Hi Mathieu, Hi Konrad, > I created flowchart diagram about busy tone implementation. Is this close to > your intention? In attachments. Yes. > I'm thinking if callee occupancy shouldn't be checked just after positive > match with dialplan? Probably not. As callee should be notified of the incoming call, even if he is busy. Regards -- Mathieu Parent From eduardonunesp at gmail.com Mon Apr 2 17:17:31 2012 From: eduardonunesp at gmail.com (Eduardo Nunes Pereira) Date: Mon, 2 Apr 2012 10:17:31 -0300 Subject: [Freeswitch-dev] About use libfreeswitch with XML embed In-Reply-To: <-1477195782529903080@unknownmsgid> References: <-1477195782529903080@unknownmsgid> Message-ID: Yes i did realize, but this way configurations cannot be messed by users, not to be closed, but to be more contained -- Eduardo Nunes Pereira http://about.me/eduardonunesp On Monday, 2 April, 2012 at 3:27 AM, Brian West wrote: > You do realize that the XML will still be there just string the binary and you'll see it. > > /b > > Sent from my iPhone > > On Apr 1, 2012, at 4:57 PM, Eduardo Nunes Pereira wrote: > > > I'm working with simple application using libfreeswitch, but that application cannot have his configuration exposed to the use, so i just want to embed the configurations inside the application in a header file for example. i need some tip to do that using best FS way. > > > > -- > > Eduardo Nunes Pereira > > http://about.me/eduardonunesp > > > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > > http://www.freeswitchsolutions.com > > > > > > > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-dev mailing list > > FreeSWITCH-dev at lists.freeswitch.org (mailto: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 > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org (mailto: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/20120402/ae409cce/attachment.html From brian at freeswitch.org Mon Apr 2 18:33:30 2012 From: brian at freeswitch.org (Brian West) Date: Mon, 2 Apr 2012 09:33:30 -0500 Subject: [Freeswitch-dev] SIP Presence Activities In-Reply-To: References: Message-ID: Bug reports should be done via Jira.freeswitch.org. /b On Apr 1, 2012, at 11:45 PM, Anthony Novatsis wrote: > Dear All, > > I am having some unexpected behaviour with SIP presence and would like some clarification. > > I have a FS server setup to manage sip presence (manage-presence=true in the SIP profile) and have two clients connected. The clients online/offline status is reported correctly however when a client publishes an activity of "away" the other client only receives status "open" without the associated activity. Here is the XML that I have observed on the wire (IP addresses replaced): > > PUBLISH (sent by client) > > > xmlns:es="urn:ietf:params:xml:ns:pidf:status:rpid-status" > entity="sip:3011 at a.b.c.d"> > > > open > > away > > > sip:3011 at a.b.c.d > away > > > > NOTIFY (sent by FS) > > > xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' > xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' > xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:3011 at a.b.c.d'> > > > open > > > > Available > > > > I observe the same behaviour when a client sends other activities such as dnd, busy, etc. > > I thought that FS would just forward the published status/activity to the subscribers. Is there a way to configure FS to behave in this way? > > Thank you very much in advance. > > Anthony > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 From anthony.minessale at gmail.com Mon Apr 2 20:05:03 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 2 Apr 2012 11:05:03 -0500 Subject: [Freeswitch-dev] SIP Presence Activities In-Reply-To: References: Message-ID: only after reproducing the issue on latest HEAD On Mon, Apr 2, 2012 at 9:33 AM, Brian West wrote: > Bug reports should be done via Jira.freeswitch.org. > > /b > > On Apr 1, 2012, at 11:45 PM, Anthony Novatsis wrote: > >> Dear All, >> >> I am having some unexpected behaviour with SIP presence and would like some clarification. >> >> I have a FS server setup to manage sip presence (manage-presence=true in the SIP profile) and have two clients connected. The clients online/offline status is reported correctly however when a client publishes an activity of "away" the other client only receives status "open" without the associated activity. ?Here is the XML that I have observed on the wire (IP addresses replaced): >> >> PUBLISH (sent by client) >> >> >> > ? ? ? ? ? xmlns:es="urn:ietf:params:xml:ns:pidf:status:rpid-status" >> ? ? ? ? ? entity="sip:3011 at a.b.c.d"> >> ? >> ? ? >> ? ? ? open >> ? ? ? >> ? ? ? ? away >> ? ? ? >> ? ? >> ? ? sip:3011 at a.b.c.d >> ? ? away >> ? >> >> >> NOTIFY (sent by FS) >> >> >> > ? ? ? ? ? xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' >> ? ? ? ? ? xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' >> ? ? ? ? ? xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:3011 at a.b.c.d'> >> ? >> ? ? >> ? ? ? open >> ? ? >> ? >> ? >> ? ? Available >> ? >> >> >> I observe the same behaviour when a client sends other activities such as dnd, busy, etc. >> >> I thought that FS would just forward the published status/activity to the subscribers. ?Is there a way to configure FS to behave in this way? >> >> Thank you very much in advance. >> >> Anthony >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.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 > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 From admharris at gmx.com Mon Apr 2 22:07:02 2012 From: admharris at gmx.com (adam harris) Date: Mon, 02 Apr 2012 20:07:02 +0200 Subject: [Freeswitch-dev] lua problems Message-ID: <20120402180702.27670@gmx.com> I want to receive dtmf events I have problems with the following code. con = freeswitch.EventConsumer("all") session:setVariable("playback_terminators", "0123456789") session:execute("playback", "/usr/local/freeswitch/sounds/SAMPLE.wav") while (session:ready()) do ? for e in (function() return con:pop(1) end) do event_name = e:getHeader("Event-Name") or "" if(event_name == "DTMF") then print("have DTMF") print(e:getHeader("DTMF-Digit")) end ? end end I thought con:pop should work like on esl_recv_event however in this case after the first incoming dtmf it freezes? It does not respond on further key presses. On some instances the console has printed two entries when I am sure I only press the key once. have DTMF 8 have DTMF 8 I saw a posting online about the adding optional timeout parameter to pop. Has this been offically implemented because I get an error when using it like con:pop(1, 6000) 2012-04-02 13:42:50.643708 [ERR] mod_lua.cpp:191 Error in pop expected 1..2 args, got 3 stack traceback: ? ? ? ?[C]: in function 'pop' ? ? ? ?/usr/local/freeswitch/scripts/aprompt.lua:11: in function '(for generator)' ? ? ? ?/usr/local/freeswitch/scripts/aprompt.lua:11: in main chunk I have not found esl_recv_event_timed function in lua. ?If it does not exit in lua what is correct the equivilent way? On a further note is Session.collectInput going to be available in lua? From msc at freeswitch.org Mon Apr 2 22:26:45 2012 From: msc at freeswitch.org (Michael Collins) Date: Mon, 2 Apr 2012 11:26:45 -0700 Subject: [Freeswitch-dev] ClueCon 2012 Registration Now Open! Message-ID: *ClueCon 2012 - Register Today!* The ClueCon team is pleased to announce that registration is now open for ClueCon 2012. We invite all to visit our new websiteand get registered today. 2012 marks the 8th annual ClueCon event. This year we return to the beautiful Wyndham Hotel in downtown Chicago. ClueCon 2012 will be held August 7-9. ClueCon is best known as the open source telephony conference that is by developers, for developers. As in years past we will have highly technical presentations on a variety of subjects. You'll be able to rub elbows with the authors of powerful open source telephony projects like Kamailio, OpenSIPS, and, of course, FreeSWITCH. VoIP security will again be an important subject and we are pleased to have Phil Zimmermann returning to discuss how VoIP security affects us all and how ZRTP can help. Stay tuned for announcements about specific talks, speakers, new sponsors, and the ClueCon 2012 schedule of events. *Wyndham Discount * Those staying at the Wyndham will enjoy a $300 discount off the regular admission price of $999. Select the appropriate PayPal button from the registration page. For more information about the Wyndham, visit the ClueCon hotelpage. Make your plans and register right away. We look forward to seeing everyone this August! The ClueCon Team http://www.ClueCon.com 877.742.CLUE CC120402-1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120402/9cbbf47f/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 147492 bytes Desc: not available Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120402/9cbbf47f/attachment-0001.jpe From msc at freeswitch.org Mon Apr 2 23:41:16 2012 From: msc at freeswitch.org (Michael Collins) Date: Mon, 2 Apr 2012 12:41:16 -0700 Subject: [Freeswitch-dev] ZRTP Code Now In Tree Message-ID: Hello all! This isn't an announcement so much as an FYI. Phil Zimmermann has been working diligently with our very own power user Travis Cross (IRC: tc) on getting ZRTP into a truly useful state. The first big step on that journey has been taken: libzrtp code has been added to the git repository. Travis Cross reports that getting to this point was a serious amount of work, and for that we thank him and Phil both. We are all going to benefit from ZRTP when it is ready for use. The code is available for your perusal, however it is not quite ready for use at this time. We invite everyone to join us on the FreeSWITCH conference call this Wednesday (agenda here). Travis will be discussing what has been done thus far and what remains to be done. This will dovetail nicely with AEP who will be discussing the Freedom Fone project on Wednesday also. -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120402/5333fa20/attachment.html From gabe at gundy.org Tue Apr 3 09:16:04 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Mon, 2 Apr 2012 23:16:04 -0600 Subject: [Freeswitch-dev] ClueCon 2012 Registration Now Open! In-Reply-To: References: Message-ID: On Mon, Apr 2, 2012 at 12:26 PM, Michael Collins wrote: > ClueCon is best known as the open source telephony conference that is by > developers, for developers. As in years past we will have highly technical > presentations on a variety of subjects. I just wanted to chime in and say that I had a great time at ClueCon last year. Chicago is such a great city to visit :) I plan on doing more mingling this year... getting to know the people behind the names. I'll see you all there! Best, Gabe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120402/1b1d4750/attachment.html From anthonynovatsis at gmail.com Tue Apr 3 03:47:57 2012 From: anthonynovatsis at gmail.com (Anthony Novatsis) Date: Tue, 3 Apr 2012 09:47:57 +1000 Subject: [Freeswitch-dev] SIP Presence Activities Message-ID: OK thank you. I started the discussion here to confirm that the issue I observed was actually a bug. But I've now reported it in Jira: http://jira.freeswitch.org/browse/FS-4066 Let me know if I can provide any more information or testing. Anthony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120403/e688ad57/attachment.html From admharris at gmx.com Wed Apr 4 05:25:45 2012 From: admharris at gmx.com (adam harris) Date: Wed, 04 Apr 2012 03:25:45 +0200 Subject: [Freeswitch-dev] error in con:pop wrong number of args Message-ID: <20120404012546.27670@gmx.com> I am getting this error from the test code below. I have used 2 arguments but it is picking up 3? 2012-04-03 21:16:08.583714 [ERR] mod_lua.cpp:191 Error in pop expected 1..2 args, got 3 stack traceback: ? ? ? ?[C]: in function 'pop' ? ? ? ?/usr/local/freeswitch/scripts/aprompt.lua:21: in function '(for generator)' ? ? ? ?/usr/local/freeswitch/scripts/aprompt.lua:21: in main chunk --------------------------------------------------- dtmfbuffer = "" con = freeswitch.EventConsumer("DTMF") session:setVariable("playback_terminators", "0123456789") session:execute("playback", "sound/test.wav") while ((session:ready() == true)) do for e in (function() return con:pop(1,5) end) do event_name = e:getHeader("Event-Name") or "" if (event_name == "DTMF") then print(dtmfbuffer) end end end session:hangup() From krice at freeswitch.org Wed Apr 4 09:27:29 2012 From: krice at freeswitch.org (Ken Rice) Date: Wed, 04 Apr 2012 00:27:29 -0500 Subject: [Freeswitch-dev] Fisheye and Jira Upgraded! Message-ID: Just a quick announcement. As you may have noticed end of the Day US Time on Tuesday April 3rd, Fisheye and Jira were offline for a while. However, I am pleased to report that both have now been upgraded, and a Hardware replacement has happened on both hosts. Please report any issues to me or BKW via the mailing list or join us on the IRC Channel at #FreeSWITCH on irc.freenode.net Thanks for your Support! K -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120404/38d4ec15/attachment.html From lesley.pervis at gmail.com Wed Apr 4 22:25:25 2012 From: lesley.pervis at gmail.com (Lesley Pervis) Date: Wed, 4 Apr 2012 12:25:25 -0600 Subject: [Freeswitch-dev] mod_esf ignores client BYE Message-ID: I've discovered a bug with multicast paging that affects phones (like Cisco/Linksys/Sipura) that listen for multicast session control packets to hang up. Sniffing on the FreeSWITCH shows that FreeSWITCH does not respond to caller BYE on hangup, but waits five minutes before timing out waiting for media. It then sends its own BYE and sends multicast session control packets. For those five minutes, mod_efs is stuck continuing in a for(;;) loop and phones that count on hearing the multicast session control packets stay in session. The problem is with FreeSWITCH not replying to client BYE. I don't think the problem is necessarily in mod_esf, but currently this is beyond my ability to troubleshoot further. If anyone has an intuition on how to proceed, please let me know. I've raised a bug report in JIRA and it's been auto-assigned, but I haven't seen an indication it's been acknowledged. The bug is here: http://jira.freeswitch.org/browse/FS-4067 I've attached pcap and logs to the bug report. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120404/1db8d30d/attachment.html From msc at freeswitch.org Thu Apr 5 02:57:41 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 4 Apr 2012 15:57:41 -0700 Subject: [Freeswitch-dev] Terminal Emulators Message-ID: Hey folks, Today on the conference call we had a brief but passionate discussion about terminal emulators. I'm finding that more and more I'm using all of the "big 3" operating systems and that they each have their own quirks and peculiarities. I decided to start a wiki page on the topic: http://wiki.freeswitch.org/wiki/Terminal_emulators I have been spending more time than I really want to on a Windows laptop so I have been getting familiar with putty. I added some putty info to the wiki plus a few other tidbits. I would like to invite everyone to hop on and add whatever knowledge or tips & tricks that they've learned over the years. If you know of a good terminal program that you use then feel free to add it to the list. Thanks! -MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120404/3a3eda28/attachment.html From masterkorp at masterkorp.net Thu Apr 5 10:32:43 2012 From: masterkorp at masterkorp.net (Alfredo Palhares) Date: Thu, 05 Apr 2012 08:32:43 +0200 Subject: [Freeswitch-dev] Terminal Emulators In-Reply-To: References: Message-ID: <1333607392-sup-878@masterkorp.net> Excerpts from Michael Collins's message of Thu Apr 05 00:57:41 +0200 2012: > I have been spending more time than I really want to on a Windows laptop so > I have been getting familiar with putty. On windows go for Kitty[1] it supports more functions like tab completion, I can't live without tab completion and i bet so do you. [1] http://kitty.9bis.com/ From anita.hall at simmortel.com Thu Apr 5 16:13:37 2012 From: anita.hall at simmortel.com (Anita Hall) Date: Thu, 5 Apr 2012 17:43:37 +0530 Subject: [Freeswitch-dev] Terminal Emulators In-Reply-To: <1333607392-sup-878@masterkorp.net> References: <1333607392-sup-878@masterkorp.net> Message-ID: Byobu on linux. regards, Anita On Thu, Apr 5, 2012 at 12:02 PM, Alfredo Palhares wrote: > Excerpts from Michael Collins's message of Thu Apr 05 00:57:41 +0200 2012: > > I have been spending more time than I really want to on a Windows laptop > so > > I have been getting familiar with putty. > On windows go for Kitty[1] it supports more functions like tab completion, > I can't live without tab completion and i bet so do you. > > > [1] http://kitty.9bis.com/ > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120405/53f892e4/attachment-0001.html From msc at freeswitch.org Thu Apr 5 20:41:09 2012 From: msc at freeswitch.org (Michael Collins) Date: Thu, 5 Apr 2012 09:41:09 -0700 Subject: [Freeswitch-dev] error in con:pop wrong number of args In-Reply-To: <20120404012546.27670@gmx.com> References: <20120404012546.27670@gmx.com> Message-ID: what happens if you try it without the ",5"? Does it block and wait for an event? -MC On Tue, Apr 3, 2012 at 6:25 PM, adam harris wrote: > I am getting this error from the test code below. I have used 2 arguments > but it is picking up 3? > > > 2012-04-03 21:16:08.583714 [ERR] mod_lua.cpp:191 Error in pop expected > 1..2 args, got 3 > stack traceback: > [C]: in function 'pop' > /usr/local/freeswitch/scripts/aprompt.lua:21: in function '(for > generator)' > /usr/local/freeswitch/scripts/aprompt.lua:21: in main chunk > > > --------------------------------------------------- > > dtmfbuffer = "" > > con = freeswitch.EventConsumer("DTMF") > > session:setVariable("playback_terminators", "0123456789") > session:execute("playback", "sound/test.wav") > > > while ((session:ready() == true)) do > > > for e in (function() return con:pop(1,5) end) do > > event_name = e:getHeader("Event-Name") or "" > > if (event_name == "DTMF") then > > print(dtmfbuffer) > end > > end > > end > > session:hangup() > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120405/451a8a4e/attachment.html From garmt.noname at gmail.com Fri Apr 6 01:03:24 2012 From: garmt.noname at gmail.com (grmt) Date: Thu, 5 Apr 2012 23:03:24 +0200 Subject: [Freeswitch-dev] error in con:pop wrong number of args In-Reply-To: <20120404012546.27670@gmx.com> References: <20120404012546.27670@gmx.com> Message-ID: <000c01cd136f$8d5a37d0$a80ea770$@gmail.com> What version of FS are you running? You need a fairly recent version of FS to support the timeout parameter of con:pop Pop(1,5) means block and wait, but only 0.05 (s) Is that what you want? I guess not, you usually don't want to block a lua script that handles audio. And you certainly don't want to repeat this "blocking" 20 times per sec, polling for DTMF events There are better ways to catch DTMF (setInputCallback ...) ( I think anthm answered you on IRC..) -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of adam harris Sent: Wednesday, April 04, 2012 03:26 To: freeswitch-dev at lists.freeswitch.org Subject: [Freeswitch-dev] error in con:pop wrong number of args I am getting this error from the test code below. I have used 2 arguments but it is picking up 3? 2012-04-03 21:16:08.583714 [ERR] mod_lua.cpp:191 Error in pop expected 1..2 args, got 3 stack traceback: [C]: in function 'pop' /usr/local/freeswitch/scripts/aprompt.lua:21: in function '(for generator)' /usr/local/freeswitch/scripts/aprompt.lua:21: in main chunk --------------------------------------------------- dtmfbuffer = "" con = freeswitch.EventConsumer("DTMF") session:setVariable("playback_terminators", "0123456789") session:execute("playback", "sound/test.wav") while ((session:ready() == true)) do for e in (function() return con:pop(1,5) end) do event_name = e:getHeader("Event-Name") or "" if (event_name == "DTMF") then print(dtmfbuffer) end end end session:hangup() _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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 From msc at freeswitch.org Fri Apr 6 01:56:04 2012 From: msc at freeswitch.org (Michael Collins) Date: Thu, 5 Apr 2012 14:56:04 -0700 Subject: [Freeswitch-dev] error in con:pop wrong number of args In-Reply-To: <000c01cd136f$8d5a37d0$a80ea770$@gmail.com> References: <20120404012546.27670@gmx.com> <000c01cd136f$8d5a37d0$a80ea770$@gmail.com> Message-ID: FYI, This issue was discussed on IRC and consuming events is absolutely not what the OP needs. Tony gave him some great information on using session:getDigits and setInputCallback so that he doesn't have to block audio while messing with the events. -MC On Thu, Apr 5, 2012 at 2:03 PM, grmt wrote: > What version of FS are you running? You need a fairly recent version of FS > to support the timeout parameter of con:pop > > Pop(1,5) means block and wait, but only 0.05 (s) > Is that what you want? I guess not, you usually don't want to block a lua > script that handles audio. > And you certainly don't want to repeat this "blocking" 20 times per sec, > polling for DTMF events > > There are better ways to catch DTMF (setInputCallback ...) > > ( I think anthm answered you on IRC..) > -----Original Message----- > From: freeswitch-dev-bounces at lists.freeswitch.org [mailto: > freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of adam harris > Sent: Wednesday, April 04, 2012 03:26 > To: freeswitch-dev at lists.freeswitch.org > Subject: [Freeswitch-dev] error in con:pop wrong number of args > > I am getting this error from the test code below. I have used 2 arguments > but it is picking up 3? > > > 2012-04-03 21:16:08.583714 [ERR] mod_lua.cpp:191 Error in pop expected > 1..2 args, got 3 stack traceback: > [C]: in function 'pop' > /usr/local/freeswitch/scripts/aprompt.lua:21: in function '(for > generator)' > /usr/local/freeswitch/scripts/aprompt.lua:21: in main chunk > > > --------------------------------------------------- > > dtmfbuffer = "" > > con = freeswitch.EventConsumer("DTMF") > > session:setVariable("playback_terminators", "0123456789") > session:execute("playback", "sound/test.wav") > > > while ((session:ready() == true)) do > > > for e in (function() return con:pop(1,5) end) do > > event_name = e:getHeader("Event-Name") or "" > > if (event_name == "DTMF") then > > print(dtmfbuffer) > end > > end > > end > > session:hangup() > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120405/36ecf741/attachment.html From mgg at giagnocavo.net Fri Apr 6 04:22:20 2012 From: mgg at giagnocavo.net (Michael Giagnocavo) Date: Thu, 5 Apr 2012 20:22:20 -0400 Subject: [Freeswitch-dev] Requirements to get actual UUIDs? Message-ID: <83FF8D7C9F526E44B77C97DD2891652A539EACD8@mse17be1.mse17.exchange.ms> Hello, Does anyone know what's required for APR to generate UUIDs? Currently, FreeSWTICH is generating sequential timestamp-like numbers instead of UUIDs. When configuring APR, I get this output: Checking for OS UUID Support... checking uuid.h usability... yes checking uuid.h presence... yes checking for uuid.h... yes checking for library containing uuid_create... no checking for library containing uuid_generate... -luuid checking for uuid_create... no checking for uuid_generate... yes checking for os uuid usability... no This is on CentOS 6.2. Installed packages: libuuid, libuuid-devel, e2fsprogs, e2fsprogs-devel, and util-linux-ng. What do I need to do to make APR pick up on this and generate proper UUIDs (that is, 128 bits of randomness)? -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120405/1ce4798a/attachment.html From brian at freeswitch.org Fri Apr 6 04:32:54 2012 From: brian at freeswitch.org (Brian West) Date: Thu, 5 Apr 2012 19:32:54 -0500 Subject: [Freeswitch-dev] Requirements to get actual UUIDs? In-Reply-To: <83FF8D7C9F526E44B77C97DD2891652A539EACD8@mse17be1.mse17.exchange.ms> References: <83FF8D7C9F526E44B77C97DD2891652A539EACD8@mse17be1.mse17.exchange.ms> Message-ID: <388721F5-FD5C-4A94-9B81-776C172D1E37@freeswitch.org> Remove libuuid* leave e2fsprogs-devel e2fsprogs Its using libuuid which if I recall sucks. /b On Apr 5, 2012, at 7:22 PM, Michael Giagnocavo wrote: > Hello, > > Does anyone know what?s required for APR to generate UUIDs? Currently, FreeSWTICH is generating sequential timestamp-like numbers instead of UUIDs. When configuring APR, I get this output: > > Checking for OS UUID Support... > checking uuid.h usability... yes > checking uuid.h presence... yes > checking for uuid.h... yes > checking for library containing uuid_create... no > checking for library containing uuid_generate... -luuid > checking for uuid_create... no > checking for uuid_generate... yes > checking for os uuid usability... no > > This is on CentOS 6.2. Installed packages: libuuid, libuuid-devel, e2fsprogs, e2fsprogs-devel, and util-linux-ng. What do I need to do to make APR pick up on this and generate proper UUIDs (that is, 128 bits of randomness)? > > -Michael > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 From mgg at giagnocavo.net Fri Apr 6 04:57:00 2012 From: mgg at giagnocavo.net (Michael Giagnocavo) Date: Thu, 5 Apr 2012 20:57:00 -0400 Subject: [Freeswitch-dev] Requirements to get actual UUIDs? In-Reply-To: <388721F5-FD5C-4A94-9B81-776C172D1E37@freeswitch.org> References: <83FF8D7C9F526E44B77C97DD2891652A539EACD8@mse17be1.mse17.exchange.ms> <388721F5-FD5C-4A94-9B81-776C172D1E37@freeswitch.org> Message-ID: <83FF8D7C9F526E44B77C97DD2891652A539EACE1@mse17be1.mse17.exchange.ms> What bothers me is that libuuid is found, uuid_generate is found. uuid_generate works properly. (Wrote a tiny app, include uuid/uuid.h, compile with -luuid; output is great). The output I am seeing, IIRC, is the result of APR not using libuuid, and using its own hokey timestamp based system. Everything depends on libuuid: yum erase libuuid ... ---> Package kernel.x86_64 0:2.6.32-220.el6 will be erased ... Remove 147 Package(s) Installed size: 731 M Is this ok [y/N]: I removed libuuid-devel, re-installed e2fsprogs-devel, same problem. (uuid.h is detected, but not uuid_create or generated - output is still bad.) I remember solving this a long time ago (on CentOS 5.2 or so), but I coulda sworn it was by installing e2fsprogs. Now that doesn't seem to work :\, and nor does libuuid-devel. If only there was A Portable Runtime to solve these kinds of things... -Michael -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Brian West Sent: Thursday, April 05, 2012 6:33 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] Requirements to get actual UUIDs? Remove libuuid* leave e2fsprogs-devel e2fsprogs Its using libuuid which if I recall sucks. /b On Apr 5, 2012, at 7:22 PM, Michael Giagnocavo wrote: > Hello, > > Does anyone know what's required for APR to generate UUIDs? Currently, FreeSWTICH is generating sequential timestamp-like numbers instead of UUIDs. When configuring APR, I get this output: > > Checking for OS UUID Support... > checking uuid.h usability... yes > checking uuid.h presence... yes > checking for uuid.h... yes > checking for library containing uuid_create... no checking for library > containing uuid_generate... -luuid checking for uuid_create... no > checking for uuid_generate... yes checking for os uuid usability... no > > This is on CentOS 6.2. Installed packages: libuuid, libuuid-devel, e2fsprogs, e2fsprogs-devel, and util-linux-ng. What do I need to do to make APR pick up on this and generate proper UUIDs (that is, 128 bits of randomness)? > > -Michael > ______________________________________________________________________ > ___ Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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 From mgg at giagnocavo.net Fri Apr 6 05:14:00 2012 From: mgg at giagnocavo.net (Michael Giagnocavo) Date: Thu, 5 Apr 2012 21:14:00 -0400 Subject: [Freeswitch-dev] Requirements to get actual UUIDs? In-Reply-To: <83FF8D7C9F526E44B77C97DD2891652A539EACE1@mse17be1.mse17.exchange.ms> References: <83FF8D7C9F526E44B77C97DD2891652A539EACD8@mse17be1.mse17.exchange.ms> <388721F5-FD5C-4A94-9B81-776C172D1E37@freeswitch.org> <83FF8D7C9F526E44B77C97DD2891652A539EACE1@mse17be1.mse17.exchange.ms> Message-ID: <83FF8D7C9F526E44B77C97DD2891652A539EACE3@mse17be1.mse17.exchange.ms> Figured it out! The package "uuid-devel" (which is ossp-uuid, and looks fantastically complicated) puts uuid.h in /usr/include. APR's configure script prefers this over uuid/uuid.h (libuuid's header). OSSP's uuid functions are not compatible with what it expects, so it ends up not using anything. Removing uuid-devel fixes it (gets rid of /usr/include/uuid.h), although I think this is needed for something with Postgres. -Michael -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Michael Giagnocavo Sent: Thursday, April 05, 2012 6:57 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] Requirements to get actual UUIDs? What bothers me is that libuuid is found, uuid_generate is found. uuid_generate works properly. (Wrote a tiny app, include uuid/uuid.h, compile with -luuid; output is great). The output I am seeing, IIRC, is the result of APR not using libuuid, and using its own hokey timestamp based system. Everything depends on libuuid: yum erase libuuid ... ---> Package kernel.x86_64 0:2.6.32-220.el6 will be erased ... Remove 147 Package(s) Installed size: 731 M Is this ok [y/N]: I removed libuuid-devel, re-installed e2fsprogs-devel, same problem. (uuid.h is detected, but not uuid_create or generated - output is still bad.) I remember solving this a long time ago (on CentOS 5.2 or so), but I coulda sworn it was by installing e2fsprogs. Now that doesn't seem to work :\, and nor does libuuid-devel. If only there was A Portable Runtime to solve these kinds of things... -Michael -----Original Message----- From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Brian West Sent: Thursday, April 05, 2012 6:33 PM To: freeswitch-dev at lists.freeswitch.org Subject: Re: [Freeswitch-dev] Requirements to get actual UUIDs? Remove libuuid* leave e2fsprogs-devel e2fsprogs Its using libuuid which if I recall sucks. /b On Apr 5, 2012, at 7:22 PM, Michael Giagnocavo wrote: > Hello, > > Does anyone know what's required for APR to generate UUIDs? Currently, FreeSWTICH is generating sequential timestamp-like numbers instead of UUIDs. When configuring APR, I get this output: > > Checking for OS UUID Support... > checking uuid.h usability... yes > checking uuid.h presence... yes > checking for uuid.h... yes > checking for library containing uuid_create... no checking for library > containing uuid_generate... -luuid checking for uuid_create... no > checking for uuid_generate... yes checking for os uuid usability... no > > This is on CentOS 6.2. Installed packages: libuuid, libuuid-devel, e2fsprogs, e2fsprogs-devel, and util-linux-ng. What do I need to do to make APR pick up on this and generate proper UUIDs (that is, 128 bits of randomness)? > > -Michael > ______________________________________________________________________ > ___ Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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 From brian at freeswitch.org Fri Apr 6 06:05:04 2012 From: brian at freeswitch.org (Brian West) Date: Thu, 5 Apr 2012 21:05:04 -0500 Subject: [Freeswitch-dev] Requirements to get actual UUIDs? In-Reply-To: <83FF8D7C9F526E44B77C97DD2891652A539EACE3@mse17be1.mse17.exchange.ms> References: <83FF8D7C9F526E44B77C97DD2891652A539EACD8@mse17be1.mse17.exchange.ms> <388721F5-FD5C-4A94-9B81-776C172D1E37@freeswitch.org> <83FF8D7C9F526E44B77C97DD2891652A539EACE1@mse17be1.mse17.exchange.ms> <83FF8D7C9F526E44B77C97DD2891652A539EACE3@mse17be1.mse17.exchange.ms> Message-ID: <004F1DA7-BE70-49D4-AC73-9C5B0639724A@freeswitch.org> :P On Apr 5, 2012, at 8:14 PM, Michael Giagnocavo wrote: > Figured it out! The package "uuid-devel" (which is ossp-uuid, and looks fantastically complicated) puts uuid.h in /usr/include. APR's configure script prefers this over uuid/uuid.h (libuuid's header). OSSP's uuid functions are not compatible with what it expects, so it ends up not using anything. > > Removing uuid-devel fixes it (gets rid of /usr/include/uuid.h), although I think this is needed for something with Postgres. > > -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120405/70699969/attachment.html From william.suffill at gmail.com Fri Apr 6 20:45:35 2012 From: william.suffill at gmail.com (William Suffill) Date: Fri, 6 Apr 2012 12:45:35 -0400 Subject: [Freeswitch-dev] Terminal Emulators In-Reply-To: References: <1333607392-sup-878@masterkorp.net> Message-ID: Tmux seems to an up and coming replacement for screen. Also supported as a backend for byobu. It's on my todo list to see what's all the fuss about. From william.king at quentustech.com Fri Apr 6 21:11:13 2012 From: william.king at quentustech.com (William King) Date: Fri, 06 Apr 2012 10:11:13 -0700 Subject: [Freeswitch-dev] Terminal Emulators In-Reply-To: References: <1333607392-sup-878@masterkorp.net> Message-ID: <4F7F23B1.1040801@quentustech.com> So far I'm not a fan of the byobu tmux integration. The major problems I've found so far is that you can't change the escape key(from byobu), and that multiple people logged into the same byobu session are not able to access the screens independently. True, that these are probably fixable with some quick tmux configuration, but I haven't had time to dig into it to learn how. Other than those two issues tmux seems stable enough to be a screen replacement. William King Senior Engineer Quentus Technologies, INC 1037 NE 65th St Suite 273 Seattle, WA 98115 Main: (877) 211-9337 Office: (206) 388-4772 Cell: (253) 686-5518 william.king at quentustech.com On 04/06/2012 09:45 AM, William Suffill wrote: > Tmux seems to an up and coming replacement for screen. Also supported > as a backend for byobu. It's on my todo list to see what's all the > fuss about. > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 From dujinfang at gmail.com Sat Apr 7 06:41:25 2012 From: dujinfang at gmail.com (Seven Du) Date: Sat, 7 Apr 2012 10:41:25 +0800 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question Message-ID: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> Hi, Some code has trailing white spaces and I found it's a little hard to manage code locally and keep it up to date with the upstream. Would any interest in cleanup? I could help with 1) one big change that write a script to clean all and 2) change one file/module a time to be safe but takes more time. I understand you are all busy working on the 1.2 branch and maybe causing trouble when merging back and forth. Jira questions: 1) I found jira is not sending alerting email when I create or comment issues recently. 2) Some modules are missing such as mod_fsv and mod_rtmp, is it ok to report to FS-CORE if cannot find a matching entry on jira? Thanks. 7. -- About: http://about.me/dujinfang Blog: http://www.dujinfang.com Proj: http://www.freeswitch.org.cn Sent with Sparrow (http://www.sparrowmailapp.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120407/6711c352/attachment.html From msc at freeswitch.org Sat Apr 7 08:26:57 2012 From: msc at freeswitch.org (Michael Collins) Date: Fri, 6 Apr 2012 21:26:57 -0700 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> Message-ID: can you show us an example of code w/ trailing whitespaces? -MC On Fri, Apr 6, 2012 at 7:41 PM, Seven Du wrote: > Hi, > > Some code has trailing white spaces and I found it's a little hard to > manage code locally and keep it up to date with the upstream. > > Would any interest in cleanup? I could help with 1) one big change that > write a script to clean all and 2) change one file/module a time to be > safe but takes more time. > > I understand you are all busy working on the 1.2 branch and maybe causing > trouble when merging back and forth. > > > Jira questions: > > 1) I found jira is not sending alerting email when I create or comment > issues recently. > > 2) Some modules are missing such as mod_fsv and mod_rtmp, is it ok to > report to FS-CORE if cannot find a matching entry on jira? > > > Thanks. > > 7. > > > -- > About: http://about.me/dujinfang > Blog: http://www.dujinfang.com > Proj: http://www.freeswitch.org.cn > > Sent with Sparrow > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120406/b74e5d7e/attachment-0001.html From dujinfang at gmail.com Sat Apr 7 19:49:08 2012 From: dujinfang at gmail.com (Seven Du) Date: Sat, 7 Apr 2012 23:49:08 +0800 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> Message-ID: <0C20538912EC4DD088AD40427B43B9F6@gmail.com> cat -t mod_rtmp.c | grep I cat mod_rtmp.c | grep " $" some editors insert tabs automatically when you press enter. On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote: > can you show us an example of code w/ trailing whitespaces? > -MC > > On Fri, Apr 6, 2012 at 7:41 PM, Seven Du wrote: > > Hi, > > > > Some code has trailing white spaces and I found it's a little hard to manage code locally and keep it up to date with the upstream. > > > > Would any interest in cleanup? I could help with 1) one big change that write a script to clean all and 2) change one file/module a time to be safe but takes more time. > > > > I understand you are all busy working on the 1.2 branch and maybe causing trouble when merging back and forth. > > > > > > Jira questions: > > > > 1) I found jira is not sending alerting email when I create or comment issues recently. > > > > 2) Some modules are missing such as mod_fsv and mod_rtmp, is it ok to report to FS-CORE if cannot find a matching entry on jira? > > > > > > Thanks. > > > > 7. > > > > > > -- > > About: http://about.me/dujinfang > > Blog: http://www.dujinfang.com > > Proj: http://www.freeswitch.org.cn > > > > Sent with Sparrow (http://www.sparrowmailapp.com) > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > > http://www.freeswitchsolutions.com > > > > > > > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-dev mailing list > > FreeSWITCH-dev at lists.freeswitch.org (mailto: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 > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org (mailto: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/20120407/40a1b1f9/attachment.html From krice at freeswitch.org Sat Apr 7 21:23:57 2012 From: krice at freeswitch.org (Ken Rice) Date: Sat, 07 Apr 2012 12:23:57 -0500 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: Theres nothing wrong with leading or trailing white space... As far as Jira we?ll look into that and see whats going on... Jira was recently upgraded so who knows what all is broken or has changed there K On 4/7/12 10:49 AM, "Seven Du" wrote: > > cat -t mod_rtmp.c | grep I > cat mod_rtmp.c | grep " $" > > some editors insert tabs automatically when you press enter. > > > > On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote: > >> >> can you show us an example of code w/ trailing whitespaces? >> -MC >> >> On Fri, Apr 6, 2012 at 7:41 PM, Seven Du wrote: >>> >>> Hi, >>> >>> Some code has trailing white spaces and I found it's a little hard to manage >>> code locally and keep it up to date with the upstream. >>> >>> Would any interest in cleanup? I could help with 1) one big change that >>> write a script to clean all and 2) change one file/module a time to be safe >>> but takes more time. >>> >>> I understand you are all busy working on the 1.2 branch and maybe causing >>> trouble when merging back and forth. >>> >>> >>> Jira questions: >>> >>> 1) I found jira is not sending alerting email when I create or comment >>> issues recently. >>> >>> 2) Some modules are missing such as mod_fsv and mod_rtmp, is it ok to report >>> to FS-CORE if cannot find a matching entry on jira? >>> >>> >>> Thanks. >>> >>> 7. >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120407/4975f7cb/attachment.html From msc at freeswitch.org Sun Apr 8 00:01:36 2012 From: msc at freeswitch.org (Michael Collins) Date: Sat, 7 Apr 2012 13:01:36 -0700 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: <0C20538912EC4DD088AD40427B43B9F6@gmail.com> References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: /usr/src/freeswitch/src# grep -rc "\s\+$" * | grep -v ":0$" 1200+ files with trailing whitespace does seem a bit excessive, however I don't know how large a "problem" it really is. If you're going to do whitespace cleanup I recommend starting small, like with mod_rtmp.c. Run your whitespace cleanup script on just a few files, recompile them, verify that it's all good, then commit & push. I don't know about the other devs, but I would feel much more comfortable with small, controlled updates than a large sweep that does a lot of files. Just my $0.02... -MC On Sat, Apr 7, 2012 at 8:49 AM, Seven Du wrote: > cat -t mod_rtmp.c | grep I > cat mod_rtmp.c | grep " $" > > some editors insert tabs automatically when you press enter. > > On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote: > > can you show us an example of code w/ trailing whitespaces? > -MC > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120407/0899530b/attachment.html From dujinfang at gmail.com Mon Apr 9 16:24:21 2012 From: dujinfang at gmail.com (Seven Du) Date: Mon, 9 Apr 2012 20:24:21 +0800 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: I also prefer small, controlled updates, however I can't do git push and jira would be a little pain ... Ken mentioned there's nothing wrong with white spaces in another mail, I agree but still think it's a little pain to generate "clean" diff when there's many trailing spaces involved. And as I said doing this could affect all devs So I'd like to get their ideas, especially we have more branches than before it's means need more merge and possible there's conflicts... 7. On Sunday, April 8, 2012 at 4:01 AM, Michael Collins wrote: > /usr/src/freeswitch/src# grep -rc "\s\+$" * | grep -v ":0$" > > 1200+ files with trailing whitespace does seem a bit excessive, however I don't know how large a "problem" it really is. If you're going to do whitespace cleanup I recommend starting small, like with mod_rtmp.c. Run your whitespace cleanup script on just a few files, recompile them, verify that it's all good, then commit & push. I don't know about the other devs, but I would feel much more comfortable with small, controlled updates than a large sweep that does a lot of files. > > Just my $0.02... > > -MC > > On Sat, Apr 7, 2012 at 8:49 AM, Seven Du wrote: > > cat -t mod_rtmp.c | grep I > > cat mod_rtmp.c | grep " $" > > > > some editors insert tabs automatically when you press enter. > > > > > > On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote: > > > > > can you show us an example of code w/ trailing whitespaces? > > > -MC > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org (mailto: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/20120409/1580c5e9/attachment-0001.html From vargas.khomp at gmail.com Mon Apr 9 16:50:21 2012 From: vargas.khomp at gmail.com (Rafael Vargas) Date: Mon, 9 Apr 2012 09:50:21 -0300 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: My two cents: As already stated by Ken Rice, trailing spaces are not a problem. And I personally had a bad experience in purely aesthetic code cleanups. It messes up the "blame" function of the VCS (git in this case), once the last modifications in the the altered lines will be assigned to whoever commited the cleanup. -- Rafael Vargas On Mon, Apr 9, 2012 at 09:24, Seven Du wrote: > I also prefer small, controlled updates, however I can't do git push and > jira would be a little pain ... > Ken mentioned there's nothing wrong with white spaces in another mail, I > agree but still think it's a little pain to generate "clean" diff when > there's many trailing spaces involved. And as I said doing this could > affect all devs So I'd like to get their ideas, especially we have more > branches than before it's means need more merge and possible there's > conflicts... > > 7. > > On Sunday, April 8, 2012 at 4:01 AM, Michael Collins wrote: > > /usr/src/freeswitch/src# grep -rc "\s\+$" * | grep -v ":0$" > > 1200+ files with trailing whitespace does seem a bit excessive, however I > don't know how large a "problem" it really is. If you're going to do > whitespace cleanup I recommend starting small, like with mod_rtmp.c. Run > your whitespace cleanup script on just a few files, recompile them, verify > that it's all good, then commit & push. I don't know about the other devs, > but I would feel much more comfortable with small, controlled updates than > a large sweep that does a lot of files. > > Just my $0.02... > > -MC > > On Sat, Apr 7, 2012 at 8:49 AM, Seven Du wrote: > > cat -t mod_rtmp.c | grep I > cat mod_rtmp.c | grep " $" > > some editors insert tabs automatically when you press enter. > > On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote: > > can you show us an example of code w/ trailing whitespaces? > -MC > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120409/73c11930/attachment.html From anthony.minessale at gmail.com Mon Apr 9 19:35:27 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 9 Apr 2012 10:35:27 -0500 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: Isn't it only a problem if you clean your working code differently from the remote? You should resist doing any local whitespace changes and we can make a tradition to maybe clean up the tree at every major release in a single sweep so the history is not tainted by tons of whitespace changes. On Mon, Apr 9, 2012 at 7:50 AM, Rafael Vargas wrote: > My two cents: > > As already stated by Ken Rice, trailing spaces are not a problem. And I > personally had a bad experience in purely aesthetic code cleanups. It messes > up the "blame" function of the VCS (git in this case), once the last > modifications in the the altered lines will be assigned to whoever commited > the cleanup. > > -- > Rafael Vargas > > > On Mon, Apr 9, 2012 at 09:24, Seven Du wrote: >> >> I also prefer small, controlled updates, however I can't do git push and >> jira would be a little pain ... >> Ken mentioned there's nothing wrong with white spaces in another mail, I >> agree but still think it's a little pain to generate "clean" diff when >> there's many trailing spaces involved. And as I said doing this could affect >> all devs So I'd like to get their ideas, especially we have more branches >> than before it's means need more merge and possible there's conflicts... >> >> 7. >> >> On Sunday, April 8, 2012 at 4:01 AM, Michael Collins wrote: >> >> /usr/src/freeswitch/src# grep -rc "\s\+$" * | grep -v ":0$" >> >> 1200+ files with trailing whitespace does seem a bit excessive, however I >> don't know how large a "problem" it really is. If you're going to do >> whitespace cleanup I recommend starting small, like with mod_rtmp.c. Run >> your whitespace cleanup script on just a few files, recompile them, verify >> that it's all good, then commit & push. I don't know about the other devs, >> but I would feel much more comfortable with small, controlled updates than a >> large sweep that does a lot of files. >> >> Just my $0.02... >> >> -MC >> >> On Sat, Apr 7, 2012 at 8:49 AM, Seven Du wrote: >> >> cat -t mod_rtmp.c | grep I >> cat mod_rtmp.c | grep " $" >> >> some editors insert tabs automatically when you press enter. >> >> On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote: >> >> can you show us an example of code w/ trailing whitespaces? >> -MC >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.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 >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.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 >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 From dujinfang at gmail.com Mon Apr 9 20:27:01 2012 From: dujinfang at gmail.com (Seven Du) Date: Tue, 10 Apr 2012 00:27:01 +0800 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: Agree clean up at every major release is a good idea :). Thanks. My problem was that one or my friend who does not familiar with git and messed up white spaces and it took me an hour to manually "fix" that from git diff :( Thanks. On Monday, April 9, 2012 at 11:35 PM, Anthony Minessale wrote: > Isn't it only a problem if you clean your working code differently > from the remote? > You should resist doing any local whitespace changes and we can make a > tradition to maybe clean up the tree at every major release in a > single sweep so the history is not tainted by tons of whitespace > changes. > > On Mon, Apr 9, 2012 at 7:50 AM, Rafael Vargas wrote: > > My two cents: > > > > As already stated by Ken Rice, trailing spaces are not a problem. And I > > personally had a bad experience in purely aesthetic code cleanups. It messes > > up the "blame" function of the VCS (git in this case), once the last > > modifications in the the altered lines will be assigned to whoever commited > > the cleanup. > > > > -- > > Rafael Vargas > > > > > > On Mon, Apr 9, 2012 at 09:24, Seven Du wrote: > > > > > > I also prefer small, controlled updates, however I can't do git push and > > > jira would be a little pain ... > > > Ken mentioned there's nothing wrong with white spaces in another mail, I > > > agree but still think it's a little pain to generate "clean" diff when > > > there's many trailing spaces involved. And as I said doing this could affect > > > all devs So I'd like to get their ideas, especially we have more branches > > > than before it's means need more merge and possible there's conflicts... > > > > > > 7. > > > > > > On Sunday, April 8, 2012 at 4:01 AM, Michael Collins wrote: > > > > > > /usr/src/freeswitch/src# grep -rc "\s\+$" * | grep -v ":0$" > > > > > > 1200+ files with trailing whitespace does seem a bit excessive, however I > > > don't know how large a "problem" it really is. If you're going to do > > > whitespace cleanup I recommend starting small, like with mod_rtmp.c. Run > > > your whitespace cleanup script on just a few files, recompile them, verify > > > that it's all good, then commit & push. I don't know about the other devs, > > > but I would feel much more comfortable with small, controlled updates than a > > > large sweep that does a lot of files. > > > > > > Just my $0.02... > > > > > > -MC > > > > > > On Sat, Apr 7, 2012 at 8:49 AM, Seven Du wrote: > > > > > > cat -t mod_rtmp.c | grep I > > > cat mod_rtmp.c | grep " $" > > > > > > some editors insert tabs automatically when you press enter. > > > > > > On Saturday, April 7, 2012 at 12:26 PM, Michael Collins wrote: > > > > > > can you show us an example of code w/ trailing whitespaces? > > > -MC > > > > > > > > > _________________________________________________________________________ > > > Professional FreeSWITCH Consulting Services: > > > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > > > http://www.freeswitchsolutions.com > > > > > > > > > > > > > > > Official FreeSWITCH Sites > > > http://www.freeswitch.org > > > http://wiki.freeswitch.org > > > http://www.cluecon.com > > > > > > FreeSWITCH-dev mailing list > > > FreeSWITCH-dev at lists.freeswitch.org (mailto: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 > > > > > > > > > > > > _________________________________________________________________________ > > > Professional FreeSWITCH Consulting Services: > > > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > > > http://www.freeswitchsolutions.com > > > > > > > > > > > > > > > Official FreeSWITCH Sites > > > http://www.freeswitch.org > > > http://wiki.freeswitch.org > > > http://www.cluecon.com > > > > > > FreeSWITCH-dev mailing list > > > FreeSWITCH-dev at lists.freeswitch.org (mailto: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 > > > > > > > > > > > _________________________________________________________________________ > > Professional FreeSWITCH Consulting Services: > > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > > http://www.freeswitchsolutions.com > > > > > > > > > > Official FreeSWITCH Sites > > http://www.freeswitch.org > > http://wiki.freeswitch.org > > http://www.cluecon.com > > > > FreeSWITCH-dev mailing list > > FreeSWITCH-dev at lists.freeswitch.org (mailto: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 (mailto:anthony_minessale at hotmail.com) > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com (mailto:anthony.minessale at gmail.com) > IRC: irc.freenode.net (http://irc.freenode.net) #freeswitch > > FreeSWITCH Developer Conference > sip:888 at conference.freeswitch.org (mailto:888 at conference.freeswitch.org) > googletalk:conf+888 at conference.freeswitch.org (mailto:conf+888 at conference.freeswitch.org) > pstn:+19193869900 > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org (mailto:consulting at freeswitch.org) > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-dev mailing list > FreeSWITCH-dev at lists.freeswitch.org (mailto: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/20120410/6a2d2b43/attachment-0001.html From gabe at gundy.org Mon Apr 9 20:59:21 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Mon, 9 Apr 2012 10:59:21 -0600 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: On Mon, Apr 9, 2012 at 9:35 AM, Anthony Minessale wrote: > Isn't it only a problem if you clean your working code differently > from the remote? Yeah, I get this too. Very often I'll have my editor set to do certain clean up upon opening a file. It's not a big deal if you don't save it, but if you need to make a local edit, it can add a bit of noise to the diff. > You should resist doing any local whitespace changes and we can make a > tradition to maybe clean up the tree at every major release in a > single sweep so the history is not tainted by tons of whitespace > changes. I think this is a great approach. That same policy could also be part of ongoing edits from that point. Perhaps it could even be part of the FreeSWITCH source code style guide (if there is one). We could also add the settings for emacs, vim and others to the wiki that match the official recommendations. Best, Gabe From brian at freeswitch.org Mon Apr 9 21:59:57 2012 From: brian at freeswitch.org (Brian West) Date: Mon, 9 Apr 2012 12:59:57 -0500 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> Message-ID: <2D48494D-9AED-41BA-B9B1-6607A93D3CC1@freeswitch.org> Can't you diff -w ? /b On Apr 9, 2012, at 11:59 AM, Gabriel Gunderson wrote: > > Yeah, I get this too. Very often I'll have my editor set to do certain > clean up upon opening a file. It's not a big deal if you don't save > it, but if you need to make a local edit, it can add a bit of noise to > the diff. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120409/f7601e42/attachment.html From Philip.Pirozhkov at ontarget-group.com Mon Apr 9 21:58:26 2012 From: Philip.Pirozhkov at ontarget-group.com (Philip.Pirozhkov at ontarget-group.com) Date: Mon, 09 Apr 2012 12:58:26 -0500 Subject: [Freeswitch-dev] ESL Ruby/Lua extensions build/linking error Message-ID: <20120409125826.l6qem5g9a800oc0w@webmail.opentransfer.com> Hi all, Trying to build ruby and lua extensions from freeswitch/libs/esl: lua]$ make g++ -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o esl_wrap.cpp:1510:17: fatal error: esl.h: No such file or directory compilation terminated. make: *** [esl_wrap.o] Error 1 this can be fixed adding -I../src/include to esl_wrap.o task but has ld error then: lua]$ make g++ -Wno-unused-function -I../src/include -c esl_wrap.cpp -o esl_wrap.o g++ esl_wrap.o -llua -lpthread -o ESL.so -L. /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' esl_wrap.o: In function `_wrap_new_ESLevent__SWIG_0': esl_wrap.cpp:(.text+0x3974): undefined reference to `ESLevent::ESLevent(char const*, char const*)' esl_wrap.o: In function `_wrap_new_ESLevent__SWIG_1': ... (tl;dr) Same with ruby (even worse), it was failing to find ruby.h and ruby/config.h. I got make esl_wrap.cpp task fixed http://pastebin.com/uKFBZVF3 but there's an ld error again: $ make g++ esl_wrap.o -lpthread -lrt -ldl -lcrypt -lm -L. -rdynamic -Wl,-export-dynamic -o ESL.so -L. /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' esl_wrap.o: In function `rb_class_of': esl_wrap.cpp:(.text+0x9ed): undefined reference to `rb_cFixnum' esl_wrap.cpp:(.text+0x9fa): undefined reference to `rb_cTrueClass' Anyone successful with this stuff? I'm not experienced with GCC stuff at all. It would be very nice to pack this Ruby ESL to a gem (ruby package manager). BR, Phil From gabe at gundy.org Mon Apr 9 22:05:48 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Mon, 9 Apr 2012 12:05:48 -0600 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: <2D48494D-9AED-41BA-B9B1-6607A93D3CC1@freeswitch.org> References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> <2D48494D-9AED-41BA-B9B1-6607A93D3CC1@freeswitch.org> Message-ID: On Mon, Apr 9, 2012 at 11:59 AM, Brian West wrote: > Can't you diff -w ? Let's not make this simpler than it needs to be ;) Best, Gabe From brian at freeswitch.org Mon Apr 9 22:17:38 2012 From: brian at freeswitch.org (Brian West) Date: Mon, 9 Apr 2012 13:17:38 -0500 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> <2D48494D-9AED-41BA-B9B1-6607A93D3CC1@freeswitch.org> Message-ID: <27E4DA1D-8DD2-4E01-98AE-D21E4F9D40DD@freeswitch.org> :) /b On Apr 9, 2012, at 1:05 PM, Gabriel Gunderson wrote: > On Mon, Apr 9, 2012 at 11:59 AM, Brian West wrote: >> Can't you diff -w ? > > Let's not make this simpler than it needs to be ;) > > > Best, > Gabe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120409/5661a8c5/attachment.html From anthony.minessale at gmail.com Mon Apr 9 23:00:51 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 9 Apr 2012 14:00:51 -0500 Subject: [Freeswitch-dev] trailing white spaces in code cleanup suggestions and jira question In-Reply-To: <27E4DA1D-8DD2-4E01-98AE-D21E4F9D40DD@freeswitch.org> References: <7C85241701254C3E8BCE9F5CE12AF095@gmail.com> <0C20538912EC4DD088AD40427B43B9F6@gmail.com> <2D48494D-9AED-41BA-B9B1-6607A93D3CC1@freeswitch.org> <27E4DA1D-8DD2-4E01-98AE-D21E4F9D40DD@freeswitch.org> Message-ID: only downside to git -w is it also removes indents. On Mon, Apr 9, 2012 at 1:17 PM, Brian West wrote: > :) > > /b > > On Apr 9, 2012, at 1:05 PM, Gabriel Gunderson wrote: > > On Mon, Apr 9, 2012 at 11:59 AM, Brian West wrote: > > Can't you diff -w ? > > > Let's not make this simpler than it needs to be ;) > > > Best, > Gabe > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 From fdelawarde at wirelessmundi.com Tue Apr 10 20:42:15 2012 From: fdelawarde at wirelessmundi.com (=?ISO-8859-1?Q?Fran=E7ois?= Delawarde) Date: Tue, 10 Apr 2012 18:42:15 +0200 Subject: [Freeswitch-dev] Fisheye and Jira Upgraded! In-Reply-To: References: Message-ID: <1334076136.12108.27.camel@luna.madrid.commsmundi.com> In the previous version I could click on the FS-XXXX from fisheye commit log to quickly see the corresponding jira issue. Is there a way to have fisheye link to jira issue on "resolve commits" (no big deal, but it could be useful)? Fran?ois. On Wed, 2012-04-04 at 00:27 -0500, Ken Rice wrote: > Just a quick announcement. > > As you may have noticed end of the Day US Time on Tuesday April 3rd, > Fisheye and Jira were offline for a while. However, I am pleased to > report that both have now been upgraded, and a Hardware replacement > has happened on both hosts. > > Please report any issues to me or BKW via the mailing list or join us > on the IRC Channel at #FreeSWITCH on irc.freenode.net > > Thanks for your Support! > > K From marketing at cluecon.com Tue Apr 10 20:53:57 2012 From: marketing at cluecon.com (Michael Collins) Date: Tue, 10 Apr 2012 09:53:57 -0700 Subject: [Freeswitch-dev] ClueCon 2012: Call For Speakers Message-ID: [image: Inline image 2] ClueCon 2012 - Call For Speakers ClueCon - the open source telephony conference by developers, for developers - would like to announce that we are having an open call for speaking proposals for this year's event. If you have an idea for a technical presentation for ClueCon 2012 then we would like to hear about. What makes a great ClueCon presentation? The tech savvy crowd that attends ClueCon loves *technical* presentations. In general, the more technical the presentation, the better. If you are thinking about a presentation then consider these points: - ClueCon talks are 30 minutes in length, including Q&A time with the audience - ClueCon has a special focus on open source VoIP and telephony projects like FreeSWITCH, Asterisk, OpenSIPS, and Kamailio - Attendees enjoy hearing about projects built with open source tools - Highly technical discussions that show the nuts and bolts are especially well-liked - The audience appreciates seeing and participating in live demonstrations Please send your proposals to marketing at cluecon.com. Be sure to include a working title, description of the talk, and name of the presenter. Don't delay! There are a limited number of openings. ClueCon 2012 Registration Information ClueCon 2012 registration is now open. Visit the registration pagefor details. Be sure to book your room at the Wyndham and qualify for the $300 discount. As always, feel free to call us at 877.742.CLUE (877.742.2583) if you have any questions about ClueCon 2012. Also, keep in mind that the FreeSWITCH community has a conference calleach Wednesday at 1PM Eastern time. This is a great opportunity to talk about open source telephony and get to know a number folks who will be at ClueCon 2012. Stay tuned for more news about ClueCon speakers, sponsors, and related events! -- ClueCon Team http://www.cluecon.com 877-7-4ACLUE cc12cfs1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120410/8b1a94bd/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 27523 bytes Desc: not available Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120410/8b1a94bd/attachment-0001.jpe From brian at freeswitch.org Tue Apr 10 21:15:32 2012 From: brian at freeswitch.org (Brian West) Date: Tue, 10 Apr 2012 12:15:32 -0500 Subject: [Freeswitch-dev] Fisheye and Jira Upgraded! In-Reply-To: <1334076136.12108.27.camel@luna.madrid.commsmundi.com> References: <1334076136.12108.27.camel@luna.madrid.commsmundi.com> Message-ID: <0DA48588-F4A2-4B64-B547-D182E13EE5A4@freeswitch.org> Ken is working to fix this it seems to be a bug in the latest versions of fisheye. /b On Apr 10, 2012, at 11:42 AM, Fran?ois Delawarde wrote: > In the previous version I could click on the FS-XXXX from fisheye commit > log to quickly see the corresponding jira issue. > > Is there a way to have fisheye link to jira issue on "resolve > commits" (no big deal, but it could be useful)? > > Fran?ois. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120410/6b3bf904/attachment.html From msc at freeswitch.org Wed Apr 11 00:25:25 2012 From: msc at freeswitch.org (Michael Collins) Date: Tue, 10 Apr 2012 13:25:25 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Tomorrow, April 11 Message-ID: Hello all! Tomorrow's agenda page is here: http://wiki.freeswitch.org/wiki/FS_weekly_2012_04_11 We are going to be talking about some "what if" scenarios. Feel free to bring your own, but the two specifically that we'll be discussing tomorrow: * What if I host my FS-related project on GitHub? * What if I wanted to build a desk phone with cheap ARM hardware? Please join the conversation and bring your expertise as well as your questions for discussion. Talk to you tomorrow! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120410/cffd3045/attachment.html From haggard at msn.com Wed Apr 11 05:27:39 2012 From: haggard at msn.com (Richard Lewis Haggard) Date: Tue, 10 Apr 2012 21:27:39 -0400 Subject: [Freeswitch-dev] Why is _thread_cond_timedwait written the way it is? Message-ID: <004401cd1782$498fa370$dcaeea50$@com> I was looking at _thread_cond_timedwait in thread_code. There is a section of the code that I do not understand the purpose of. Could someone please explain to me what the purpose of the other part of the code is? Before the code enters a loop it serializes access to the passed in cond structure pointer, increments a counter and makes a local copy of a value before releasing the cond again. EnterCriticalSection(&cond->csection); cond->num_waiting++; generation = cond->generation; LeaveCriticalSection(&cond->csection); What is the purpose of 'num_waiting' and 'generation'? The next part looks odd to me. Why does the code unlock the mutex when what is desired is to lock it? apr_thread_mutex_unlock(mutex); The code then enters a do { } while (true); loop. do { The first thing it does is to wait for access to a semaphore. This is a limited time wait and may time out before the event is encountered. The result of this wait is checked later. res = WaitForSingleObject(cond->semaphore, timeout_ms); The 'cond' structure is going to be modified again and the code needs to have exclusive access. EnterCriticalSection(&cond->csection); I do not know what the purpose of this is. Can someone explain it to me? What is the purpose of this particular block? if (cond->num_wake) { if (cond->generation != generation) { cond->num_wake--; cond->num_waiting--; rv = APR_SUCCESS; break; } else { wake = 1; } } else if (res != WAIT_OBJECT_0) { cond->num_waiting--; rv = APR_TIMEUP; break; } If neither 'break' executes then the code releases the critical section. The code would be less obtuse (and smaller) if the two 'break' functions were removed. That would save having duplicate LeaveCriticalSection() functions. In any case, the code releases the critical section. LeaveCriticalSection(&cond->csection); What is the purpose of the next bock? It only executes if the semaphone acquisition was successful but the 'cond->generation' has changed while attempting to determine if it is OK to execute the mutex lock. if (wake) { wake = 0; ReleaseSemaphore(cond->semaphore, 1, NULL); } Note: If the two 'break' statements were removed from above and the following lines added. At this point in the code the critical section would have been released so it would not be necessary to explicitly do so outside of the forever loop. else { break; } Under what conditions can 'cond->generation' change? The bottom of the loop is encountered. } while (1); To get here one of the two 'break' statements must have been hit. The critical section is still locked and must be released. Note: if my suggested changes were implemented then it would not be necessary to have this line: LeaveCriticalSection(&cond->csection); And now, finally, the mutex gets locked. apr_thread_mutex_lock(mutex); ============================== Richard Lewis Haggard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120410/8ea16919/attachment.html From brian at freeswitch.org Wed Apr 11 10:01:58 2012 From: brian at freeswitch.org (Brian West) Date: Wed, 11 Apr 2012 01:01:58 -0500 Subject: [Freeswitch-dev] Why is _thread_cond_timedwait written the way it is? In-Reply-To: <004401cd1782$498fa370$dcaeea50$@com> References: <004401cd1782$498fa370$dcaeea50$@com> Message-ID: <0A8FA030-6D4B-47D5-A491-1DD6FCFA6B74@freeswitch.org> Can you clarify which files and line numbers specifically you're talking about. Many of these lines appear in many different files. Some are win32 related some are not. What exactly are you trying to understand? Thanks, Brian On Apr 10, 2012, at 8:27 PM, Richard Lewis Haggard wrote: > I was looking at _thread_cond_timedwait in thread_code. There is a section of the code that I do not understand the purpose of. Could someone please explain to me what the purpose of the other part of the code is? > > Before the code enters a loop it serializes access to the passed in cond structure pointer, increments a counter and makes a local copy of a value before releasing the cond again. > > EnterCriticalSection(&cond->csection); > cond->num_waiting++; > generation = cond->generation; > LeaveCriticalSection(&cond->csection); > > What is the purpose of ?num_waiting? and ?generation?? > > The next part looks odd to me. Why does the code unlock the mutex when what is desired is to lock it? > > apr_thread_mutex_unlock(mutex); > > The code then enters a do { } while (true); loop. > > do { > > The first thing it does is to wait for access to a semaphore. This is a limited time wait and may time out before the event is encountered. The result of this wait is checked later. > > res = WaitForSingleObject(cond->semaphore, timeout_ms); > > The ?cond? structure is going to be modified again and the code needs to have exclusive access. > > EnterCriticalSection(&cond->csection); > > I do not know what the purpose of this is. Can someone explain it to me? What is the purpose of this particular block? > > if (cond->num_wake) { > if (cond->generation != generation) { > cond->num_wake--; > cond->num_waiting--; > rv = APR_SUCCESS; > break; > } else { > wake = 1; > } > } > else if (res != WAIT_OBJECT_0) { > cond->num_waiting--; > rv = APR_TIMEUP; > break; > } > > If neither ?break? executes then the code releases the critical section. The code would be less obtuse (and smaller) if the two ?break? functions were removed. That would save having duplicate LeaveCriticalSection() functions. In any case, the code releases the critical section. > > LeaveCriticalSection(&cond->csection); > > What is the purpose of the next bock? It only executes if the semaphone acquisition was successful but the ?cond->generation? has changed while attempting to determine if it is OK to execute the mutex lock. > > if (wake) { > wake = 0; > ReleaseSemaphore(cond->semaphore, 1, NULL); > } > Note: If the two ?break? statements were removed from above and the following lines added. At this point in the code the critical section would have been released so it would not be necessary to explicitly do so outside of the forever loop. > else { > break; > } > > Under what conditions can ?cond->generation? change? > > The bottom of the loop is encountered. > > } while (1); > > To get here one of the two ?break? statements must have been hit. The critical section is still locked and must be released. Note: if my suggested changes were implemented then it would not be necessary to have this line: > > LeaveCriticalSection(&cond->csection); > > And now, finally, the mutex gets locked. > > apr_thread_mutex_lock(mutex); > > > ============================== > Richard Lewis Haggard > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120411/6d774dde/attachment-0001.html From peter.olsson at visionutveckling.se Wed Apr 11 10:16:13 2012 From: peter.olsson at visionutveckling.se (Peter Olsson) Date: Wed, 11 Apr 2012 06:16:13 +0000 Subject: [Freeswitch-dev] Why is _thread_cond_timedwait written the way it is? In-Reply-To: <004401cd1782$498fa370$dcaeea50$@com> References: <004401cd1782$498fa370$dcaeea50$@com> Message-ID: It seems this is more of a question for the APR developers. The basic idea for APR is to make a lib that works the same way on multiple OS'es, so I guess it might look strange in some cases. However, do you really have a problem that you think might cause issues in FS? /Peter 11 apr 2012 kl. 07:53 skrev "Richard Lewis Haggard" >: I was looking at _thread_cond_timedwait in thread_code. There is a section of the code that I do not understand the purpose of. Could someone please explain to me what the purpose of the other part of the code is? Before the code enters a loop it serializes access to the passed in cond structure pointer, increments a counter and makes a local copy of a value before releasing the cond again. EnterCriticalSection(&cond->csection); cond->num_waiting++; generation = cond->generation; LeaveCriticalSection(&cond->csection); What is the purpose of ?num_waiting? and ?generation?? The next part looks odd to me. Why does the code unlock the mutex when what is desired is to lock it? apr_thread_mutex_unlock(mutex); The code then enters a do { } while (true); loop. do { The first thing it does is to wait for access to a semaphore. This is a limited time wait and may time out before the event is encountered. The result of this wait is checked later. res = WaitForSingleObject(cond->semaphore, timeout_ms); The ?cond? structure is going to be modified again and the code needs to have exclusive access. EnterCriticalSection(&cond->csection); I do not know what the purpose of this is. Can someone explain it to me? What is the purpose of this particular block? if (cond->num_wake) { if (cond->generation != generation) { cond->num_wake--; cond->num_waiting--; rv = APR_SUCCESS; break; } else { wake = 1; } } else if (res != WAIT_OBJECT_0) { cond->num_waiting--; rv = APR_TIMEUP; break; } If neither ?break? executes then the code releases the critical section. The code would be less obtuse (and smaller) if the two ?break? functions were removed. That would save having duplicate LeaveCriticalSection() functions. In any case, the code releases the critical section. LeaveCriticalSection(&cond->csection); What is the purpose of the next bock? It only executes if the semaphone acquisition was successful but the ?cond->generation? has changed while attempting to determine if it is OK to execute the mutex lock. if (wake) { wake = 0; ReleaseSemaphore(cond->semaphore, 1, NULL); } Note: If the two ?break? statements were removed from above and the following lines added. At this point in the code the critical section would have been released so it would not be necessary to explicitly do so outside of the forever loop. else { break; } Under what conditions can ?cond->generation? change? The bottom of the loop is encountered. } while (1); To get here one of the two ?break? statements must have been hit. The critical section is still locked and must be released. Note: if my suggested changes were implemented then it would not be necessary to have this line: LeaveCriticalSection(&cond->csection); And now, finally, the mutex gets locked. apr_thread_mutex_lock(mutex); ============================== Richard Lewis Haggard !DSPAM:4f8519dc32766378388994! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting at freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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 !DSPAM:4f8519dc32766378388994! From Philip.Pirozhkov at ontarget-group.com Wed Apr 11 16:22:20 2012 From: Philip.Pirozhkov at ontarget-group.com (Philip.Pirozhkov at ontarget-group.com) Date: Wed, 11 Apr 2012 07:22:20 -0500 Subject: [Freeswitch-dev] ESL Ruby/Lua extensions build/linking error In-Reply-To: <20120410092416.m2nkclkn74s8ok08@webmail.opentransfer.com> References: <20120409125826.l6qem5g9a800oc0w@webmail.opentransfer.com> <20120410043904.tn5lwyhmo400gks0@webmail.opentransfer.com> <20120410051516.2cfu1udb5co80c4g@webmail.opentransfer.com> <20120410061320.fadijnpfmsw08k0o@webmail.opentransfer.com> <20120410070445.0c175uep34s4k8gc@webmail.opentransfer.com> <20120410092416.m2nkclkn74s8ok08@webmail.opentransfer.com> Message-ID: <20120411072220.1y11ytessgw0cs0s@webmail.opentransfer.com> Quoting Philip.Pirozhkov at ontarget-group.com: I've figured out how to fix esl rubymod build for both Ruby 1.9 and 1.8 Patch attached. BR, Phil > > BR, Phil > > Quoting Philip.Pirozhkov at ontarget-group.com: > >> >> Patch attached. >> I've removed esl_wrap.cpp here since it can always be recreated by swig. >> >> BR, Phil >> >> Quoting Philip.Pirozhkov at ontarget-group.com: >> >>> Ok, I screwed up a bit and forgot to call ./configure. But its output >>> makes me sad: >>> freeswitch]$ ./configuregit format-patch -o . >>> 6f87ac55d6db945f7004b528ef8cb0f3e6c0c6f9 >>> configure: error: cannot find install-sh, install.sh, or shtool in >>> build/config "."/build/config >>> >>> Ok, forget it and let's get back to libs/esl and run >>> make rubymod >>> >>> And here we go, ESL.so is finally here! >>> >>> >>> I'll generalise ruby 1.8/1.9 path configuration and will attach a patch. >>> >>> BR, Phil >>> >>> Quoting Philip.Pirozhkov at ontarget-group.com: >>> >>>> Okay, I've figured out how to point ld to these ruby libs, and the >>>> error is completely different and it's related to missing ESL.so we are >>>> referring to in these buildfiles. >>>> >>>> >>>> So, aside from all these makefile patches: >>>> >>>> 1. Output of autoconf: >>>> freeswitch]$ autoconf >>>> configure.in:122: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call >>>> detected in body >>>> ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... >>>> ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... >>>> ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... >>>> ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... >>>> ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... >>>> ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from... >>>> configure.in:122: the top level >>>> configure.in:16: error: possibly undefined macro: AM_INIT_AUTOMAKE >>>> If this token and others are legitimate, please use m4_pattern_allow. >>>> See the Autoconf documentation. >>>> configure.in:140: error: possibly undefined macro: AM_PROG_CC_C_O >>>> configure.in:141: error: possibly undefined macro: AC_PROG_LIBTOOL >>>> configure.in:356: error: possibly undefined macro: AM_CONDITIONAL >>>> >>>> 2. Output of automake http://pastebin.com/XFFkNxVg >>>> >>>> Or can anybody send me an ESL.so please? >>>> >>>> BR, Phil >>>> >>>> >>>> Quoting Philip.Pirozhkov at ontarget-group.com: >>>> >>>>> Forgot to mention I'm using latest stable Ruby 1.9.3-p0 >>>>> Seems that LOCAL_LDFLAGS is not getting what it expected to, the >>>>> result is >>>>> "-lpthread -lrt -ldl -lcrypt -lm", while it's expecting to get a ruby >>>>> lib dir, prefix it with "-L" and go. But fixing that doesn't help also. >>>>> >>>>> I've tried with Ruby 1.8.7 (with -I and -L patches to makefile only): >>>>> >>>>> ruby]$ make >>>>> swig -module ESL -ruby -c++ -DMULTIPLICITY -I../src/include -o >>>>> esl_wrap.cpp ../ESL.i >>>>> g++ -I/home/pirj/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/i686-linux >>>>> -I../src/include -c esl_wrap.cpp -o esl_wrap.o >>>>> g++ esl_wrap.o -L/home/pirj/.rvm/rubies/ruby-1.8.7-p352/lib -o >>>>> ESL.so -L. >>>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In >>>>> function `_start': >>>>> (.text+0x18): undefined reference to `main' >>>>> esl_wrap.o: In function `rb_class_of': >>>>> esl_wrap.cpp:(.text+0x9e3): undefined reference to `rb_cFixnum' >>>>> esl_wrap.cpp:(.text+0x9f0): undefined reference to `rb_cNilClass' >>>>> esl_wrap.cpp:(.text+0x9fd): undefined reference to `rb_cFalseClass' >>>>> ... >>>>> >>>>> >>>>> P.S. ArchLinux, kernel 3.2.14, gcc 4.7.0, SWIG 2.0.4, ld 2.22.0 >>>>> >>>>> Any hints? >>>>> >>>>> BR, Phil >>>>> >>>>> Quoting Philip.Pirozhkov at ontarget-group.com: >>>>> >>>>>> Hi all, >>>>>> >>>>>> Trying to build ruby and lua extensions from freeswitch/libs/esl: >>>>>> lua]$ make >>>>>> g++ -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o >>>>>> esl_wrap.cpp:1510:17: fatal error: esl.h: No such file or directory >>>>>> compilation terminated. >>>>>> make: *** [esl_wrap.o] Error 1 >>>>>> >>>>>> this can be fixed adding >>>>>> -I../src/include to esl_wrap.o task >>>>>> >>>>>> but has ld error then: >>>>>> lua]$ make >>>>>> g++ -Wno-unused-function -I../src/include -c esl_wrap.cpp -o >>>>>> esl_wrap.o >>>>>> g++ esl_wrap.o -llua -lpthread -o ESL.so -L. >>>>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In >>>>>> function `_start': >>>>>> (.text+0x18): undefined reference to `main' >>>>>> esl_wrap.o: In function `_wrap_new_ESLevent__SWIG_0': >>>>>> esl_wrap.cpp:(.text+0x3974): undefined reference to >>>>>> `ESLevent::ESLevent(char const*, char const*)' >>>>>> esl_wrap.o: In function `_wrap_new_ESLevent__SWIG_1': >>>>>> ... (tl;dr) >>>>>> >>>>>> >>>>>> Same with ruby (even worse), it was failing to find ruby.h and >>>>>> ruby/config.h. I got make esl_wrap.cpp task fixed >>>>>> http://pastebin.com/uKFBZVF3 >>>>>> >>>>>> but there's an ld error again: >>>>>> >>>>>> $ make >>>>>> g++ esl_wrap.o -lpthread -lrt -ldl -lcrypt -lm -L. -rdynamic >>>>>> -Wl,-export-dynamic -o ESL.so -L. >>>>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In >>>>>> function `_start': >>>>>> (.text+0x18): undefined reference to `main' >>>>>> esl_wrap.o: In function `rb_class_of': >>>>>> esl_wrap.cpp:(.text+0x9ed): undefined reference to `rb_cFixnum' >>>>>> esl_wrap.cpp:(.text+0x9fa): undefined reference to `rb_cTrueClass' >>>>>> >>>>>> Anyone successful with this stuff? >>>>>> I'm not experienced with GCC stuff at all. >>>>>> It would be very nice to pack this Ruby ESL to a gem (ruby >>>>>> package manager). >>>>>> >>>>>> BR, Phil >>>>>> >>>>>> _________________________________________________________________________ >>>>>> Professional FreeSWITCH Consulting Services: >>>>>> consulting at freeswitch.org >>>>>> http://www.freeswitchsolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Official FreeSWITCH Sites >>>>>> http://www.freeswitch.org >>>>>> http://wiki.freeswitch.org >>>>>> http://www.cluecon.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 -------------- A non-text attachment was scrubbed... Name: 0001-rubymod-build-fixed-and-unified-for-ruby-1.8-1.9.patch Type: text/x-patch Size: 1467 bytes Desc: not available Url : http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120411/c3c71345/attachment.bin From Philip.Pirozhkov at ontarget-group.com Wed Apr 11 17:34:49 2012 From: Philip.Pirozhkov at ontarget-group.com (Philip.Pirozhkov at ontarget-group.com) Date: Wed, 11 Apr 2012 08:34:49 -0500 Subject: [Freeswitch-dev] ESL Ruby/Lua extensions build/linking error In-Reply-To: <20120411072220.1y11ytessgw0cs0s@webmail.opentransfer.com> References: <20120409125826.l6qem5g9a800oc0w@webmail.opentransfer.com> <20120410043904.tn5lwyhmo400gks0@webmail.opentransfer.com> <20120410051516.2cfu1udb5co80c4g@webmail.opentransfer.com> <20120410061320.fadijnpfmsw08k0o@webmail.opentransfer.com> <20120410070445.0c175uep34s4k8gc@webmail.opentransfer.com> <20120410092416.m2nkclkn74s8ok08@webmail.opentransfer.com> <20120411072220.1y11ytessgw0cs0s@webmail.opentransfer.com> Message-ID: <20120411083449.eyssxon5j44ckg08@webmail.opentransfer.com> Sorry for being stupid and confusing everyone, ESL luamod builds fine. But ESL rubymod build from mainline fails, and my patch fixes that. It would be very nice to apply it upstream. BR, Phil Quoting Philip.Pirozhkov at ontarget-group.com: > Quoting Philip.Pirozhkov at ontarget-group.com: > > I've figured out how to fix esl rubymod build for both Ruby 1.9 and 1.8 > Patch attached. > > BR, Phil > >> >> BR, Phil >> >> Quoting Philip.Pirozhkov at ontarget-group.com: >> >>> >>> Patch attached. >>> I've removed esl_wrap.cpp here since it can always be recreated by swig. >>> >>> BR, Phil >>> >>> Quoting Philip.Pirozhkov at ontarget-group.com: >>> >>>> Ok, I screwed up a bit and forgot to call ./configure. But its output >>>> makes me sad: >>>> freeswitch]$ ./configuregit format-patch -o . >>>> 6f87ac55d6db945f7004b528ef8cb0f3e6c0c6f9 >>>> configure: error: cannot find install-sh, install.sh, or shtool in >>>> build/config "."/build/config >>>> >>>> Ok, forget it and let's get back to libs/esl and run >>>> make rubymod >>>> >>>> And here we go, ESL.so is finally here! >>>> >>>> >>>> I'll generalise ruby 1.8/1.9 path configuration and will attach a patch. >>>> >>>> BR, Phil >>>> >>>> Quoting Philip.Pirozhkov at ontarget-group.com: >>>> >>>>> Okay, I've figured out how to point ld to these ruby libs, and the >>>>> error is completely different and it's related to missing ESL.so we are >>>>> referring to in these buildfiles. >>>>> >>>>> >>>>> So, aside from all these makefile patches: >>>>> >>>>> 1. Output of autoconf: >>>>> freeswitch]$ autoconf >>>>> configure.in:122: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call >>>>> detected in body >>>>> ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... >>>>> ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is >>>>> expanded from... >>>>> ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... >>>>> ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... >>>>> ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... >>>>> ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from... >>>>> configure.in:122: the top level >>>>> configure.in:16: error: possibly undefined macro: AM_INIT_AUTOMAKE >>>>> If this token and others are legitimate, please use m4_pattern_allow. >>>>> See the Autoconf documentation. >>>>> configure.in:140: error: possibly undefined macro: AM_PROG_CC_C_O >>>>> configure.in:141: error: possibly undefined macro: AC_PROG_LIBTOOL >>>>> configure.in:356: error: possibly undefined macro: AM_CONDITIONAL >>>>> >>>>> 2. Output of automake http://pastebin.com/XFFkNxVg >>>>> >>>>> Or can anybody send me an ESL.so please? >>>>> >>>>> BR, Phil >>>>> >>>>> >>>>> Quoting Philip.Pirozhkov at ontarget-group.com: >>>>> >>>>>> Forgot to mention I'm using latest stable Ruby 1.9.3-p0 >>>>>> Seems that LOCAL_LDFLAGS is not getting what it expected to, >>>>>> the result is >>>>>> "-lpthread -lrt -ldl -lcrypt -lm", while it's expecting to get a ruby >>>>>> lib dir, prefix it with "-L" and go. But fixing that doesn't help also. >>>>>> >>>>>> I've tried with Ruby 1.8.7 (with -I and -L patches to makefile only): >>>>>> >>>>>> ruby]$ make >>>>>> swig -module ESL -ruby -c++ -DMULTIPLICITY -I../src/include -o >>>>>> esl_wrap.cpp ../ESL.i >>>>>> g++ -I/home/pirj/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/i686-linux >>>>>> -I../src/include -c esl_wrap.cpp -o esl_wrap.o >>>>>> g++ esl_wrap.o -L/home/pirj/.rvm/rubies/ruby-1.8.7-p352/lib >>>>>> -o ESL.so -L. >>>>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In >>>>>> function `_start': >>>>>> (.text+0x18): undefined reference to `main' >>>>>> esl_wrap.o: In function `rb_class_of': >>>>>> esl_wrap.cpp:(.text+0x9e3): undefined reference to `rb_cFixnum' >>>>>> esl_wrap.cpp:(.text+0x9f0): undefined reference to `rb_cNilClass' >>>>>> esl_wrap.cpp:(.text+0x9fd): undefined reference to `rb_cFalseClass' >>>>>> ... >>>>>> >>>>>> >>>>>> P.S. ArchLinux, kernel 3.2.14, gcc 4.7.0, SWIG 2.0.4, ld 2.22.0 >>>>>> >>>>>> Any hints? >>>>>> >>>>>> BR, Phil >>>>>> >>>>>> Quoting Philip.Pirozhkov at ontarget-group.com: >>>>>> >>>>>>> Hi all, >>>>>>> >>>>>>> Trying to build ruby and lua extensions from freeswitch/libs/esl: >>>>>>> lua]$ make >>>>>>> g++ -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o >>>>>>> esl_wrap.cpp:1510:17: fatal error: esl.h: No such file or directory >>>>>>> compilation terminated. >>>>>>> make: *** [esl_wrap.o] Error 1 >>>>>>> >>>>>>> this can be fixed adding >>>>>>> -I../src/include to esl_wrap.o task >>>>>>> >>>>>>> but has ld error then: >>>>>>> lua]$ make >>>>>>> g++ -Wno-unused-function -I../src/include -c esl_wrap.cpp >>>>>>> -o esl_wrap.o >>>>>>> g++ esl_wrap.o -llua -lpthread -o ESL.so -L. >>>>>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In >>>>>>> function `_start': >>>>>>> (.text+0x18): undefined reference to `main' >>>>>>> esl_wrap.o: In function `_wrap_new_ESLevent__SWIG_0': >>>>>>> esl_wrap.cpp:(.text+0x3974): undefined reference to >>>>>>> `ESLevent::ESLevent(char const*, char const*)' >>>>>>> esl_wrap.o: In function `_wrap_new_ESLevent__SWIG_1': >>>>>>> ... (tl;dr) >>>>>>> >>>>>>> >>>>>>> Same with ruby (even worse), it was failing to find ruby.h and >>>>>>> ruby/config.h. I got make esl_wrap.cpp task fixed >>>>>>> http://pastebin.com/uKFBZVF3 >>>>>>> >>>>>>> but there's an ld error again: >>>>>>> >>>>>>> $ make >>>>>>> g++ esl_wrap.o -lpthread -lrt -ldl -lcrypt -lm -L. -rdynamic >>>>>>> -Wl,-export-dynamic -o ESL.so -L. >>>>>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../crt1.o: In >>>>>>> function `_start': >>>>>>> (.text+0x18): undefined reference to `main' >>>>>>> esl_wrap.o: In function `rb_class_of': >>>>>>> esl_wrap.cpp:(.text+0x9ed): undefined reference to `rb_cFixnum' >>>>>>> esl_wrap.cpp:(.text+0x9fa): undefined reference to `rb_cTrueClass' >>>>>>> >>>>>>> Anyone successful with this stuff? >>>>>>> I'm not experienced with GCC stuff at all. >>>>>>> It would be very nice to pack this Ruby ESL to a gem (ruby >>>>>>> package manager). >>>>>>> >>>>>>> BR, Phil >>>>>>> >>>>>>> _________________________________________________________________________ >>>>>>> Professional FreeSWITCH Consulting Services: >>>>>>> consulting at freeswitch.org >>>>>>> http://www.freeswitchsolutions.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Official FreeSWITCH Sites >>>>>>> http://www.freeswitch.org >>>>>>> http://wiki.freeswitch.org >>>>>>> http://www.cluecon.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 >>>>>>> From freeswitch-list at puzzled.xs4all.nl Wed Apr 11 17:44:05 2012 From: freeswitch-list at puzzled.xs4all.nl (Patrick Lists) Date: Wed, 11 Apr 2012 15:44:05 +0200 Subject: [Freeswitch-dev] ESL Ruby/Lua extensions build/linking error In-Reply-To: <20120411083449.eyssxon5j44ckg08@webmail.opentransfer.com> References: <20120409125826.l6qem5g9a800oc0w@webmail.opentransfer.com> <20120410043904.tn5lwyhmo400gks0@webmail.opentransfer.com> <20120410051516.2cfu1udb5co80c4g@webmail.opentransfer.com> <20120410061320.fadijnpfmsw08k0o@webmail.opentransfer.com> <20120410070445.0c175uep34s4k8gc@webmail.opentransfer.com> <20120410092416.m2nkclkn74s8ok08@webmail.opentransfer.com> <20120411072220.1y11ytessgw0cs0s@webmail.opentransfer.com> <20120411083449.eyssxon5j44ckg08@webmail.opentransfer.com> Message-ID: <4F858AA5.1090706@puzzled.xs4all.nl> On 04/11/2012 03:34 PM, Philip.Pirozhkov at ontarget-group.com wrote: > Sorry for being stupid and confusing everyone, ESL luamod builds fine. > But ESL rubymod build from mainline fails, and my patch fixes that. It > would be very nice to apply it upstream. Although this is the -dev list and not the -users list I'm assuming that the way to handle patches is still the same: please create a ticket on Jira and attach the patch. If the guideline of creating a Jira for patches does not apply to the -dev list then please accept my apologies for the noise. Regards, Patrick From krice at freeswitch.org Wed Apr 11 17:47:17 2012 From: krice at freeswitch.org (Ken Rice) Date: Wed, 11 Apr 2012 08:47:17 -0500 Subject: [Freeswitch-dev] ESL Ruby/Lua extensions build/linking error In-Reply-To: <4F858AA5.1090706@puzzled.xs4all.nl> Message-ID: It applies... Patches, bug reports etc should always got to a Jira ticket. This allows us to track the patch and any discussion along with it. Also if for whatever reason there are multiple iterations of a patch prior to it being committed it can be seen there K On 4/11/12 8:44 AM, "Patrick Lists" wrote: > On 04/11/2012 03:34 PM, Philip.Pirozhkov at ontarget-group.com wrote: >> Sorry for being stupid and confusing everyone, ESL luamod builds fine. >> But ESL rubymod build from mainline fails, and my patch fixes that. It >> would be very nice to apply it upstream. > > Although this is the -dev list and not the -users list I'm assuming that > the way to handle patches is still the same: please create a ticket on > Jira and attach the patch. > > If the guideline of creating a Jira for patches does not apply to the > -dev list then please accept my apologies for the noise. > > Regards, > Patrick > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 From anton.vazir at gmail.com Sat Apr 14 22:28:12 2012 From: anton.vazir at gmail.com (Anton VG) Date: Sat, 14 Apr 2012 23:28:12 +0500 Subject: [Freeswitch-dev] Distorted sound is using record_session with no RECORD_STEREO set, BUG or I'm missing something? Message-ID: Hi, Experimenting with call recording, and noticed that regardless the format used, i'm getting distorted sound in recorings, if there is no RECORD_STEREO set. Is there any prerequsites or this is the bug I should fill in JIRA? Also FS segaults if I try recording file to adpcm format. It records a few frames, and when audio from leg-B comes in (or early media) it segfaults. FS trunk from 31 march 2012. From anthony.minessale at gmail.com Sun Apr 15 00:13:56 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Sat, 14 Apr 2012 15:13:56 -0500 Subject: [Freeswitch-dev] Distorted sound is using record_session with no RECORD_STEREO set, BUG or I'm missing something? In-Reply-To: References: Message-ID: That is atypical so file Jira and provide as much detail as possible since this is probably an edge case. On Apr 14, 2012 1:32 PM, "Anton VG" wrote: > Hi, > Experimenting with call recording, and noticed that regardless the > format used, i'm getting distorted sound in recorings, if there is no > RECORD_STEREO set. > Is there any prerequsites or this is the bug I should fill in JIRA? > > Also FS segaults if I try recording file to adpcm format. It records a > few frames, and when audio from leg-B comes in (or early media) it > segfaults. > > FS trunk from 31 march 2012. > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120414/1532836a/attachment.html From anton.vazir at gmail.com Sun Apr 15 10:33:33 2012 From: anton.vazir at gmail.com (Anton VG) Date: Sun, 15 Apr 2012 11:33:33 +0500 Subject: [Freeswitch-dev] Distorted sound is using record_session with no RECORD_STEREO set, BUG or I'm missing something? In-Reply-To: References: Message-ID: Bugs filled. FS-4114 FS-4115 More test shows it have little relation to record_stereo as any session might be distorted and other might be normal. no clear dependency. Tested on 31march GIT and on latest head, both behave the same. 2012/4/15 Anthony Minessale : > That is atypical so file Jira and provide as much detail as possible since > this is probably an edge case. > > On Apr 14, 2012 1:32 PM, "Anton VG" wrote: >> >> Hi, >> Experimenting with call recording, and noticed that regardless the >> format used, i'm getting distorted sound in recorings, if there is no >> RECORD_STEREO set. >> Is there any prerequsites or this is the bug I should fill in JIRA? >> >> Also FS segaults if I try recording file to adpcm format. It records a >> few frames, and when audio from leg-B comes in (or early media) it >> segfaults. >> >> FS trunk from 31 march 2012. >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.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 > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 > From msc at freeswitch.org Mon Apr 16 20:17:22 2012 From: msc at freeswitch.org (Michael Collins) Date: Mon, 16 Apr 2012 09:17:22 -0700 Subject: [Freeswitch-dev] FreeSWITCH Community Conference Call: DNS Best Practices in a VoIP Environment Message-ID: Greetings, We'd like to have everyone join us on Wednesday, April 18th for a great presentation to be given by our very own Travis Cross. He will be discussing DNS Best Practices in a VoIP Environment. I'm definitely looking forward to this discussion as this is an important topic and formal documentation isn't too widely dispensed at the moment. I will be taking notes on this discussion and creating a corresponding wiki page. The agenda page is here: http://wiki.freeswitch.org/wiki/FS_weekly_2012_04_18 To make this discussion more meaningful I would like everyone to be willing to share their personal experiences and knowledge, as well as any questions that they have on the subject. We have a number of community members whose skill we can draw upon, and the more questions we ask, the more information we can collect and put into formal documentation. Talk to you this Wednesday! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120416/8ddedd0e/attachment.html From manieq at wp.eu Tue Apr 17 20:14:51 2012 From: manieq at wp.eu (Mariusz Czulada) Date: Tue, 17 Apr 2012 18:14:51 +0200 Subject: [Freeswitch-dev] Usage of some core channel functions Message-ID: <4f8d96fb3c08e1.98410537@wp.pl> Hi all, While trying to add some features to mod_conference I found two functions for access channel data: * switch_channel_get_variable(channel, "conference_controls"); This one is clear, but also * switch_channel_get_private(channel, "_conference_autocall_list_"); Can somebody clarify to me (and maybe to others) what is the purpose of this mechanism? What kind of channel data are generally manipulated this way? Are there useable/settable from application level (dialplan or scripts)? Regards, Mariusz From cmrienzo at gmail.com Tue Apr 17 22:30:16 2012 From: cmrienzo at gmail.com (cmrienzo at gmail.com) Date: Tue, 17 Apr 2012 14:30:16 -0400 Subject: [Freeswitch-dev] Usage of some core channel functions In-Reply-To: <4f8d96fb3c08e1.98410537@wp.pl> References: <4f8d96fb3c08e1.98410537@wp.pl> Message-ID: Channel variables are strings that can be set/get just about everywhere in FreeSWITCH. Often used in the dialplan to tweak behavior of a dialplan app. Private channel data is used by the module C code to store a pointer to some data that is referenced by a name. This data would exist in the scope of the channel that it is set on. One typical example is to store a media bug as private data so that it can be later removed from a session. On Apr 17, 2012, at 12:14, "Mariusz Czulada" wrote: > Hi all, > > While trying to add some features to mod_conference I found two functions for access channel data: > > * switch_channel_get_variable(channel, "conference_controls"); > > This one is clear, but also > > * switch_channel_get_private(channel, "_conference_autocall_list_"); > > Can somebody clarify to me (and maybe to others) what is the purpose of this mechanism? What kind of channel data are generally manipulated this way? Are there useable/settable from application level (dialplan or scripts)? > > Regards, > > Mariusz > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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 From gmaruzz at gmail.com Fri Apr 20 19:58:34 2012 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Fri, 20 Apr 2012 17:58:34 +0200 Subject: [Freeswitch-dev] mod_gsmopen, now with USB dongle support (SMSs and Voice calls to/from Cellular Networks) Message-ID: Hello FreeSWITCHers, the new version of GSMopen is basically usable, and the docs at the wiki almost up to date (barring the details of the config file, you don't need them now :) ). Good news is that GSMopen now supports Huawei E1550 and compatible dongles, that are cheap (roughly $20 on Ebay) and reliable. Thanks to dongle's pcm serial streaming via USB, no more need for sound hacks, ALSA, or any sound subsystem (and cpu load). All is digital. It's reasonable to expect to be able to support many dozen concurrent calls per machine (dongles are USB 2.0 compliant). Works well right now on Linux and Windows, and would probably works on *BSD and OSX with minor tweaks. Code will be polished, refactured, rewritten, etc. But the thing is there. So, please update your source code to latest git, have a look at the wiki page, build mod_gsmopen, connect a dongle to your machine, and begin catching bugs and documentation inaccuracies. And asking for features for your use cases. Thanks to you all in advance, it's a pleasure and an honor to be part of this community. http://wiki.freeswitch.org/wiki/Gsmopen -giovanni -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 From kyle.king at quentustech.com Fri Apr 20 20:17:27 2012 From: kyle.king at quentustech.com (Kyle King) Date: Fri, 20 Apr 2012 09:17:27 -0700 Subject: [Freeswitch-dev] FreeSWITCH mod_fail2ban Message-ID: <4F918C17.4030909@quentustech.com> Hello everyone, I've written a FreeSWITCH module for the application Fail2ban. It currently logs all inbound registration attempts, and failed registrations to a log file "/usr/local/freeswitch/log/fail2ban.log". The advantage to using this module for fail2ban rather than the standard FS log is that you don't have to keep your server log level as verbose. If anyone is willing to look it over and give me feedback please do so at https://github.com/kyconquers/freeswitch-mod_fail2ban -- Kyle A. King Quentus Technologies, INC Cell: 703-635-9512 Work: 253-218-6030 Fax: 206-462-1861 Email: kyle.king at quentustech.com From gmaruzz at gmail.com Fri Apr 20 21:35:59 2012 From: gmaruzz at gmail.com (Giovanni Maruzzelli) Date: Fri, 20 Apr 2012 19:35:59 +0200 Subject: [Freeswitch-dev] [Freeswitch-users] mod_gsmopen, now with USB dongle support (SMSs and Voice calls to/from Cellular Networks) In-Reply-To: References: Message-ID: On 4/20/12, Wesley Akio wrote: > Hello Giovanni, > > I'm off to buy one of those and will let you know how it goes... > > In a side note, how reliable so far? Hardware is very reliable and heavy duty. Code will become better :) > > [ ]s, > > Wesley Akio > TuntsCorp.com > > > On Fri, Apr 20, 2012 at 12:58 PM, Giovanni Maruzzelli > wrote: > >> Hello FreeSWITCHers, >> >> the new version of GSMopen is basically usable, and the docs at the >> wiki almost up to date (barring the details of the config file, you >> don't need them now :) ). >> >> Good news is that GSMopen now supports Huawei E1550 and compatible >> dongles, that are cheap (roughly $20 on Ebay) and reliable. >> >> Thanks to dongle's pcm serial streaming via USB, no more need for >> sound hacks, ALSA, or any sound subsystem (and cpu load). All is >> digital. >> >> It's reasonable to expect to be able to support many dozen concurrent >> calls per machine (dongles are USB 2.0 compliant). >> >> Works well right now on Linux and Windows, and would probably works on >> *BSD and OSX with minor tweaks. >> >> Code will be polished, refactured, rewritten, etc. But the thing is there. >> >> So, please update your source code to latest git, have a look at the >> wiki page, build mod_gsmopen, connect a dongle to your machine, and >> begin catching bugs and documentation inaccuracies. And asking for >> features for your use cases. >> >> Thanks to you all in advance, it's a pleasure and an honor to be part >> of this community. >> >> http://wiki.freeswitch.org/wiki/Gsmopen >> >> -giovanni >> >> >> -- >> Sincerely, >> >> Giovanni Maruzzelli >> Cell : +39-347-2665618 >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting at freeswitch.org >> http://www.freeswitchsolutions.com >> >> >> >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> 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 >> > -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 From krice at freeswitch.org Fri Apr 20 21:37:53 2012 From: krice at freeswitch.org (Ken Rice) Date: Fri, 20 Apr 2012 12:37:53 -0500 Subject: [Freeswitch-dev] [Freeswitch-users] mod_gsmopen, now with USB dongle support (SMSs and Voice calls to/from Cellular Networks) In-Reply-To: Message-ID: Hey Giovanni is there a good usb dongle that's widely available on somewhere like Amazon.com that you can recommend? K On 4/20/12 12:35 PM, "Giovanni Maruzzelli" wrote: > On 4/20/12, Wesley Akio wrote: >> Hello Giovanni, >> >> I'm off to buy one of those and will let you know how it goes... >> >> In a side note, how reliable so far? > > Hardware is very reliable and heavy duty. > Code will become better :) > > >> >> [ ]s, >> >> Wesley Akio >> TuntsCorp.com >> >> >> On Fri, Apr 20, 2012 at 12:58 PM, Giovanni Maruzzelli >> wrote: >> >>> Hello FreeSWITCHers, >>> >>> the new version of GSMopen is basically usable, and the docs at the >>> wiki almost up to date (barring the details of the config file, you >>> don't need them now :) ). >>> >>> Good news is that GSMopen now supports Huawei E1550 and compatible >>> dongles, that are cheap (roughly $20 on Ebay) and reliable. >>> >>> Thanks to dongle's pcm serial streaming via USB, no more need for >>> sound hacks, ALSA, or any sound subsystem (and cpu load). All is >>> digital. >>> >>> It's reasonable to expect to be able to support many dozen concurrent >>> calls per machine (dongles are USB 2.0 compliant). >>> >>> Works well right now on Linux and Windows, and would probably works on >>> *BSD and OSX with minor tweaks. >>> >>> Code will be polished, refactured, rewritten, etc. But the thing is there. >>> >>> So, please update your source code to latest git, have a look at the >>> wiki page, build mod_gsmopen, connect a dongle to your machine, and >>> begin catching bugs and documentation inaccuracies. And asking for >>> features for your use cases. >>> >>> Thanks to you all in advance, it's a pleasure and an honor to be part >>> of this community. >>> >>> http://wiki.freeswitch.org/wiki/Gsmopen >>> >>> -giovanni >>> >>> >>> -- >>> Sincerely, >>> >>> Giovanni Maruzzelli >>> Cell : +39-347-2665618 >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting at freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> >>> >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> 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 krice at freeswitch.org Fri Apr 20 21:40:08 2012 From: krice at freeswitch.org (Ken Rice) Date: Fri, 20 Apr 2012 12:40:08 -0500 Subject: [Freeswitch-dev] FreeSWITCH mod_fail2ban In-Reply-To: <4F918C17.4030909@quentustech.com> Message-ID: Hey Kyle Love this project... I would make a few suggestions... Possibly could help with a couple of patches can you find me on IRC as SWK? K On 4/20/12 11:17 AM, "Kyle King" wrote: > Hello everyone, I've written a FreeSWITCH module for the application > Fail2ban. It currently logs all inbound registration attempts, and > failed registrations to a log file > "/usr/local/freeswitch/log/fail2ban.log". The advantage to using this module > for fail2ban rather than the standard FS log is that you don't have to > keep your server log level as verbose. > > If anyone is willing to look it over and give me feedback please do so > at https://github.com/kyconquers/freeswitch-mod_fail2ban From gabe at gundy.org Fri Apr 20 21:58:48 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Fri, 20 Apr 2012 11:58:48 -0600 Subject: [Freeswitch-dev] FreeSWITCH mod_fail2ban In-Reply-To: <4F918C17.4030909@quentustech.com> References: <4F918C17.4030909@quentustech.com> Message-ID: On Fri, Apr 20, 2012 at 10:17 AM, Kyle King wrote: > If anyone is willing to look it over and give me feedback please do so > at https://github.com/kyconquers/freeswitch-mod_fail2ban Awesome... I'll be checking it out today. Thanks! From mitul at enterux.com Sat Apr 21 00:14:16 2012 From: mitul at enterux.com (Mitul Limbani) Date: Sat, 21 Apr 2012 01:44:16 +0530 Subject: [Freeswitch-dev] FreeSWITCH mod_fail2ban In-Reply-To: References: <4F918C17.4030909@quentustech.com> Message-ID: Much awaited hack :) Mitul Limbani On Fri, Apr 20, 2012 at 11:28 PM, Gabriel Gunderson wrote: > On Fri, Apr 20, 2012 at 10:17 AM, Kyle King > wrote: > > If anyone is willing to look it over and give me feedback please do so > > at https://github.com/kyconquers/freeswitch-mod_fail2ban > > Awesome... I'll be checking it out today. Thanks! > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120421/26215847/attachment.html From mercutio.viz at gmail.com Mon Apr 23 20:35:02 2012 From: mercutio.viz at gmail.com (Michael Collins) Date: Mon, 23 Apr 2012 09:35:02 -0700 Subject: [Freeswitch-dev] Test message, please ignore Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120423/85fd91b6/attachment.html From marketing at cluecon.com Mon Apr 23 21:58:40 2012 From: marketing at cluecon.com (Michael Collins) Date: Mon, 23 Apr 2012 10:58:40 -0700 Subject: [Freeswitch-dev] FreeSWITCH News and Notes Message-ID: Greetings everyone. We have several items for your consideration this week: - The FreeSWITCH Community Conference Callwill take place at 1PM Eastern, 10AM Pacific this coming Wednesday April 25. We will be having an informal discussion about executing dialplan applications or APIs using the "execute_on" and "api_on" family of channel variables. We look forward to having you there with us. - The authors of the FreeSWITCH Cookbook will be taking part in an interview on the weekly VUC call this Friday April 27. - Vestec still has some ASR starter kits to give away to FreeSWITCH users around the world. If you have need of speech recognition in your telephony application then contact marketing at cluecon.com and ask for more information. Vestec already supports languages in 10 of the largest economies of the world and more languages are in development. Please make plans to support both conference calls this week. If you've never been to either one I highly recommend checking them out. They are very interesting. In fact, they are a small taste of what ClueCon is like: hanging out with fellow telecom enthusiasts and having technical discussions. It really is a lot of fun. Speaking of ClueCon, be sure to register today. Don't forget that if you register in April you get extra entries in the giveaway drawings we have throughout the conference. Have a great week! -- Michael S Collins ClueCon Team http://www.cluecon.com 877-7-4ACLUE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120423/9398176c/attachment-0001.html From dxj19831029 at gmail.com Wed Apr 25 06:42:22 2012 From: dxj19831029 at gmail.com (Xijing Dai) Date: Wed, 25 Apr 2012 10:42:22 +0800 Subject: [Freeswitch-dev] Fwd: embed freeswitch In-Reply-To: References: Message-ID: hey, I am newbie to the freeswitch. I am wondering if it's possible to use extension modules after I embeded freeswitch into my app. Anyone? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120425/7d9b998f/attachment.html From msc at freeswitch.org Wed Apr 25 19:26:28 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 25 Apr 2012 08:26:28 -0700 Subject: [Freeswitch-dev] Reminder: FreeSWITCH Conference Call Today Message-ID: Just reminding everyone of our call today: http://wiki.freeswitch.org/wiki/FS_weekly_2012_04_25 We will be discussing the execution of dialplan apps and APIs using the "execute_on" and "api_on" channel variables. We'll also have a lively discussion about why shouldn't do billing stuff inline and why people do it anyway. :) See you at 1PM Eastern, 10AM Pacific -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120425/74405523/attachment.html From william.king at quentustech.com Thu Apr 26 11:10:30 2012 From: william.king at quentustech.com (William King) Date: Thu, 26 Apr 2012 00:10:30 -0700 Subject: [Freeswitch-dev] Fwd: embed freeswitch In-Reply-To: References: Message-ID: <4F98F4E6.10807@quentustech.com> If you are asking if it is possible to load freeswitch modules if your application is using libfreeswitch then yes. That does work. William King Senior Engineer Quentus Technologies, INC 1037 NE 65th St Suite 273 Seattle, WA 98115 Main: (877) 211-9337 Office: (206) 388-4772 Cell: (253) 686-5518 william.king at quentustech.com On 04/24/2012 07:42 PM, Xijing Dai wrote: > hey, > > I am newbie to the freeswitch. I am wondering if it's possible to use > extension modules after I embeded freeswitch into my app. > > Anyone? > > Cheers > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120426/8bf9c2cc/attachment.html From dxj19831029 at gmail.com Thu Apr 26 14:35:30 2012 From: dxj19831029 at gmail.com (Xijing Dai) Date: Thu, 26 Apr 2012 18:35:30 +0800 Subject: [Freeswitch-dev] Fwd: embed freeswitch In-Reply-To: <4F98F4E6.10807@quentustech.com> References: <4F98F4E6.10807@quentustech.com> Message-ID: thanks. :) that is wat i want. On Thu, Apr 26, 2012 at 3:10 PM, William King wrote: > If you are asking if it is possible to load freeswitch modules if your > application is using libfreeswitch then yes. That does work. > > William King > Senior Engineer > Quentus Technologies, INC > 1037 NE 65th St Suite 273 > Seattle, WA 98115 > Main: (877) 211-9337 > Office: (206) 388-4772 > Cell: (253) 686-5518william.king at quentustech.com > > > On 04/24/2012 07:42 PM, Xijing Dai wrote: > > hey, > > I am newbie to the freeswitch. I am wondering if it's possible to use > extension modules after I embeded freeswitch into my app. > > Anyone? > > Cheers > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com > > > > Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com > > 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 > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting at freeswitch.org > http://www.freeswitchsolutions.com > > > > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.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/20120426/e9669b62/attachment.html From steve at comrex.com Thu Apr 26 22:47:15 2012 From: steve at comrex.com (Steve Richardson) Date: Thu, 26 Apr 2012 14:47:15 -0400 Subject: [Freeswitch-dev] mod_isac questions Message-ID: <4F999833.6070909@comrex.com> Hello all, I've been trying to work with the reasonably new mod_isac over the last couple of days, with no luck. We are launching a smartphone app as a companion to our hardware product (which is based on FreeSWITCH). The app is basically a really simplified SIP client that supports G.722 and iSAC for wideband audio calls. I can make G.722 calls into FreeSWITCH and they work fine. Unfortunately, I haven't been as lucky with iSAC. I have a few different failure scenarios, all of which tested with the latest git this morning -- FreeSWITCH Version 1.1.beta1 (git-7a147e4 2012-04-25 17-14-55 -0500): Scenario 1: With my FS codec-prefs set to "ISAC,G722,...", the remote end offers up "a=rtpmap:96 ISAC/16000" in the INVITE. When I answer the call by bridging it to a conference, FS unilaterally decides that "a=rtpmap:96 ISAC/32000" is more to its liking in the SDP. Though FS thinks it has answered the call, the remote end stays ringing (playing ringback), and no connection ever actually seems to happen. I have to individually hang up each end of the call; if I just hang up one end, the call remains in some half-active state. Scenario 2: If I change the codec-prefs to "ISAC at 16000h", things go a little bit better in terms of the codec negotiation, but the call immediately drops after this happens: 2012-04-27 01:27:39.490028 [NOTICE] mod_conference.c:6228 Channel [sofia/external-4/Steve at comrex2.onsip.com] has been answered 2012-04-27 01:27:39.490028 [DEBUG] sofia.c:5602 Channel sofia/external-4/Steve at comrex2.onsip.com entering state [completed][200] 2012-04-27 01:27:39.490028 [DEBUG] mod_conference.c:6111 Raw Codec Activation Success L16 at 16000hz 1 channel 60ms 2012-04-27 01:27:39.490028 [WARNING] switch_core_codec.c:691 Codec L16 Exists but not at the desired implementation. 48000hz 60ms 2012-04-27 01:27:39.490028 [DEBUG] mod_conference.c:6159 Raw Codec Activation Failed L16 at 48000hz 1 channel 60ms 2012-04-27 01:27:39.490028 [WARNING] switch_core_codec.c:789 Codec is not initialized! The conference is set up at 48kHz/20ms, if that matters any. It has a mod_portaudio participant in it, also running at 48kHz/20ms. Scenario 3: If I change the codec-prefs to "ISAC at 16000h@60i", things behave exactly as scenario #2, leading me to think that's what the default value is when the "@##i" suffix is left off. Scenario 4: If I change the codec-prefs to "ISAC at 16000h@30i", things work marginally 'better,' but still aren't working properly. In that case, the call is established, but I can get no audio in the FS->remote direction, and the audio in the other direction is badly mangled. It sounds like periodic short frames of working audio, interleaved with silence frames, and the delay seems to spool out more and more over a very short period of time. "Choppy" is the layman description I would use. So, a few questions: - Given that iSAC is an adaptive codec that can place one or two frames (30ms or 60ms) of audio data into an RTP payload, how does this play with FS seeming to assume a fixed frame size? - What was used to test mod_isac when it was written? There are not a lot of soft phones out there that I've found that support the iSAC codec, so it's hard to come up with a known-good reference for testing. - Any other advice for things to test or try out? thanks, Steve -- *Stephen Richardson Senior Software Engineer* Comrex Corporation 19 Pine Rd Devens MA 01434 USA v 978.784.1764 f 978.784.1717 steve at comrex.com http://www.comrex.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120426/9e14061c/attachment-0001.html From cw_freeswitch at wiedmann.org Fri Apr 27 20:55:04 2012 From: cw_freeswitch at wiedmann.org (Christian Wiedmann) Date: Fri, 27 Apr 2012 09:55:04 -0700 Subject: [Freeswitch-dev] newbie build problem: libapr configure hangs on pthreads detection Message-ID: I'm new to FreeSWITCH and am in the process of trying to build the system on Ubunto 11.10. I grabbed the source using git. The problem I ran into is that configure would hang when detecting "CFLAGS needed for pthreads" in libs/apr. When I did a ps after trying a couple of times, I discovered a bunch of defunct conftest processes. I added a pthread_join() to the conftest code used for the detection and the configure was able to complete. My question is whether this behavior indicates an incompatibility or missing library on my system. Should I be worried about future issues on this system? Thanks, -Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120427/cba4e415/attachment.html From marketing at cluecon.com Mon Apr 30 20:48:04 2012 From: marketing at cluecon.com (Michael Collins) Date: Mon, 30 Apr 2012 09:48:04 -0700 Subject: [Freeswitch-dev] ClueCon 2012 Preview: Vestec Automatic Speech Recognition Message-ID: Greetings! This week we have a small taste of ClueCon 2012: The Vestec team will be joining us on the FreeSWITCH community conferencecall this Wednesday, May 2. Vestec produces high-quality automatic speech recognition (ASR) software for open source telephony projects like Asterisk and FreeSWITCH. We look forward to having a Vestec engineer on the call with us this week to give us a technical look at their product and to answer community questions. Vestec will also be at ClueCon 2012 as a Silver Sponsor and have committed to being available for one-on-one consulting for those wanting to discuss their specific projects. Yet another reason to join us at ClueCon this August! The ClueCon 2012 speakers list is starting to take shape. We have a number of "fan-favorites" schedule as well as a few new surprises. We are pleased to have returning for a third consecutive year Mr. Philip Zimmermann, inventor of PGP and designer of the the ZRTP secure VoIP protocol. As we've previously announced, ZRTP is now included in the FreeSWITCH distribution. Philip will be discussing VoIP security in general, as well developments with the ZRTP project. Register for ClueCon 2012 today and take advantage of ClueCon Power Play, which gives you extra entries in the world famous giveaways we have each year. Feel free to contact us if you have any questions about attending ClueCon, sponsoring, or speaking at the event. We look forward to seeing you there - in less than 100 days! -- Michael S Collins ClueCon Team http://www.cluecon.com 877-7-4ACLUE cc12-0430 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120430/fcb28323/attachment.html From marketing at cluecon.com Mon Apr 30 20:59:48 2012 From: marketing at cluecon.com (Michael Collins) Date: Mon, 30 Apr 2012 09:59:48 -0700 Subject: [Freeswitch-dev] ClueCon 2012 Preview: Vestec Automatic Speech Recognition Message-ID: Greetings! This week we have a small taste of ClueCon 2012: The Vestec team will be joining us on the FreeSWITCH community conferencecall this Wednesday, May 2. Vestec produces high-quality automatic speech recognition (ASR) software for open source telephony projects like Asterisk and FreeSWITCH. We look forward to having a Vestec engineer on the call with us this week to give us a technical look at their product and to answer community questions. Vestec will also be at ClueCon 2012 as a Silver Sponsor and have committed to being available for one-on-one consulting for those wanting to discuss their specific projects. Yet another reason to join us at ClueCon this August! The ClueCon 2012 speakers list is starting to take shape. We have a number of "fan-favorites" scheduled as well as a few new surprises. We are pleased to have returning for a third consecutive year Mr. Philip Zimmermann, inventor of PGP and designer of the the ZRTP secure VoIP protocol. As we've previously announced , ZRTP is now included in the FreeSWITCH distribution. Philip will be discussing VoIP security in general, as well developments with the ZRTP project. Register for ClueCon 2012 today and take advantage of ClueCon Power Play, which gives you extra entries in the world famous giveaways we have each year. Feel free to contact us if you have any questions about attending ClueCon, sponsoring, or speaking at the event. We look forward to seeing you there - in less than 100 days! -- Michael S Collins ClueCon Team http://www.cluecon.com 877-7-4ACLUE cc12-0430 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120430/82e7b39f/attachment.html