From mike at jerris.com Thu Mar 1 03:27:38 2012 From: mike at jerris.com (Michael Jerris) Date: Wed, 29 Feb 2012 19:27:38 -0500 Subject: [Freeswitch-dev] a problem about freeswitch conference caller control In-Reply-To: References: Message-ID: <1FF15784-24FC-403C-8E67-1C5228B1706A@jerris.com> This is probably more appropriate to the users list. On Feb 29, 2012, at 5:02 AM, Erjian Li wrote: > Hi All, > > Firstly, I want to give my thanks to every one in the mailing list, especially the ones who helped me on my questions. My two questions about freeswitch has been solved due to the helps provided here. > > Today I meet a new question about freeswitch: > My freeswitch server has been connected to a SIP provider's server (IDT server), and can dial out to normal cellphone numbers. Now I want to start a conference call using "conference dial ..." command, when the destination phones join the conference, the phone callers can't control the conference by pressing the keys specified in section of conference.conf.xml. (In other words, if I press key '0', it can't mute myself; press '#', it can't hang up, etc. I use the default caller-controls group.) I want to know in this situation, whether the cellphone's key tone can't be transferred to freeswitch server? Can freeswitch server only receive DTMF encapsulated in RTP packet transferred over IP? I can control the conference when I use X-Lite as client, and freeswitch outputs following log when I press key '0' in X-Lite interface: > ================================== > freeswitch at eli-desktop> 2012-02-29 17:02:59.349272 [DEBUG] switch_rtp.c:2428 RTP RECV DTMF 0:960 > 2012-02-29 17:02:59.367880 [DEBUG] mod_conference.c:2919 Queueing file '/usr/local/freeswitch/sounds/en/us/callie/conference/conf-muted.wav' for play > ================================= > > In the case of cellphone, when users press key, the DTMF is generated and transferred via PSTN channel to the IDT server, is this correct? and if so, is it up to IDT server to encapsulate the DTMF in RTP packets and send it to freeswitch server? From eli at netspectrum.com Thu Mar 1 04:58:24 2012 From: eli at netspectrum.com (Erjian Li) Date: Thu, 1 Mar 2012 09:58:24 +0800 Subject: [Freeswitch-dev] a problem about freeswitch conference caller control In-Reply-To: <1FF15784-24FC-403C-8E67-1C5228B1706A@jerris.com> References: <1FF15784-24FC-403C-8E67-1C5228B1706A@jerris.com> Message-ID: OK. I will post it to users list. Thanks. On Thu, Mar 1, 2012 at 8:27 AM, Michael Jerris wrote: > This is probably more appropriate to the users list. > > On Feb 29, 2012, at 5:02 AM, Erjian Li wrote: > > > Hi All, > > > > Firstly, I want to give my thanks to every one in the mailing list, > especially the ones who helped me on my questions. My two questions about > freeswitch has been solved due to the helps provided here. > > > > Today I meet a new question about freeswitch: > > My freeswitch server has been connected to a SIP provider's server (IDT > server), and can dial out to normal cellphone numbers. Now I want to > start a conference call using "conference dial ..." command, > when the destination phones join the conference, the phone callers can't > control the conference by pressing the keys specified in > section of conference.conf.xml. (In other words, if I press key '0', it > can't mute myself; press '#', it can't hang up, etc. I use the default > caller-controls group.) I want to know in this situation, whether the > cellphone's key tone can't be transferred to freeswitch server? Can > freeswitch server only receive DTMF encapsulated in RTP packet transferred > over IP? I can control the conference when I use X-Lite as client, and > freeswitch outputs following log when I press key '0' in X-Lite interface: > > ================================== > > freeswitch at eli-desktop> 2012-02-29 17:02:59.349272 [DEBUG] > switch_rtp.c:2428 RTP RECV DTMF 0:960 > > 2012-02-29 17:02:59.367880 [DEBUG] mod_conference.c:2919 Queueing file > '/usr/local/freeswitch/sounds/en/us/callie/conference/conf-muted.wav' for > play > > ================================= > > > > In the case of cellphone, when users press key, the DTMF is generated > and transferred via PSTN channel to the IDT server, is this correct? and if > so, is it up to IDT server to encapsulate the DTMF in RTP packets and send > it to freeswitch server? > > > _________________________________________________________________________ > 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 > -- Best Regards Erjian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120301/9290f3be/attachment.html From don.dawson at voice-ring.com Fri Mar 2 23:15:05 2012 From: don.dawson at voice-ring.com (Don Dawson) Date: Fri, 02 Mar 2012 14:15:05 -0600 Subject: [Freeswitch-dev] rtp gets behind if 2 packets come in during same 20ms period. Message-ID: <4F512A49.5010006@voice-ring.com> I have an RTP trace showing 2 packets from the a-leg coming in during one 20ms period and 1 packet from the b-leg during same period. Upon the timing mark, the b-leg packets gets sent on while the 2 a-leg packets are not sent. During the next 20ms period, there is 1 a-leg packet and 1 b-leg packet received. Upon the timing mark, the b-leg packet is sent while the oldest of the 3 a-leg packets is dropped and the second one is sent out(still leaving one buffered). From then on, it continues with 1 a-leg packet behind. Should that first timing mark have at least sent out one or both of the 2 a-leg packets? FS version: FreeSWITCH Version 1.0.head (git-21a469e 2012-02-22 11-51-49 -0600) Linux sip22 2.6.32-5-amd64 #1 SMP Thu Nov 3 03:41:26 UTC 2011 x86_64 GNU/Linux Thanks From anthony.minessale at gmail.com Sat Mar 3 01:28:37 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Fri, 2 Mar 2012 16:28:37 -0600 Subject: [Freeswitch-dev] rtp gets behind if 2 packets come in during same 20ms period. In-Reply-To: <4F512A49.5010006@voice-ring.com> References: <4F512A49.5010006@voice-ring.com> Message-ID: not unless you enable the jitterbuffer On Fri, Mar 2, 2012 at 2:15 PM, Don Dawson wrote: > I have an RTP trace showing 2 packets from the a-leg coming in during > one 20ms period and 1 packet from the b-leg during same period. > Upon the timing mark, the b-leg packets gets sent on while the 2 a-leg > packets are not sent. > During the next 20ms period, there is 1 a-leg packet and 1 b-leg packet > received. Upon the timing mark, the b-leg packet is sent > while the oldest of the 3 a-leg packets is dropped and the second one is > sent out(still leaving one buffered). > ?From then on, it continues with 1 a-leg packet behind. > > Should that first timing mark have at least sent out one or both of the > 2 a-leg packets? > > FS version: FreeSWITCH Version 1.0.head (git-21a469e 2012-02-22 11-51-49 > -0600) > Linux sip22 2.6.32-5-amd64 #1 SMP Thu Nov 3 03:41:26 UTC 2011 x86_64 > GNU/Linux > > 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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 From msc at freeswitch.org Sat Mar 3 02:02:33 2012 From: msc at freeswitch.org (Michael Collins) Date: Fri, 2 Mar 2012 15:02:33 -0800 Subject: [Freeswitch-dev] FreeSWITCH on Raspberry Pi Message-ID: Hello all! I just saw an article in Engadget that said that some "hobbyists" were trying to put FS on Raspberry Pi. I recall Richard Neese talking this subject a few months ago but I hadn't heard anything recently. If you are working to put FS on RP then please contact me off list. I would like to keep track of these projects. Thanks, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120302/342e7764/attachment.html From krice at freeswitch.org Sat Mar 3 03:02:28 2012 From: krice at freeswitch.org (Ken Rice) Date: Fri, 02 Mar 2012 18:02:28 -0600 Subject: [Freeswitch-dev] FreeSWITCH on Raspberry Pi In-Reply-To: Message-ID: Let is all know... I want this too On 3/2/12 5:02 PM, "Michael Collins" wrote: > Hello all! > > I just saw an article in Engadget that said that some "hobbyists" were trying > to put FS on Raspberry Pi. I recall Richard Neese talking this subject a few > months ago but I hadn't heard anything recently. If you are working to put FS > on RP then please contact me off list. I would like to keep track of these > projects. > > Thanks, > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120302/6492ff39/attachment-0001.html From itamar at ispbrasil.com.br Sat Mar 3 02:33:21 2012 From: itamar at ispbrasil.com.br (Itamar Reis Peixoto) Date: Fri, 2 Mar 2012 20:33:21 -0300 Subject: [Freeswitch-dev] FreeSWITCH on Raspberry Pi In-Reply-To: References: Message-ID: On Fri, Mar 2, 2012 at 8:02 PM, Michael Collins wrote: > Hello all! > > I just saw an article in Engadget that said that some "hobbyists" were > trying to put FS on Raspberry Pi. I recall Richard Neese talking this > subject a few months ago but I hadn't heard anything recently. If you are > working to put FS on RP then please contact me off list. I would like to > keep track of these projects. > > Thanks, > Michael > Raspberry Pi, runs fedora. adding FS to fedora will make it available to Raspberry Pi ------------ Itamar Reis Peixoto msn, google talk: itamar at ispbrasil.com.br +55 11 4063 5033 (FIXO SP) +55 34 9158 9329 (TIM) +55 34 8806 3989 (OI) +55 34 3221 8599 (FIXO MG) From victor.velo at videotron.ca Tue Mar 6 23:24:53 2012 From: victor.velo at videotron.ca (victor.velo at videotron.ca) Date: Tue, 06 Mar 2012 15:24:53 -0500 Subject: [Freeswitch-dev] post recording In-Reply-To: References: Message-ID: <74f0a4642388fb.4f562c45@videotron.ca> Hello, I'm trying to activate a post recording program from an ESL script using the "record_post_process_exec_app" channel variable. Like this: command_args = "record_post_process_exec_app=/usr/local/freeswitch/bin/post_recording /usr/local/freeswitch/temp_recording/victor8.wav"; myconn.execute("set", command_args.c_str(), legA_uuid.c_str()); and then wait for the execution to complete... etc. Afterward I start the recording... command_args = "api uuid_record "+legA_uuid+" start /usr/local/freeswitch/temp-recording/victor8.wav"; current_event = myconn.sendRecv(command_args.c_str()); My understanding is that the "record_post_process_exec_app" will be started (automatically) when the recording ends.This is but not happen..., Do I miss something? -------------------- Another question is about the possibility to record legA in mono 8bit (mixed) like LegB recording. How could I overwrite this setting? Thanks in advance, Victor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120306/f29bc91f/attachment.html From brian at freeswitch.org Wed Mar 7 00:53:39 2012 From: brian at freeswitch.org (Brian West) Date: Tue, 6 Mar 2012 15:53:39 -0600 Subject: [Freeswitch-dev] post recording In-Reply-To: <74f0a4642388fb.4f562c45@videotron.ca> References: <74f0a4642388fb.4f562c45@videotron.ca> Message-ID: <3A369FBF-B784-4FA5-8C37-38AD361C96B0@freeswitch.org> Please make sure you're on the latest code. If the problem persists then file a bug with all the data and samples .. also try without using c# or what ever language this is... also make sure the variable is set BEFORE recording starts. /b On Mar 6, 2012, at 2:24 PM, victor.velo at videotron.ca wrote: > > My understanding is that the "record_post_process_exec_app" will be started (automatically) when the recording ends.This is but not happen..., > Do I miss something? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120306/48019fd5/attachment.html From msc at freeswitch.org Wed Mar 7 02:20:56 2012 From: msc at freeswitch.org (Michael Collins) Date: Tue, 6 Mar 2012 15:20:56 -0800 Subject: [Freeswitch-dev] FreeSWITCH Conf Call Tomorrow - Dialplan Basics Message-ID: Hello all! Here's tomorrow's agenda page: http://wiki.freeswitch.org/wiki/FS_weekly_2012_03_06 I will be discussing some dialplan basics along with some regex tricks and basic patterns. Other experts may also be chiming in. The idea is that everyone on the call will come away with a more thorough understanding of what happens when a phone call comes into FreeSWITCH. Talk to you tomorrow! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120306/315888e5/attachment.html From aroumie at yahoo.com Wed Mar 7 11:21:22 2012 From: aroumie at yahoo.com (Ali R.) Date: Wed, 7 Mar 2012 00:21:22 -0800 (PST) Subject: [Freeswitch-dev] New Book! In-Reply-To: References: Message-ID: <1331108482.14853.YahooMailNeo@web120302.mail.ne1.yahoo.com> Hello All, I just received the cookbook from amazon.com ?today and I just wanted to say it's really well done. ?Many thanks for such?valuable?reference. In a scale of 1 to 10, I would give this book 11 Ali R. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120307/0cab757b/attachment.html From msc at freeswitch.org Wed Mar 7 19:24:26 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 7 Mar 2012 08:24:26 -0800 Subject: [Freeswitch-dev] New Book! In-Reply-To: <1331108482.14853.YahooMailNeo@web120302.mail.ne1.yahoo.com> References: <1331108482.14853.YahooMailNeo@web120302.mail.ne1.yahoo.com> Message-ID: Much appreciated! Thanks, MC On Wed, Mar 7, 2012 at 12:21 AM, Ali R. wrote: > Hello All, > I just received the cookbook from amazon.com today and I just wanted to > say it's really well done. Many thanks for such valuable reference. > In a scale of 1 to 10, I would give this book 11 > > Ali R. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120307/1a9e3a55/attachment.html From hjz51 at qq.com Wed Mar 7 12:09:10 2012 From: hjz51 at qq.com (hjz51) Date: Wed, 7 Mar 2012 17:09:10 +0800 Subject: [Freeswitch-dev] =?gb2312?b?16q3ojogaG93IHRvIHVzZSChsCByZW1vdGVf?= =?gb2312?b?bWVkaWFfaXAsIHJlbW90ZV9tZWRpYV9wb3J0IiBpbiBkaWFscGxh?= =?gb2312?b?bg==?= Message-ID: <006801ccfc41$f6a983c0$e3fc8b40$@com> ???: hjz51 [mailto:hjz51 at qq.com] ????: 2012?3?7???? 17:05 ???: 'freeswitch-dev at lists.freeswitch.org' ??: how to use ? remote_media_ip, remote_media_port" in dialplan Hi, I tried to use the variable remote_media_ip, remote_media_port within dialplan, but it is not returning anything. Does anyone know when this variable gets set and how to have this variable to be set as soon as an INVITE hit freeswitch? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120307/46587d3d/attachment-0001.html From juraj.fabo at gmail.com Wed Mar 7 20:10:02 2012 From: juraj.fabo at gmail.com (Juraj Fabo) Date: Wed, 7 Mar 2012 18:10:02 +0100 Subject: [Freeswitch-dev] Disconnect cause FTDM_CAUSE_SUBSCRIBER_ABSENT problem Message-ID: Hi I'm experiencing problem when my application needs to send disconnect request with disconnect cause FTDM_CAUSE_SUBSCRIBER_ABSENT = 20 I've tested also various disconnect causes around this value (No Answer from User(19), Invalid Number Format(28), Destination Out-of-Order(27), Number Changed(22)) and all of those were properly sent in form of DISCONNECT message, e.g. [LM_DEB] (140287917455120) libfreetdm [SNGISDN Q931] wp1 FRAME OUTGOING: Prot Disc:Q.931/I.451 (0x08) Call Ref:0001 (Destination side) Type:DISCONNECT (0x45) Cause:coding:ITU-T(0) location:Private network, local user(1) val:No Answer from User(19) [ 08 02 80 01 45 08 02 81 93 ] However, when trying to send the disconnect request with cause FTDM_CAUSE_SUBSCRIBER_ABSENT(20) there is no DISCONNECT message sent, but the RELEASE message with incorrect IE as follows libfreetdm [s1c30][1:31] Hanging up call upon local request! libfreetdm [s1c30][1:31] Sending DISCONNECT with cause 20 libfreetdm [s1c30][1:31] Sending DISCONNECT (suId:1 suInstId:2 spInstId:2) libfreetdm [s1c30][1:31] Completed state change from PROCEED to HANGUP in 0ms libfreetdm [s1c30][1:31] Changed state from HANGUP to HANGUP_COMPLETE libfreetdm [s1c30][1:31] Executing state processor for HANGUP_COMPLETE libfreetdm [s1c30][1:31] processing state change to HANGUP_COMPLETE libfreetdm [s1c30][1:31] Waiting for release from stack libfreetdm [s1c30][1:31] Completed state change from HANGUP to HANGUP_COMPLETE in 0ms hangup with cause 20 libfreetdm [SNGISDN Q931] wp1 FRAME OUTGOING: Prot Disc:Q.931/I.451 (0x08) Call Ref:0001 (Destination side) Type:RELEASE (0x4d) Cause:coding:ITU-T(0) location:User(0) val:Unknown(0) [ 08 02 80 01 4d 08 04 00 80 e4 08 ] Please, is the FTDM_CAUSE_SUBSCRIBER_ABSENT handled in some special way in the libsng_isgn.so? My environment is as : freetdm from the git of 1st Feb 2012, libsng_isgn.7.14.2, wanpipe-3.5.24, sangoma a104d quadcard. Thank you in advance Juraj From victor.velo at videotron.ca Thu Mar 8 02:28:59 2012 From: victor.velo at videotron.ca (victor.velo at videotron.ca) Date: Wed, 07 Mar 2012 18:28:59 -0500 Subject: [Freeswitch-dev] post recording In-Reply-To: <74f0a4642388fb.4f562c45@videotron.ca> References: <74f0a4642388fb.4f562c45@videotron.ca> Message-ID: <77a0c4824344b.4f57a8eb@videotron.ca> Hello, I get the latest code, and now I have an error message "Invalid application ..." Do I have to build a module to use as a post recording app? Thanks, ----- Original Message ----- From: Date: Tuesday, March 6, 2012 3:24 pm Subject: post recording To: freeswitch-dev at lists.freeswitch.org > Hello, > > I'm trying to activate a post recording program from an ESL script using the "record_post_process_exec_app" channel variable. > > Like this: > > command_args = "record_post_process_exec_app=/usr/local/freeswitch/bin/post_recording /usr/local/freeswitch/temp_recording/victor8.wav"; > myconn.execute("set", command_args.c_str(), legA_uuid.c_str()); > > and then wait for the execution to complete... etc. > > Afterward I start the recording... > > command_args = "api uuid_record "+legA_uuid+" start /usr/local/freeswitch/temp-recording/victor8.wav"; > current_event = myconn.sendRecv(command_args.c_str()); > > My understanding is that the "record_post_process_exec_app" will be started (automatically) when the recording ends.This is but not happen..., > Do I miss something? > > > -------------------- > > Another question is about the possibility to record legA in mono 8bit (mixed) like LegB recording. > How could I overwrite this setting? > > > Thanks in advance, > > Victor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120307/307fc405/attachment.html From msc at freeswitch.org Fri Mar 9 02:43:32 2012 From: msc at freeswitch.org (Michael Collins) Date: Thu, 8 Mar 2012 15:43:32 -0800 Subject: [Freeswitch-dev] post recording In-Reply-To: <77a0c4824344b.4f57a8eb@videotron.ca> References: <74f0a4642388fb.4f562c45@videotron.ca> <77a0c4824344b.4f57a8eb@videotron.ca> Message-ID: You need to use the "system" application. Probably this is what you need: command_args = "record_post_process_exec_app=system /usr/local/freeswitch/bin/post_recording /usr/local/freeswitch/temp_recording/victor8.wav"; -MC On Wed, Mar 7, 2012 at 3:28 PM, wrote: > Hello, > > I get the latest code, and now I have an error message "Invalid > application ..." > Do I have to build a module to use as a post recording app? > > Thanks, > > ----- Original Message ----- > From: > Date: Tuesday, March 6, 2012 3:24 pm > Subject: post recording > To: freeswitch-dev at lists.freeswitch.org > > > Hello, > > > > I'm trying to activate a post recording program from an ESL script > using the "record_post_process_exec_app" channel variable. > > > > Like this: > > > > command_args = > "record_post_process_exec_app=/usr/local/freeswitch/bin/post_recording > /usr/local/freeswitch/temp_recording/victor8.wav"; > > myconn.execute("set", command_args.c_str(), > legA_uuid.c_str()); > > > > and then wait for the execution to complete... etc. > > > > Afterward I start the recording... > > > > command_args = "api uuid_record "+legA_uuid+" start > /usr/local/freeswitch/temp-recording/victor8.wav"; > > current_event = myconn.sendRecv(command_args.c_str()); > > > > My understanding is that the "record_post_process_exec_app" will be > started (automatically) when the recording ends.This is but not happen..., > > Do I miss something? > > > > > > -------------------- > > > > Another question is about the possibility to record legA in mono 8bit > (mixed) like LegB recording. > > How could I overwrite this setting? > > > > > > Thanks in advance, > > > > Victor > > _________________________________________________________________________ > 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/20120308/e8a36527/attachment.html From e.tylepov at btcom.kz Sun Mar 11 09:39:57 2012 From: e.tylepov at btcom.kz (Erjan Tylepov) Date: Sun, 11 Mar 2012 06:39:57 +0000 Subject: [Freeswitch-dev] ODBC pooling Message-ID: <20120311063957.d71e11b8@mail.btcom.kz> Hi all, Do I correctly understand, that mod_nibblebill (as of Feb 17 commit: b05ca56adf2dd8f9b0bbf114827de98aec8313ae) have a bottle neck with db connections? I.e. when there will be a number of calls bill_event and get_balance functions will hangup until after all the threads, executing the functions, will do their jobs with db or, even worse, negatively influence each other? Is this sequence is a right one in the aforesaid functions: switch_odbc_handle_new switch_odbc_handle_connect switch_odbc_handle_exec (in bill_event) switch_odbc_statement_handle_free (in bill_event) switch_odbc_handle_callback_exec (in get_balance) switch_odbc_handle_disconnect? If yes, where can I set pool size? Regards, YT. From peter.olsson at visionutveckling.se Sun Mar 11 10:45:26 2012 From: peter.olsson at visionutveckling.se (Peter Olsson) Date: Sun, 11 Mar 2012 07:45:26 +0000 Subject: [Freeswitch-dev] ODBC pooling In-Reply-To: <20120311063957.d71e11b8@mail.btcom.kz> References: <20120311063957.d71e11b8@mail.btcom.kz> Message-ID: <1FFF97C269757C458224B7C895F35F15050EF6@cantor.std.visionutv.se> I'm not sure what you mean, and the commit you're describing has nothing to do with mod_nibblebill - and it wasn't even commited on Feb 17..? Please describe the problem you're seeing, and why you think ODBC pooling is a bottle neck.. /Peter ________________________________________ Fr?n: freeswitch-dev-bounces at lists.freeswitch.org [freeswitch-dev-bounces at lists.freeswitch.org] för Erjan Tylepov [e.tylepov at btcom.kz] Skickat: den 11 mars 2012 07:39 Till: freeswitch-dev at lists.freeswitch.org ?mne: [Freeswitch-dev] ODBC pooling Hi all, Do I correctly understand, that mod_nibblebill (as of Feb 17 commit: b05ca56adf2dd8f9b0bbf114827de98aec8313ae) have a bottle neck with db connections? I.e. when there will be a number of calls bill_event and get_balance functions will hangup until after all the threads, executing the functions, will do their jobs with db or, even worse, negatively influence each other? Is this sequence is a right one in the aforesaid functions: switch_odbc_handle_new switch_odbc_handle_connect switch_odbc_handle_exec (in bill_event) switch_odbc_statement_handle_free (in bill_event) switch_odbc_handle_callback_exec (in get_balance) switch_odbc_handle_disconnect? If yes, where can I set pool size? Regards, YT. _________________________________________________________________________ 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:4f5c46ee32761685258691! From e.tylepov at btcom.kz Sun Mar 11 11:36:19 2012 From: e.tylepov at btcom.kz (Erjan Tylepov) Date: Sun, 11 Mar 2012 08:36:19 +0000 Subject: [Freeswitch-dev] ODBC pooling Message-ID: <20120311083619.546d5aa9@mail.btcom.kz> I meant, that I pulled master branch on Feb 17 and the last commit I've received with that pull was as depicted below. To be exact, earlier I should say "commit cdcaedbf? as of 19th December of 2011". Below I meant, that I do believe, that the module doesn't use pooling capability of FS. I.e. the module opens 1 connection on load and disconnects that connection on unload and in-between those two events it uses the same connection for all calls. Maybe I wrong. Regards, Yerzhan. ----- Original Message ----- From: Peter Olsson [mailto:peter.olsson at visionutveckling.se] To: freeswitch-dev at lists.freeswitch.org [mailto:freeswitch-dev at lists.freeswitch.org] Sent: Sun, 11 Mar 2012 07:45:26 +0000 Subject: Re: [Freeswitch-dev] ODBC pooling > I'm not sure what you mean, and the commit you're describing has nothing to > do with mod_nibblebill - and it wasn't even commited on Feb 17..? > > Please describe the problem you're seeing, and why you think ODBC pooling is > a bottle neck.. > > /Peter > From jalsot at gmail.com Sun Mar 11 12:20:19 2012 From: jalsot at gmail.com (Tamas Jalsovszky) Date: Sun, 11 Mar 2012 10:20:19 +0100 Subject: [Freeswitch-dev] UDT: Breaking the Data Transfer Bottleneck Message-ID: Hello, When I was googling around, I've found an interesting project which could be somehow interesting for FS project too. http://udt.sourceforge.net/index.html Not sure where and how, but I felt, I have to let you know about it :) Regards, T. ps.: For a quick source check, the git repo: git:// udt.git.sourceforge.net/gitroot/udt/udt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120311/94bb706f/attachment.html From victor.velo at videotron.ca Mon Mar 12 18:02:36 2012 From: victor.velo at videotron.ca (victor.velo at videotron.ca) Date: Mon, 12 Mar 2012 11:02:36 -0400 Subject: [Freeswitch-dev] post recording In-Reply-To: <77a0c4824344b.4f57a8eb@videotron.ca> References: <74f0a4642388fb.4f562c45@videotron.ca> <77a0c4824344b.4f57a8eb@videotron.ca> Message-ID: <7690e72827f443.4f5dd7cc@videotron.ca> Thank you very much for the tips, was very helpful. I also wrote a module with the SAF_ZOMBIE_EXEC flag. As usually, I learn this great system step by step... Victor ----- Original Message ----- From: Date: Wednesday, March 7, 2012 6:28 pm Subject: Re: post recording To: freeswitch-dev at lists.freeswitch.org > Hello, > > I get the latest code, and now I have an error message "Invalid application ..." > Do I have to build a module to use as a post recording app? > > Thanks, > > ----- Original Message ----- > From: > Date: Tuesday, March 6, 2012 3:24 pm > Subject: post recording > To: freeswitch-dev at lists.freeswitch.org > > > Hello, > > > > I'm trying to activate a post recording program from an ESL script using the "record_post_process_exec_app" channel variable. > > > > Like this: > > > > command_args = "record_post_process_exec_app=/usr/local/freeswitch/bin/post_recording /usr/local/freeswitch/temp_recording/victor8.wav"; > > myconn.execute("set", command_args.c_str(), legA_uuid.c_str()); > > > > and then wait for the execution to complete... etc. > > > > Afterward I start the recording... > > > > command_args = "api uuid_record "+legA_uuid+" start /usr/local/freeswitch/temp-recording/victor8.wav"; > > current_event = myconn.sendRecv(command_args.c_str()); > > > > My understanding is that the "record_post_process_exec_app" will be started (automatically) when the recording ends.This is but not happen..., > > Do I miss something? > > > > > > -------------------- > > > > Another question is about the possibility to record legA in mono 8bit (mixed) like LegB recording. > > How could I overwrite this setting? > > > > > > Thanks in advance, > > > > Victor > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120312/7c80479a/attachment.html From dujinfang at gmail.com Mon Mar 12 19:26:46 2012 From: dujinfang at gmail.com (Seven Du) Date: Tue, 13 Mar 2012 00:26:46 +0800 Subject: [Freeswitch-dev] questions about making a new endpoint Message-ID: <8ACC4EE243024FDCB048F25852C5DE8E@gmail.com> Hi, I'm working on a mod_rtsp endpoint the idea is to stream sip video to a rtsp client such as VLC and also a sip client could "call" a rtsp camera later. I copied some codes from mod_sofia and it is too long to understand for me so I'd like to get some inputs either highlight me how to do or point out where to read from mod_sofia. 1) VLC "calls" in as a-leg and bridge to a sip client with video(or play_fsv), I made it sort of working now, but - How to disable the read_frame and read_video frame io_routine ? I set them to NULL and it fails on read, so I made a fake read function there, kind of ugly. - I hard coded to H264 and I can see video on VLC, I'd like to do like sip later negotiation then when b-leg sip client offers SDP and offer to a-leg when DESCRIBE - looks like switch_io complains when no audio codec, is it possible to do video only calls? or is it possible to set audio and video rtp to a different path ? 2) Call a rtsp camera would be easy later 3) Maybe a client can call in and record? I don't have such a client. I would like to share the code later if others interested on this. Thanks, Seven. -- 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/20120313/b5ef577c/attachment.html From anthony.minessale at gmail.com Mon Mar 12 19:43:06 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Mon, 12 Mar 2012 11:43:06 -0500 Subject: [Freeswitch-dev] questions about making a new endpoint In-Reply-To: <8ACC4EE243024FDCB048F25852C5DE8E@gmail.com> References: <8ACC4EE243024FDCB048F25852C5DE8E@gmail.com> Message-ID: maybe you would want to contribute to the existing sound file vlc module and expand it to have endpoint functionality. On Mon, Mar 12, 2012 at 11:26 AM, Seven Du wrote: > Hi, > > I'm working on a mod_rtsp endpoint the idea is to stream sip video to a rtsp > client such as VLC and also a sip client could "call" a rtsp camera later. I > copied some codes from mod_sofia and it is too long to understand for me so > I'd like to get some inputs either highlight me how to do or point out where > to read from mod_sofia. > > 1) VLC "calls" in as a-leg and bridge to a sip client with video(or > play_fsv), I made it sort of working now, but > > - ?How to disable the read_frame and read_video frame io_routine ? I set > them to NULL and it fails on read, so I made a fake read function there, > kind of ugly. > > - ?I hard coded to H264 and I can see video on VLC, I'd like to do like sip > later negotiation then when b-leg sip client offers SDP and offer to a-leg > when DESCRIBE > > - looks like switch_io complains when no audio codec, is it possible to do > video only calls? or is it possible to set audio and video rtp to a > ?different path ? > > 2) Call a rtsp camera would be easy later > > > 3) Maybe a client can call in and record? I don't have such a client. > > I would like to share the code later if others interested on this. > > > Thanks, > Seven. > > -- > 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 > -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale at hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888 at conference.freeswitch.org googletalk:conf+888 at conference.freeswitch.org pstn:+19193869900 From msc at freeswitch.org Mon Mar 12 20:00:02 2012 From: msc at freeswitch.org (Michael Collins) Date: Mon, 12 Mar 2012 10:00:02 -0700 Subject: [Freeswitch-dev] questions about making a new endpoint In-Reply-To: References: <8ACC4EE243024FDCB048F25852C5DE8E@gmail.com> Message-ID: I believe William King (IRC: quentusrex) has some input on this subject... -MC On Mon, Mar 12, 2012 at 9:43 AM, Anthony Minessale < anthony.minessale at gmail.com> wrote: > maybe you would want to contribute to the existing sound file vlc > module and expand it to have endpoint functionality. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120312/dbabc95c/attachment.html From william.king at quentustech.com Mon Mar 12 20:07:00 2012 From: william.king at quentustech.com (William King) Date: Mon, 12 Mar 2012 10:07:00 -0700 Subject: [Freeswitch-dev] questions about making a new endpoint In-Reply-To: References: <8ACC4EE243024FDCB048F25852C5DE8E@gmail.com> Message-ID: <4F5E2D34.7070201@quentustech.com> Seven, Currently the mod_vlc module supports acting as a client for rtsp streams. I'm in the middle of adding server support so that mod_vlc can stream out to clients the audio and video of a call. -William From krice at freeswitch.org Mon Mar 12 22:19:03 2012 From: krice at freeswitch.org (Ken Rice) Date: Mon, 12 Mar 2012 13:19:03 -0600 Subject: [Freeswitch-dev] FreeSWITCH 1.2 is on the horizon. Message-ID: The FreeSWITCH Development Team is happy to announce that 1.2 is officially on the horizon. Starting Wed March 14th 2012, the Development branch of FreeSWITCH will reach a Feature Freeze. What does this mean for you the user? It means we will have a stable known feature set heading into the Release Candidate Cycle. Only patches that Fix Bugs will be accepted. If you have a feature you would like to see included, get us a Jira with a full patch set so we can evaluate its inclusion with 1.2. What we need from the community: Testing, Testing, more Testing, and Documentation Updates. The freeze will last 2 to 4 weeks as we spool up testing and everything else we need to get the Release Candidates ready for prime time. If you have outstanding bugs on Jira, please help us help you during this time by making sure all information on them is up to date. Grab the latest GIT Head and see if your bugs have been resolved and someone forgot to close your Jira. If you want to help or need some help diagnosing and issue visit us on IRC via irc.freenode.net/#freeswitch any time. The FreeSWITCH Dev Team -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120312/f72a4bb2/attachment.html From dyatsin at sangoma.com Mon Mar 12 22:55:26 2012 From: dyatsin at sangoma.com (David Yat Sin) Date: Mon, 12 Mar 2012 15:55:26 -0400 Subject: [Freeswitch-dev] Disconnect cause FTDM_CAUSE_SUBSCRIBER_ABSENT problem In-Reply-To: Message-ID: Hi Juraj, It looks like cause = 20 is not in the list of allowed values inside libsng_isdn. Cause 20 is valid, so this is a bug. Can you create a ticket on JIRA, project=FreeTDM for this, and assign it to me (David Yat Sin). David David Yat Sin Senior Software Engineer dyatsin at sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada On 12-03-07 12:10 PM, "Juraj Fabo" wrote: >Hi > >I'm experiencing problem when my application needs to send disconnect >request with disconnect cause FTDM_CAUSE_SUBSCRIBER_ABSENT = 20 >I've tested also various disconnect causes around this value (No >Answer from User(19), Invalid Number Format(28), Destination >Out-of-Order(27), Number Changed(22)) >and all of those were properly sent in form of DISCONNECT message, e.g. > >[LM_DEB] (140287917455120) libfreetdm [SNGISDN Q931] wp1 FRAME OUTGOING: > Prot Disc:Q.931/I.451 (0x08) > Call Ref:0001 (Destination side) > Type:DISCONNECT (0x45) > Cause:coding:ITU-T(0) location:Private network, local user(1) val:No >Answer from User(19) > [ 08 02 80 01 45 08 02 81 93 ] > >However, when trying to send the disconnect request with cause >FTDM_CAUSE_SUBSCRIBER_ABSENT(20) there is no DISCONNECT message sent, >but the RELEASE message with incorrect IE as follows > >libfreetdm [s1c30][1:31] Hanging up call upon local request! >libfreetdm [s1c30][1:31] Sending DISCONNECT with cause 20 >libfreetdm [s1c30][1:31] Sending DISCONNECT (suId:1 suInstId:2 spInstId:2) >libfreetdm [s1c30][1:31] Completed state change from PROCEED to HANGUP in >0ms >libfreetdm [s1c30][1:31] Changed state from HANGUP to HANGUP_COMPLETE >libfreetdm [s1c30][1:31] Executing state processor for HANGUP_COMPLETE >libfreetdm [s1c30][1:31] processing state change to HANGUP_COMPLETE >libfreetdm [s1c30][1:31] Waiting for release from stack >libfreetdm [s1c30][1:31] Completed state change from HANGUP to >HANGUP_COMPLETE in 0ms >hangup with cause 20 >libfreetdm [SNGISDN Q931] wp1 FRAME OUTGOING: > Prot Disc:Q.931/I.451 (0x08) > Call Ref:0001 (Destination side) > Type:RELEASE (0x4d) > Cause:coding:ITU-T(0) location:User(0) val:Unknown(0) >[ 08 02 80 01 4d 08 04 00 80 e4 08 ] > >Please, is the FTDM_CAUSE_SUBSCRIBER_ABSENT handled in some special >way in the libsng_isgn.so? > >My environment is as : freetdm from the git of 1st Feb 2012, >libsng_isgn.7.14.2, wanpipe-3.5.24, sangoma a104d quadcard. > >Thank you in advance > >Juraj > >_________________________________________________________________________ >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 manieq at wp.eu Tue Mar 13 00:14:02 2012 From: manieq at wp.eu (Mariusz Czulada) Date: Mon, 12 Mar 2012 22:14:02 +0100 Subject: [Freeswitch-dev] Conference recording pause/resume problem In-Reply-To: <4ef05e19e069b9.08296277@wp.pl> <4ef10a4a654499.83881720@wp.pl> References: <4ef05e19e069b9.08296277@wp.pl> <4ef10a4a654499.83881720@wp.pl> Message-ID: <4f5e671abfb731.85842541@wp.pl> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120312/ed09284c/attachment.html From manieq at wp.eu Tue Mar 13 00:54:17 2012 From: manieq at wp.eu (Mariusz Czulada) Date: Mon, 12 Mar 2012 22:54:17 +0100 Subject: [Freeswitch-dev] More detailed P-Asserted-Identity Message-ID: <4f5e7089e33092.14282402@wp.pl> Hello, Case: Channel variable set from "P-Asserted-Identity" header contains only user name part Description: I have an IMS platform (by ALU) and a media server based on FreeSWITCH. Calls to a dedicated PSI and some FAC are routed to FSW. For some accont-specific features it is important to have a detailed user information. I found that mod_sofia currently sets only a user part of URI in "sip_h_P-Asserted-Identity" variable. It is not suitable in our case, since we also need information about user's realm. Solution: I created a patch which allows to decide how detailed the information in variable should be. A new parameter in sip profile configuration is introduced "p-asserted-id-parse": Valid values are: param not defined at all - assume "default" "default" - preserves current behaviour (user numer only); "user-only" - same result as above, but explicitly enforced "user-domain" - a conatenation of "user number" "@" "user domain" "verbatim" - set to exact value of the SIP header A new type was added (sofia_paid_type_t - enum) and a profile field (paid_type). In 'config_sofia' and 'reconfig_sofia' a new parameter is parsed (if declared) then 'paid_type' field is set as requested. By default (in 'config_sofia') paid_type ise set to PAID_DEFAULT In 'p-asserted-id-parse' function, setting "sip_P-Asserted-Identity" variable depends on value set in profile configuration. Tested with Alcatel-Lucent IMS v.3.0 for all param values. "default", "user-only" and "user-domain" works as expected (actually "user-domain" is what we need). Unfortunately "verbatim" is not filling channel variable at all. Can sb. help me how to get an exact value of a PANI header from a request? Do you think it could be useful to others so I can push it to JIRA after problem fixing? Regards, Mariusz Czu?ada -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sofia-full-passertedid-002.txt Url: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120312/b2f727e9/attachment-0001.txt From brian at freeswitch.org Tue Mar 13 01:03:48 2012 From: brian at freeswitch.org (Brian West) Date: Mon, 12 Mar 2012 17:03:48 -0500 Subject: [Freeswitch-dev] More detailed P-Asserted-Identity In-Reply-To: <4f5e7089e33092.14282402@wp.pl> References: <4f5e7089e33092.14282402@wp.pl> Message-ID: <3E4CECE1-5549-402D-B66A-EEE26DBA44DF@freeswitch.org> Please put all of this on Jira. Thanks, Brian On Mar 12, 2012, at 4:54 PM, Mariusz Czulada wrote: > t -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120312/64ebbd0c/attachment.html From krice at freeswitch.org Tue Mar 13 02:16:19 2012 From: krice at freeswitch.org (Ken Rice) Date: Mon, 12 Mar 2012 17:16:19 -0600 Subject: [Freeswitch-dev] More detailed P-Asserted-Identity In-Reply-To: <3E4CECE1-5549-402D-B66A-EEE26DBA44DF@freeswitch.org> Message-ID: Also, Highest Priority for a mailing list? REALLY? On 3/12/12 4:03 PM, "Brian West" wrote: > Please put all of this on Jira. > > Thanks, > Brian > > On Mar 12, 2012, at 4:54 PM, Mariusz Czulada wrote: > >> t > > > > _________________________________________________________________________ > 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/20120312/2a29e2f1/attachment.html From manieq at wp.eu Tue Mar 13 01:18:20 2012 From: manieq at wp.eu (Mariusz Czulada) Date: Mon, 12 Mar 2012 23:18:20 +0100 Subject: [Freeswitch-dev] More detailed P-Asserted-Identity In-Reply-To: <4f5e7089e33092.14282402@wp.pl> <3E4CECE1-5549-402D-B66A-EEE26DBA44DF@freeswitch.org> References: <4f5e7089e33092.14282402@wp.pl> <3E4CECE1-5549-402D-B66A-EEE26DBA44DF@freeswitch.org> Message-ID: <4f5e762ce6ab70.69940357@wp.pl> An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120312/1f103620/attachment.html From dujinfang at gmail.com Tue Mar 13 04:20:05 2012 From: dujinfang at gmail.com (Seven Du) Date: Tue, 13 Mar 2012 09:20:05 +0800 Subject: [Freeswitch-dev] questions about making a new endpoint In-Reply-To: <4F5E2D34.7070201@quentustech.com> References: <8ACC4EE243024FDCB048F25852C5DE8E@gmail.com> <4F5E2D34.7070201@quentustech.com> Message-ID: <001756FC14C6441684351BED7517EC9A@gmail.com> Cool. I noticed mod_vlc the only problem is that I have problem to compile the VLC lib when I last try so I made a simple rtsp implementation. I'd like to not re-invent the wheel and merge the endpoint function into mod_vlc. May I directly commit into git? Can you highlight some points on my questions Anthony ? Or maybe you have better inputs when you see the code ;) On Tuesday, March 13, 2012 at 1:07 AM, William King wrote: > Seven, > > Currently the mod_vlc module supports acting as a client for rtsp > streams. I'm in the middle of adding server support so that mod_vlc can > stream out to clients the audio and video of a call. > > -William > > _________________________________________________________________________ > 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/20120313/8bc7f837/attachment.html From peter.olsson at visionutveckling.se Tue Mar 13 13:01:39 2012 From: peter.olsson at visionutveckling.se (Peter Olsson) Date: Tue, 13 Mar 2012 10:01:39 +0000 Subject: [Freeswitch-dev] FreeSWITCH 1.2 is on the horizon. In-Reply-To: References: Message-ID: <1FFF97C269757C458224B7C895F35F15051BCF@cantor.std.visionutv.se> This sounds really great. Even though I personally appreciate the current stable trunk updates, I believe many users will like a more controlled release plan. /Peter ________________________________ Fr?n: freeswitch-dev-bounces at lists.freeswitch.org [freeswitch-dev-bounces at lists.freeswitch.org] f?r Ken Rice [krice at freeswitch.org] Skickat: den 12 mars 2012 20:19 Till: FreeSWITCH Users Help; freeswitch-dev at lists.freeswitch.org ?mne: [Freeswitch-dev] FreeSWITCH 1.2 is on the horizon. The FreeSWITCH Development Team is happy to announce that 1.2 is officially on the horizon. Starting Wed March 14th 2012, the Development branch of FreeSWITCH will reach a Feature Freeze. What does this mean for you the user? It means we will have a stable known feature set heading into the Release Candidate Cycle. Only patches that Fix Bugs will be accepted. If you have a feature you would like to see included, get us a Jira with a full patch set so we can evaluate its inclusion with 1.2. What we need from the community: Testing, Testing, more Testing, and Documentation Updates. The freeze will last 2 to 4 weeks as we spool up testing and everything else we need to get the Release Candidates ready for prime time. If you have outstanding bugs on Jira, please help us help you during this time by making sure all information on them is up to date. Grab the latest GIT Head and see if your bugs have been resolved and someone forgot to close your Jira. If you want to help or need some help diagnosing and issue visit us on IRC via irc.freenode.net/#freeswitch any time. The FreeSWITCH Dev Team !DSPAM:4f5e3c5c32761097310938! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120313/7f0524a3/attachment.html From krice at freeswitch.org Tue Mar 13 17:26:08 2012 From: krice at freeswitch.org (Ken Rice) Date: Tue, 13 Mar 2012 08:26:08 -0600 Subject: [Freeswitch-dev] FreeSWITCH 1.2 is on the horizon. In-Reply-To: <1FFF97C269757C458224B7C895F35F15051BCF@cantor.std.visionutv.se> Message-ID: More information is coming on routine releases, keep on the look out for it. K On 3/13/12 4:01 AM, "Peter Olsson" wrote: > This sounds really great. Even though I personally appreciate the current > stable trunk updates, I believe many users will like a more controlled release > plan. > > /Peter > > > Fr?n: freeswitch-dev-bounces at lists.freeswitch.org > [freeswitch-dev-bounces at lists.freeswitch.org] f?r Ken Rice > [krice at freeswitch.org] > Skickat: den 12 mars 2012 20:19 > Till: FreeSWITCH Users Help; freeswitch-dev at lists.freeswitch.org > ?mne: [Freeswitch-dev] FreeSWITCH 1.2 is on the horizon. > > The FreeSWITCH Development Team is happy to announce that 1.2 is officially on > the horizon. > Starting Wed March 14th 2012, the Development branch of FreeSWITCH will reach > a Feature Freeze. > > What does this mean for you the user? It means we will have a stable known > feature set heading into the Release Candidate Cycle. Only patches that Fix > Bugs will be accepted. If you have a feature you would like to see included, > get us a Jira with a full patch set so we can evaluate its inclusion with 1.2. > > What we need from the community: Testing, Testing, more Testing, and > Documentation Updates. > > The freeze will last 2 to 4 weeks as we spool up testing and everything else > we need to get the Release Candidates ready for prime time. > > If you have outstanding bugs on Jira, please help us help you during this time > by making sure all information on them is up to date. Grab the latest GIT Head > and see if your bugs have been resolved and someone forgot to close your Jira. > > If you want to help or need some help diagnosing and issue visit us on IRC via > irc.freenode.net/#freeswitch any time. > > The FreeSWITCH Dev Team !DSPAM:4f5e3c5c32761097310938! > > > _________________________________________________________________________ > 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/20120313/8cd55339/attachment-0001.html From mitch.capper at gmail.com Wed Mar 14 01:54:43 2012 From: mitch.capper at gmail.com (Mitch Capper) Date: Tue, 13 Mar 2012 15:54:43 -0700 Subject: [Freeswitch-dev] Request for review/commit FS-3188 batchmode for fs_cli prior to feature freeze (From march 2011) Message-ID: http://jira.freeswitch.org/browse/FS-3188 The script basically disables output of color codes / adds more flushing to fs_cli so it can be externally used. While ESL is frequently a better solution there are some cases where external dependencies are not desired. One can also add some more robust features to fs_cli without having to change the sources. It was created over a year ago and has not caused an issue that we have found yet. It was primarily done for fs_logger.pl ( http://jira.freeswitch.org/browse/FS-3945 ) a script meant to allow for much easier one line commands for users looking to submit log files for freeswitch. As this tool is largely useful for new users requiring them to first patch fs_cli prior to using it is a complex step that would be nice to avoid. The changes should have no real effect on fs_cli when the batchmode flag is not passed to it. ~Mitch From msc at freeswitch.org Wed Mar 14 15:24:11 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 14 Mar 2012 05:24:11 -0700 Subject: [Freeswitch-dev] FreeSWITCH Conference Call Today Message-ID: Hello all, Today's agenda is here: http://wiki.freeswitch.org/wiki/FS_weekly_2012_03_14 Ken Rice will be discussing the feature freeze and versioning. Please join the discussion to learn more about how you can help the project get up to version 1.2 as quickly as possible! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120314/a9e8d576/attachment.html From msc at freeswitch.org Wed Mar 14 15:27:55 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 14 Mar 2012 05:27:55 -0700 Subject: [Freeswitch-dev] Request for review/commit FS-3188 batchmode for fs_cli prior to feature freeze (From march 2011) In-Reply-To: References: Message-ID: Personally, I think this batch mode thing is kinda cool. I can think of no compelling reason not to include it. Thoughts? -MC On Tue, Mar 13, 2012 at 3:54 PM, Mitch Capper wrote: > http://jira.freeswitch.org/browse/FS-3188 > > The script basically disables output of color codes / adds more > flushing to fs_cli so it can be externally used. While ESL is > frequently a better solution there are some cases where external > dependencies are not desired. One can also add some more robust > features to fs_cli without having to change the sources. It was > created over a year ago and has not caused an issue that we have found > yet. It was primarily done for fs_logger.pl ( > http://jira.freeswitch.org/browse/FS-3945 ) a script meant to allow > for much easier one line commands for users looking to submit log > files for freeswitch. As this tool is largely useful for new users > requiring them to first patch fs_cli prior to using it is a complex > step that would be nice to avoid. > > The changes should have no real effect on fs_cli when the batchmode > flag is not passed to it. > > ~Mitch > > _________________________________________________________________________ > 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/20120314/d3659443/attachment.html From e.tylepov at btcom.kz Thu Mar 15 12:24:21 2012 From: e.tylepov at btcom.kz (Erjan Tylepov) Date: Thu, 15 Mar 2012 09:24:21 +0000 Subject: [Freeswitch-dev] Usage of ODBC pooling Message-ID: <20120315092421.47c60264@mail.btcom.kz> Hi there! Is this sequence, which should be executed for every db access, is a right way of ODBC connection pooling usage in FS: switch_odbc_handle_new switch_odbc_handle_connect either switch_odbc_handle_exec switch_odbc_statement_handle_free or switch_odbc_handle_callback_exec switch_odbc_handle_disconnect? Regards, YT. From enst.bupt at gmail.com Sat Mar 17 21:58:26 2012 From: enst.bupt at gmail.com (Bing LI) Date: Sat, 17 Mar 2012 14:58:26 -0400 Subject: [Freeswitch-dev] tone_detect_sleep & tone_detect_expires Message-ID: Hi, I just found that tone_detect worked sometimes and sometimes it didn't work. For a short length of tone like 100ms, it worked well. But for a much longer one (700ms or 1sec without pause), it didn't work. This one has not been detected but in the recording file, it was obvious. by this wiki http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect I don't know how exactly the *hits* works. And later I found these 2 variables called *tone_detect_sleep* and *tone_detect_expires. *But I didn't find any explanations about them. Can anybody bring more details? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120317/73f60a6a/attachment.html From msc at freeswitch.org Tue Mar 20 19:08:41 2012 From: msc at freeswitch.org (Michael Collins) Date: Tue, 20 Mar 2012 09:08:41 -0700 Subject: [Freeswitch-dev] tone_detect_sleep & tone_detect_expires In-Reply-To: References: Message-ID: hits is what controls how "long" the tone needs to be present for the detection to be considered positive. The higher the number of hits, the longer the duration of the tone needs to be to form a positive detect. I would experiment with the hits value and see what you can learn. -MC On Sat, Mar 17, 2012 at 11:58 AM, Bing LI wrote: > Hi, > > I just found that tone_detect worked sometimes and sometimes it didn't > work. For a short length of tone like 100ms, it worked well. But for a much > longer one (700ms or 1sec without pause), it didn't work. This one has not > been detected but in the recording file, it was obvious. > > by this wiki > http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect > I don't know how exactly the *hits* works. > > And later I found these 2 variables called *tone_detect_sleep* and *tone_detect_expires. > *But I didn't find any explanations about them. > Can anybody bring more details? > > > 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/20120320/71651449/attachment.html From msc at freeswitch.org Tue Mar 20 19:19:46 2012 From: msc at freeswitch.org (Michael Collins) Date: Tue, 20 Mar 2012 09:19:46 -0700 Subject: [Freeswitch-dev] FreeSWITCH Community Conf Call Tomorrow Message-ID: Hey gang! Tomorrow's agenda page is here: http://wiki.freeswitch.org/wiki/FS_weekly_2012_03_21 We're going to be doing a community scrum. That means no specific topic, but instead we're going to put our heads together and work on ML questions and any other discussion items that come up. In preparation for tomorrow I'd like you all to review the questions that have been coming in to the mailing list. There are lots that haven't been touched. Pick one or two that you either know how to handle or would be able to research and then we'll tackle them tomorrow. Thanks guys! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120320/12f87723/attachment.html From enst.bupt at gmail.com Tue Mar 20 23:01:54 2012 From: enst.bupt at gmail.com (Bing LI) Date: Tue, 20 Mar 2012 16:01:54 -0400 Subject: [Freeswitch-dev] tone_detect_sleep & tone_detect_expires In-Reply-To: References: Message-ID: later I found this bug, http://jira.freeswitch.org/browse/FS-4023 I thought the short one worked and the long one didn't work, I was wrong. Actually my real problems was caused by that bug. the second tone spec I set didn't work. I'm still wondering what is the exactly length does a hit stand for. I'm also curious to know what do these two variables mean. I did some tests. I found that the hits doesn't mean the duration, a long tone doesn't hit more times. If a tone goes on and off, that will increase the hits number Thanks. On Tue, Mar 20, 2012 at 12:08 PM, Michael Collins wrote: > hits is what controls how "long" the tone needs to be present for the > detection to be considered positive. The higher the number of hits, the > longer the duration of the tone needs to be to form a positive detect. I > would experiment with the hits value and see what you can learn. > > -MC > > On Sat, Mar 17, 2012 at 11:58 AM, Bing LI wrote: > >> Hi, >> >> I just found that tone_detect worked sometimes and sometimes it didn't >> work. For a short length of tone like 100ms, it worked well. But for a much >> longer one (700ms or 1sec without pause), it didn't work. This one has not >> been detected but in the recording file, it was obvious. >> >> by this wiki >> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect >> I don't know how exactly the *hits* works. >> >> And later I found these 2 variables called *tone_detect_sleep* and *tone_detect_expires. >> *But I didn't find any explanations about them. >> Can anybody bring more details? >> >> >> 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 >> >> > > _________________________________________________________________________ > 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/20120320/4416b280/attachment-0001.html From fuji246 at gmail.com Thu Mar 22 10:01:01 2012 From: fuji246 at gmail.com (Fu Jiantao) Date: Thu, 22 Mar 2012 15:01:01 +0800 Subject: [Freeswitch-dev] run testanalog problem Message-ID: Hi, I'm trying to run testanalog, but I found it doesn't call ftdm_global_configuration(), is this an error or I'm missing something? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120322/d2680bce/attachment.html From msc at freeswitch.org Thu Mar 22 19:01:58 2012 From: msc at freeswitch.org (Michael Collins) Date: Thu, 22 Mar 2012 09:01:58 -0700 Subject: [Freeswitch-dev] FreeSWITCH Project - Call For Assistance Message-ID: Hello all! As you know, from time to time we come up with little tasks (and some not so little!) that members of the community can handle. I'd like to remind everyone of some the general things they can do to help out. I also have a few specific tasks that require some expertise in various areas. First, I'd like to have everyone check out this poston freeswitch.org. It links to a great article by Andy Lester, who has been doing FLOSS stuff for ages. He offers 14 ways that people can contribute to an open source project, most of which have little to do with actual programming. I highly recommend that you read it, regardless of how long you have been associated with FreeSWITCH or any other open source project. Even if you don't learn anything new you will have something specific to give to a newbie who asks. :) Next, I'd like to remind everyone that we can always use people who download the latest git and give it a test drive. Although we will be doing the 1.0/1.2 branching soon we will still need people to "make current" and try things out. As always, put your bug reports and feature requests in Jira. Note: the reporting bugs page of the wiki has information not only on collecting data (which helps you determine *if* it's really a bug) but also some tips on how to open a proper Jira ticket. Lastly, I'd like to remind everyone that we can always use help in verifying bug reports. It's not glamorous work but it is extremely helpful. Another area where people can help out is spreading the wealth of knowledge. We do this in three primary ways: - Answering questions on the mailing list - Helping people in the IRC channel - Updating the FreeSWITCH wiki It is part of my job to do all three of these, but as you can imagine one person can only accomplish so much. A number of community members have stepped up to help out, and to all of them I would like to say thank you. Also, I would like to remind everyone that I am available to assist those who wish to add to the wiki or who have questions about anything else with respect to answering questions from community members. Here are a few specific things that we talked about yesterday on the FreeSWITCH community conference call. If you have any knowledge or expertise in these areas I would like you to contact me off list and I can give you more information. - Wiki syntax highlighting - I installed a GeSHi-based syntax highlighteron our wiki but it is not working. Anyone with mediawiki or even just plain PHP skills could assist with troubleshooting. - FreeSWITCH debug log syntax highlighting - If anyone has any experience with creating syntax highlighting for any of the popular text editors (Emacs, VIM, Textmate, Notepad++, UltraEdit, etc.) then please let me know. I'd like to get syntax highlighting for at least one text editor in *nix and one in Windows. - Documenting new FreeSWITCH items - on the Feb 8 conference call we talked about a number of new features. Many of these need documentation on the wiki. The task here is to look at each new feature, search the wiki to see if it has been documented, and then to add documentation where needed I know this may seem like a lot of stuff but what I really would like to do is have several people each take one small piece and focus only on it. If we break these down into smaller tasks I think it will be easier to make progress. Please let me know where you would like to help out. If you're feeling adventurous you can even take on a task about which you know very little and then make it a learning project. (I do this all the time. :) Thanks again for all of your help. With the ClueCon season gearing up we are going to need you more than ever. I look forward to working with you in the coming weeks and months. -Michael S Collins -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120322/c7e71a3f/attachment.html From msc at freeswitch.org Fri Mar 23 19:55:44 2012 From: msc at freeswitch.org (Michael Collins) Date: Fri, 23 Mar 2012 09:55:44 -0700 Subject: [Freeswitch-dev] FreeSWITCH Wiki Update: Syntax Highlighting Now Available! Message-ID: Hey all, Hat tip to David Knell for figuring out how to get the GeSHi syntax highlighting to work on wiki.freeswitch.org! If you'd like to have syntax highlighting on a snippet of code just do this: ...code... Languages include: c, perl, python, xml, lua, etc. Example: I added the basic information to this page on the wiki: http://wiki.freeswitch.org/wiki/Documentation_Guidelines#Wiki_Markup If you would like a non-glamorous but useful task to do: feel free to edit each code sample you see to have the tag with the appropriate language. Also, if there are any GeSHi warriors out there who could write a FreeSWITCH Log syntax highlighter module I'm sure that would be welcomed. :) Thanks again! -Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120323/dde286f5/attachment.html From krice at freeswitch.org Fri Mar 23 21:36:07 2012 From: krice at freeswitch.org (Ken Rice) Date: Fri, 23 Mar 2012 13:36:07 -0500 Subject: [Freeswitch-dev] Major Patch Coming this weekend Message-ID: Hey Guys, In prep for 1.2 I?ll be merging a patch that makes some adjustments to the Makefile and configure scripts, this means you?ll have to rebootstrap. This hasn?t been done yet, but heads up its coming.... I?ll follow up to the list once that merge has happened as you?ll know you whats up when your make breaks K -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120323/38c6f8ba/attachment.html From krice at freeswitch.org Sat Mar 24 01:24:52 2012 From: krice at freeswitch.org (Ken Rice) Date: Fri, 23 Mar 2012 17:24:52 -0500 Subject: [Freeswitch-dev] Push possibly breaking things Message-ID: Ok that Push I meantioned is going to happen this evening... If you get breakage on make current or make after doing a pull, rebootstrap and reconfigure. K -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120323/edf83935/attachment.html From moises.silva at gmail.com Sat Mar 24 02:53:33 2012 From: moises.silva at gmail.com (Moises Silva) Date: Fri, 23 Mar 2012 19:53:33 -0400 Subject: [Freeswitch-dev] run testanalog problem In-Reply-To: References: Message-ID: On Thu, Mar 22, 2012 at 3:01 AM, Fu Jiantao wrote: > Hi, > > I'm trying to run testanalog, but I found it doesn't call > ftdm_global_configuration(), is this an error or I'm missing something? > > Those samples have not been updated. At some point the API changed and initialization was split between ftdm_global_init() and ftdm_global_configuration() Some applications do not use freetdm.conf file (which is what ftdm_global_configuration() uses to configure spans and channels) and therefore the API had to be split. The testanalog and probably other sample apps need to be updated ... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120323/8d80f5d6/attachment.html From daggelinckxmichel at gmail.com Sun Mar 25 19:10:40 2012 From: daggelinckxmichel at gmail.com (Michel Daggelinckx) Date: Sun, 25 Mar 2012 17:10:40 +0200 Subject: [Freeswitch-dev] CentOS for ARM In-Reply-To: <4F6F28F0.4090604@redsleeve.org> References: <4F6F28F0.4090604@redsleeve.org> Message-ID: <4F6F3570.4090608@gmail.com> Our favorite distro goes ARM. This gives a platform that feels like home and should have all our recepies work like a charm. Michel -------- Originele bericht -------- Onderwerp: [CentOS] CentOS for ARM Datum: Sun, 25 Mar 2012 15:17:20 +0100 Van: Gordan Bobic Antwoord-naar: CentOS mailing list Aan: centos-devel at centos.org, centos at centos.org Hi guys, I recently became aware that this is being worked on as of recently. A similar thing already exists, though. Those interested in an ARM port may also be interested in taking a look at RedSleeve Linux, which is an ARM port of the same upstream distribution as CentOS. You can look here for more info: http://www.redsleeve.org/about/ http://www.redsleeve.org/ In total 109 SRPMs had to be modified in order to get them to build and work on ARM. They are in SRPMS/changed directory on the RedSleeve mirror. (Note: About 5 of those 109 were changed in order to remove the upstream branding which isn't relevant to the CentOS effort as it is already taken care of. It is quite well known what those are.) I hope this is of interest to the CentOS ARM port efforts. Or, you could take RedSleeve for a spin, since that is already available. :) Gordan _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120325/7b08b998/attachment-0001.html From abaci64 at gmail.com Mon Mar 26 22:12:44 2012 From: abaci64 at gmail.com (Abaci) Date: Mon, 26 Mar 2012 14:12:44 -0400 Subject: [Freeswitch-dev] FreeSWITCH Wiki Update: Syntax Highlighting Now Available! In-Reply-To: References: Message-ID: <4F70B19C.3060506@gmail.com> seems like it's ignoring the 'blockquote' now. see http://wiki.freeswitch.org/wiki/Dialplan_XML#Anatomy_of_the_XML_Dialplan On 3/23/2012 12:55 PM, Michael Collins wrote: > Hey all, > > Hat tip to David Knell for figuring out how to get the GeSHi syntax > highlighting to work on wiki.freeswitch.org > ! If you'd like to have syntax > highlighting on a snippet of code just do this: > > > ...code... > > > Languages include: c, perl, python, xml, lua, etc. > > Example: > > > > > > > > > > > I added the basic information to this page on the wiki: > http://wiki.freeswitch.org/wiki/Documentation_Guidelines#Wiki_Markup > > If you would like a non-glamorous but useful task to do: feel free to > edit each code sample you see to have the tag with the > appropriate language. Also, if there are any GeSHi warriors out there > who could write a FreeSWITCH Log syntax highlighter module I'm sure > that would be welcomed. :) > > Thanks again! > -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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120326/0bd6cadd/attachment.html From anita.hall at simmortel.com Tue Mar 27 02:51:02 2012 From: anita.hall at simmortel.com (Anita Hall) Date: Tue, 27 Mar 2012 04:21:02 +0530 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c Message-ID: Hi This is my first post to dev mailing list and I am pretty excited :) I want the uuid prefixed for spandsp internal messages in the log. I noticed these are the ones printed by line 285 in mod_spandsp_fax.c switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); The lines which do print the uuid use the session variable switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "=== Negotiation Result =============\n"); So basically, I have to modify the function void spanfax_log_message(int level, const char *msg) so that it accepts user_data from which I can get the session. What other change do I have to do to make sure that this new function definition will be used correctly else where? And, if I am not thinking in the right direction, is there a simpler way to achieve this ? Thanks. regards, Anita -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120327/8f3a1419/attachment.html From mitch.capper at gmail.com Tue Mar 27 04:16:40 2012 From: mitch.capper at gmail.com (Mitch Capper) Date: Mon, 26 Mar 2012 17:16:40 -0700 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: References: Message-ID: Anita have you tried in logfile.conf.xml setting: per http://wiki.freeswitch.org/wiki/Debugging_Freeswitch#UUID_Stamp_at_each_DEBUG_line It may already handle things. ~Mitch From anita.hall at simmortel.com Tue Mar 27 12:15:17 2012 From: anita.hall at simmortel.com (Anita Hall) Date: Tue, 27 Mar 2012 13:45:17 +0530 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: References: Message-ID: Yes Mitch, I did that but the Fax internal messages are printed by this line which has no knowledge of the session. switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); I do not think, it can print the uuid without knowing the session ? Here is a log snippet to show uuid prefixed at other places except line 286 of mod_spandsp_fax.c shown above 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 1... ....= Extension indicator: Set 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... ..0.= Compressed/uncompressed mode: Compressed 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... .1..= Error correction mode (ECM): ECM 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... 0...= Frame size: 256 octets 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .1.. ....= T.6 coding: Set 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 0... ....= Extension indicator: Not set 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Selected compression T.6 (3) 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:327 === Negotiation Result ======================================================= 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:328 Remote station id: 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:329 Local station id: Sangoma Fax Ident 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:330 Transfer Rate: 4800 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:332 ECM status on 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:333 remote country: 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:334 remote vendor: 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:335 remote model: 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:337 ========================================================================= regards, Anita -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120327/a74e9a41/attachment.html From e.tylepov at btcom.kz Tue Mar 27 13:40:17 2012 From: e.tylepov at btcom.kz (Erjan Tylepov) Date: Tue, 27 Mar 2012 09:40:17 +0000 Subject: [Freeswitch-dev] Fw: Usage of ODBC pooling Message-ID: <20120327094017.cb38d3ca@mail.btcom.kz> Hi all! I guess, that mod_nibblebill's functions bill_event and get_balance lacks either mutex locking or connection pooling. Could someone check this out? What will happen if two or more calls (threads) get into those functions, i.e. there's a probability, that they'll use globals.master_odbc simultaniously? ----- Original Message ----- From: Erjan Tylepov [mailto:e.tylepov at btcom.kz] To: freeswitch-dev at lists.freeswitch.org Sent: Thu, 15 Mar 2012 09:24:21 +0000 Subject: Usage of ODBC pooling > Hi there! > > Is this sequence, which should be executed for every db access, is a right > way of ODBC connection pooling usage in FS: > switch_odbc_handle_new > switch_odbc_handle_connect > either > switch_odbc_handle_exec > switch_odbc_statement_handle_free > or > switch_odbc_handle_callback_exec > switch_odbc_handle_disconnect? > > Regards, > YT. From msc at freeswitch.org Tue Mar 27 19:52:26 2012 From: msc at freeswitch.org (Michael Collins) Date: Tue, 27 Mar 2012 08:52:26 -0700 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: References: Message-ID: Anita, It looks like this function is only called from On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall wrote: > Yes Mitch, I did that but the Fax internal messages are printed by this > line which has no knowledge of the session. > switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); > > I do not think, it can print the uuid without knowing the session ? > > Here is a log snippet to show uuid prefixed at other places except line > 286 of mod_spandsp_fax.c shown above > > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 1... > ....= Extension indicator: Set > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... > ..0.= Compressed/uncompressed mode: Compressed > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... > .1..= Error correction mode (ECM): ECM > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... > 0...= Frame size: 256 octets > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .1.. > ....= T.6 coding: Set > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 0... > ....= Extension indicator: Not set > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > Selected compression T.6 (3) > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:327 === Negotiation Result > ======================================================= > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:328 Remote station id: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:329 Local station id: Sangoma Fax Ident > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:330 Transfer Rate: 4800 > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:332 ECM status on > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:333 remote country: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:334 remote vendor: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:335 remote model: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:337 > ========================================================================= > > > regards, > Anita > > _________________________________________________________________________ > 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/20120327/440347a9/attachment-0001.html From anita.hall at simmortel.com Tue Mar 27 19:55:21 2012 From: anita.hall at simmortel.com (Anita Hall) Date: Tue, 27 Mar 2012 21:25:21 +0530 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: References: Message-ID: Hi MC Only called from where ? regards, Anita On Tue, Mar 27, 2012 at 9:22 PM, Michael Collins wrote: > Anita, > > It looks like this function is only called from > > On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall wrote: > >> Yes Mitch, I did that but the Fax internal messages are printed by this >> line which has no knowledge of the session. >> switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); >> >> I do not think, it can print the uuid without knowing the session ? >> >> Here is a log snippet to show uuid prefixed at other places except line >> 286 of mod_spandsp_fax.c shown above >> >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 1... >> ....= Extension indicator: Set >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >> ..0.= Compressed/uncompressed mode: Compressed >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >> .1..= Error correction mode (ECM): ECM >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >> 0...= Frame size: 256 octets >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .1.. >> ....= T.6 coding: Set >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 0... >> ....= Extension indicator: Not set >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 >> Selected compression T.6 (3) >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:327 === Negotiation Result >> ======================================================= >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:328 Remote station id: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:329 Local station id: Sangoma Fax Ident >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:330 Transfer Rate: 4800 >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:332 ECM status on >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:333 remote country: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:334 remote vendor: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:335 remote model: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:337 >> ========================================================================= >> >> >> regards, >> Anita >> >> _________________________________________________________________________ >> 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/20120327/e5471154/attachment.html From msc at freeswitch.org Tue Mar 27 19:56:40 2012 From: msc at freeswitch.org (Michael Collins) Date: Tue, 27 Mar 2012 08:56:40 -0700 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: References: Message-ID: *SIGH* evidently there's a magic keystroke that means "send" in GMail and I accidentally pressed it. As I was saying, it looks like this function is only called 6 times: <139>:grep -n spanfax_log_message mod_spandsp_fax.c 262:void spanfax_log_message(int level, const char *msg) 716: span_log_set_message_handler(&fax->logging, spanfax_log_message); 717: span_log_set_message_handler(&t30->logging, spanfax_log_message); 772: span_log_set_message_handler(&t38->logging, spanfax_log_message); 773: span_log_set_message_handler(&t30->logging, spanfax_log_message); 827: span_log_set_message_handler(&pvt->t38_gateway_state->logging, spanfax_log_message); 828: span_log_set_message_handler(&pvt->t38_core->logging, spanfax_log_message); I'd wager that each of those calls to the logging function would have knowledge of the sesssion. I'd recommend adding a 3rd argument to the logging function. In this case, I'd just add a const char *uuid and then change each call to that function to supply the UUID as the 3rd argument. If there is no knowledge of the session or uuid then just put an empty string as the argument. In any case, happy coding! :) -MC On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall wrote: > Yes Mitch, I did that but the Fax internal messages are printed by this > line which has no knowledge of the session. > switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); > > I do not think, it can print the uuid without knowing the session ? > > Here is a log snippet to show uuid prefixed at other places except line > 286 of mod_spandsp_fax.c shown above > > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 1... > ....= Extension indicator: Set > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... > ..0.= Compressed/uncompressed mode: Compressed > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... > .1..= Error correction mode (ECM): ECM > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... > 0...= Frame size: 256 octets > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .1.. > ....= T.6 coding: Set > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 0... > ....= Extension indicator: Not set > 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > Selected compression T.6 (3) > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:327 === Negotiation Result > ======================================================= > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:328 Remote station id: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:329 Local station id: Sangoma Fax Ident > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:330 Transfer Rate: 4800 > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:332 ECM status on > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:333 remote country: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:334 remote vendor: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:335 remote model: > 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] > mod_spandsp_fax.c:337 > ========================================================================= > > > regards, > Anita > > _________________________________________________________________________ > 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/20120327/57e04ec0/attachment.html From anthony.minessale at gmail.com Tue Mar 27 21:18:42 2012 From: anthony.minessale at gmail.com (Anthony Minessale) Date: Tue, 27 Mar 2012 12:18:42 -0500 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: References: Message-ID: I think you would need to change spandsp itself to allow a private pointer to pass to the logging callback or you're out of luck. On Tue, Mar 27, 2012 at 10:56 AM, Michael Collins wrote: > *SIGH* evidently there's a magic keystroke that means "send" in GMail and I > accidentally pressed it. > > As I was saying, it looks like this function is only called 6 times: > > <139>:grep -n spanfax_log_message mod_spandsp_fax.c > 262:void spanfax_log_message(int level, const char *msg) > 716:??? ??? span_log_set_message_handler(&fax->logging, > spanfax_log_message); > 717:??? ??? span_log_set_message_handler(&t30->logging, > spanfax_log_message); > 772:??????????? span_log_set_message_handler(&t38->logging, > spanfax_log_message); > 773:??????????? span_log_set_message_handler(&t30->logging, > spanfax_log_message); > 827:???? span_log_set_message_handler(&pvt->t38_gateway_state->logging, > spanfax_log_message); > 828:???? span_log_set_message_handler(&pvt->t38_core->logging, > spanfax_log_message); > > I'd wager that each of those calls to the logging function would have > knowledge of the sesssion. I'd recommend adding a 3rd argument to the > logging function. In this case, I'd just add a const char *uuid and then > change each call to that function to supply the UUID as the 3rd argument. If > there is no knowledge of the session or uuid then just put an empty string > as the argument. > > In any case, happy coding! :) > > -MC > > > On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall > wrote: >> >> Yes Mitch, I did that but the Fax internal messages are printed by this >> line which has no knowledge of the session. >> ? switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); >> >> I do not think, it can print the uuid without knowing the session ? >> >> Here is a log snippet to show uuid prefixed at other places except line >> 286 of mod_spandsp_fax.c shown above >> >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30?? 1... >> ....= Extension indicator: Set >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30?? .... >> ..0.= Compressed/uncompressed mode: Compressed >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30?? .... >> .1..= Error correction mode (ECM): ECM >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30?? .... >> 0...= Frame size: 256 octets >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30?? .1.. >> ....= T.6 coding: Set >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30?? 0... >> ....= Extension indicator: Not set >> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 >> Selected compression T.6 (3) >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:327 === Negotiation Result >> ======================================================= >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:328 Remote station id: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:329 Local station id:? Sangoma Fax Ident >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:330 Transfer Rate:???? 4800 >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:332 ECM status???????? on >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:333 remote country: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:334 remote vendor: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:335 remote model: >> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >> mod_spandsp_fax.c:337 >> ========================================================================= >> >> >> regards, >> Anita >> >> _________________________________________________________________________ >> 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 msc at freeswitch.org Tue Mar 27 21:34:49 2012 From: msc at freeswitch.org (Michael Collins) Date: Tue, 27 Mar 2012 10:34:49 -0700 Subject: [Freeswitch-dev] Congrats to Gabe Gunderson - New Baby Girl Message-ID: Hey all, Just a hat tip to Gabe Gunderson (IRC: gundy) whose wife delivered a baby girl yesterday! Now that that business is done he's back to the office to work on the ClueCon website. :P Congrats Gabe! We'll expect to see some pics when we're all having a beer at ClueCon. -MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120327/470cb926/attachment.html From steveu at coppice.org Tue Mar 27 22:20:31 2012 From: steveu at coppice.org (Steve Underwood) Date: Wed, 28 Mar 2012 02:20:31 +0800 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: References: Message-ID: <4F7204EF.40207@coppice.org> I can add an additional user controlled opaque pointer to each instance of spandsp's logging, and extend the callbacks to pass that pointer to the application. Most other things in spandsp pass opaque pointers in callbacks, so it would kind of complete the set. Steve On 03/28/2012 01:18 AM, Anthony Minessale wrote: > I think you would need to change spandsp itself to allow a private > pointer to pass to the logging callback or you're out of luck. > > > > On Tue, Mar 27, 2012 at 10:56 AM, Michael Collins wrote: >> *SIGH* evidently there's a magic keystroke that means "send" in GMail and I >> accidentally pressed it. >> >> As I was saying, it looks like this function is only called 6 times: >> >> <139>:grep -n spanfax_log_message mod_spandsp_fax.c >> 262:void spanfax_log_message(int level, const char *msg) >> 716: span_log_set_message_handler(&fax->logging, >> spanfax_log_message); >> 717: span_log_set_message_handler(&t30->logging, >> spanfax_log_message); >> 772: span_log_set_message_handler(&t38->logging, >> spanfax_log_message); >> 773: span_log_set_message_handler(&t30->logging, >> spanfax_log_message); >> 827: span_log_set_message_handler(&pvt->t38_gateway_state->logging, >> spanfax_log_message); >> 828: span_log_set_message_handler(&pvt->t38_core->logging, >> spanfax_log_message); >> >> I'd wager that each of those calls to the logging function would have >> knowledge of the sesssion. I'd recommend adding a 3rd argument to the >> logging function. In this case, I'd just add a const char *uuid and then >> change each call to that function to supply the UUID as the 3rd argument. If >> there is no knowledge of the session or uuid then just put an empty string >> as the argument. >> >> In any case, happy coding! :) >> >> -MC >> >> >> On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall >> wrote: >>> Yes Mitch, I did that but the Fax internal messages are printed by this >>> line which has no knowledge of the session. >>> switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); >>> >>> I do not think, it can print the uuid without knowing the session ? >>> >>> Here is a log snippet to show uuid prefixed at other places except line >>> 286 of mod_spandsp_fax.c shown above >>> >>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 1... >>> ....= Extension indicator: Set >>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >>> ..0.= Compressed/uncompressed mode: Compressed >>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >>> .1..= Error correction mode (ECM): ECM >>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >>> 0...= Frame size: 256 octets >>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .1.. >>> ....= T.6 coding: Set >>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 0... >>> ....= Extension indicator: Not set >>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 >>> Selected compression T.6 (3) >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:327 === Negotiation Result >>> ======================================================= >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:328 Remote station id: >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:329 Local station id: Sangoma Fax Ident >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:330 Transfer Rate: 4800 >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:332 ECM status on >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:333 remote country: >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:334 remote vendor: >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:335 remote model: >>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>> mod_spandsp_fax.c:337 >>> ========================================================================= >>> >>> >>> regards, >>> Anita >>> >>> _________________________________________________________________________ >>> 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 gabe at gundy.org Wed Mar 28 12:07:46 2012 From: gabe at gundy.org (Gabriel Gunderson) Date: Wed, 28 Mar 2012 02:07:46 -0600 Subject: [Freeswitch-dev] [Freeswitch-users] Congrats to Gabe Gunderson - New Baby Girl In-Reply-To: References: Message-ID: On Tue, Mar 27, 2012 at 11:34 AM, Michael Collins wrote: > Just a hat tip to Gabe Gunderson (IRC: gundy) whose wife delivered a baby > girl yesterday! Now that that business is done he's back to the office to > work on the ClueCon website. :P Imagine my surprise when I jump on the list and spotted this :) Thanks for the congrats! And yes, the ClueCon site is going to get *lots* of attention tomorrow. > Congrats Gabe! We'll expect to see some pics when we're all having a beer at > ClueCon. Pics go here: http://gundy.org/ We'll mingle for sure, but club soda or Diet Coke for me ;) We really are looking forward to the next ClueCon. We had a great time last year and are counting down the days until this year's conference! Best, Gabe From math.parent at gmail.com Wed Mar 28 15:34:33 2012 From: math.parent at gmail.com (Mathieu Parent) Date: Wed, 28 Mar 2012 13:34:33 +0200 Subject: [Freeswitch-dev] Busy trigger implementation in mod_skinny In-Reply-To: <4F72EBDE.1030401@power.com.pl> References: <4F72EBDE.1030401@power.com.pl> Message-ID: (cc-ing freeswitch-dev) Le 28 mars 2012 12:45, Konrad Wyrozumski a ?crit : > Hi Math, Hi Konrad, > I'm working on busy trigger for skinny mod for freeswitch. The thing I want > to implement is ability to put phone into busy state, depending of some > situations (hook off, call etc.). I saw your comments in > mod_skinny.c:channel_on_routing_callback from commit: > b8ac781c05443f8a269a5fba828bbbfd3d7873f3. > Do you have any plans, or suggestions, where should this, or supposed to be > implemented? Please read http://wiki.freeswitch.org/wiki/Mod_skinny/Development#TODO and keep in mind that some other features are closely related to Busy: - CFwdAll, CFwdBusy, CFwdNoAnswer: - DoNotDisturb: this also affects ringing - Ring policies: they will be easily implemented once the busy state is available - "Better behavior (when: other leg busy, ...) ", - maybe more Of course, you don't need to implement all those at once. > As far as I understand, this should be just after positive destination > matching method? There must be two things: - set call state to busy accordig to various conditions (the busy trigger) on the called phone (using switch_channel_hangup, around skinny_ring_lines or related) - handle this call state on the calling side (probably already done in mod_skinny.c line 784, function channel_on_hangup_callback) You can ask on @freeswitch-dev mailing list (or IRC), to code it the right way (the busy management should work from and to mod_sofia also). > Thanks for your response. Thanks for you proposal ;-) Once you have something working, put it in Jira. I will review and commit. -- Mathieu Parent From krice at freeswitch.org Wed Mar 28 19:05:27 2012 From: krice at freeswitch.org (Ken Rice) Date: Wed, 28 Mar 2012 10:05:27 -0500 Subject: [Freeswitch-dev] Open Bugs on Jira and Call for help Message-ID: If you have open bugs on Jira, please make sure they are up to date on any all information.... If you wish to address a specific bug, please visit us on the weekly conference call so we can address them... We?re getting close to time for rolling Release Candidate for 1.2 and we want to address as many of these as possible... Also, I?m looking for some configuration documentation help. If you?ve pulled git in the past few days you?ll notice that in the module src directories there is now a conf directory, we need some help with making sure all the configuration options are documented and what their default settings are. The end goal is to get all the options documented in their default states. What skills do you need? The ability to read a little C, and the ability to use a text editor to edit/create configs... K -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20120328/47c3c451/attachment.html From steveu at coppice.org Wed Mar 28 19:41:17 2012 From: steveu at coppice.org (Steve Underwood) Date: Wed, 28 Mar 2012 23:41:17 +0800 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: <4F7204EF.40207@coppice.org> References: <4F7204EF.40207@coppice.org> Message-ID: <4F73311D.9040904@coppice.org> Hi, I have commited changes to spandsp which introduces an additional opaque pointer argument to the spandsp logging routines. I have also changed mod_spandsp so it basically handles this parameter. However, right now NULL is always being passed. Someone is welcome to now start using this feature in a more meaningful way. Steve On 03/28/2012 02:20 AM, Steve Underwood wrote: > I can add an additional user controlled opaque pointer to each instance > of spandsp's logging, and extend the callbacks to pass that pointer to > the application. Most other things in spandsp pass opaque pointers in > callbacks, so it would kind of complete the set. > > Steve > > > On 03/28/2012 01:18 AM, Anthony Minessale wrote: >> I think you would need to change spandsp itself to allow a private >> pointer to pass to the logging callback or you're out of luck. >> >> >> >> On Tue, Mar 27, 2012 at 10:56 AM, Michael Collins wrote: >>> *SIGH* evidently there's a magic keystroke that means "send" in GMail and I >>> accidentally pressed it. >>> >>> As I was saying, it looks like this function is only called 6 times: >>> >>> <139>:grep -n spanfax_log_message mod_spandsp_fax.c >>> 262:void spanfax_log_message(int level, const char *msg) >>> 716: span_log_set_message_handler(&fax->logging, >>> spanfax_log_message); >>> 717: span_log_set_message_handler(&t30->logging, >>> spanfax_log_message); >>> 772: span_log_set_message_handler(&t38->logging, >>> spanfax_log_message); >>> 773: span_log_set_message_handler(&t30->logging, >>> spanfax_log_message); >>> 827: span_log_set_message_handler(&pvt->t38_gateway_state->logging, >>> spanfax_log_message); >>> 828: span_log_set_message_handler(&pvt->t38_core->logging, >>> spanfax_log_message); >>> >>> I'd wager that each of those calls to the logging function would have >>> knowledge of the sesssion. I'd recommend adding a 3rd argument to the >>> logging function. In this case, I'd just add a const char *uuid and then >>> change each call to that function to supply the UUID as the 3rd argument. If >>> there is no knowledge of the session or uuid then just put an empty string >>> as the argument. >>> >>> In any case, happy coding! :) >>> >>> -MC >>> >>> >>> On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall >>> wrote: >>>> Yes Mitch, I did that but the Fax internal messages are printed by this >>>> line which has no knowledge of the session. >>>> switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); >>>> >>>> I do not think, it can print the uuid without knowing the session ? >>>> >>>> Here is a log snippet to show uuid prefixed at other places except line >>>> 286 of mod_spandsp_fax.c shown above >>>> >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 1... >>>> ....= Extension indicator: Set >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >>>> ..0.= Compressed/uncompressed mode: Compressed >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >>>> .1..= Error correction mode (ECM): ECM >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .... >>>> 0...= Frame size: 256 octets >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 .1.. >>>> ....= T.6 coding: Set >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 0... >>>> ....= Extension indicator: Not set >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 >>>> Selected compression T.6 (3) >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:327 === Negotiation Result >>>> ======================================================= >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:328 Remote station id: >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:329 Local station id: Sangoma Fax Ident >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:330 Transfer Rate: 4800 >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:332 ECM status on >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:333 remote country: >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:334 remote vendor: >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:335 remote model: >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 [DEBUG] >>>> mod_spandsp_fax.c:337 >>>> ========================================================================= >>>> >>>> >>>> regards, >>>> Anita From msc at freeswitch.org Wed Mar 28 19:47:41 2012 From: msc at freeswitch.org (Michael Collins) Date: Wed, 28 Mar 2012 08:47:41 -0700 Subject: [Freeswitch-dev] uuid in mod_spandsp_fax.c In-Reply-To: <4F73311D.9040904@coppice.org> References: <4F7204EF.40207@coppice.org> <4F73311D.9040904@coppice.org> Message-ID: Steve, Thanks for doing this! Anita: take a look at Steve's changes and see if you can add the UUID logging. The gang here will be happy to answer any follow up questions. -MC On Wed, Mar 28, 2012 at 8:41 AM, Steve Underwood wrote: > Hi, > > I have commited changes to spandsp which introduces an additional opaque > pointer argument to the spandsp logging routines. I have also changed > mod_spandsp so it basically handles this parameter. However, right now > NULL is always being passed. Someone is welcome to now start using this > feature in a more meaningful way. > > Steve > > > On 03/28/2012 02:20 AM, Steve Underwood wrote: > > I can add an additional user controlled opaque pointer to each instance > > of spandsp's logging, and extend the callbacks to pass that pointer to > > the application. Most other things in spandsp pass opaque pointers in > > callbacks, so it would kind of complete the set. > > > > Steve > > > > > > On 03/28/2012 01:18 AM, Anthony Minessale wrote: > >> I think you would need to change spandsp itself to allow a private > >> pointer to pass to the logging callback or you're out of luck. > >> > >> > >> > >> On Tue, Mar 27, 2012 at 10:56 AM, Michael Collins > wrote: > >>> *SIGH* evidently there's a magic keystroke that means "send" in GMail > and I > >>> accidentally pressed it. > >>> > >>> As I was saying, it looks like this function is only called 6 times: > >>> > >>> <139>:grep -n spanfax_log_message mod_spandsp_fax.c > >>> 262:void spanfax_log_message(int level, const char *msg) > >>> 716: span_log_set_message_handler(&fax->logging, > >>> spanfax_log_message); > >>> 717: span_log_set_message_handler(&t30->logging, > >>> spanfax_log_message); > >>> 772: span_log_set_message_handler(&t38->logging, > >>> spanfax_log_message); > >>> 773: span_log_set_message_handler(&t30->logging, > >>> spanfax_log_message); > >>> 827: span_log_set_message_handler(&pvt->t38_gateway_state->logging, > >>> spanfax_log_message); > >>> 828: span_log_set_message_handler(&pvt->t38_core->logging, > >>> spanfax_log_message); > >>> > >>> I'd wager that each of those calls to the logging function would have > >>> knowledge of the sesssion. I'd recommend adding a 3rd argument to the > >>> logging function. In this case, I'd just add a const char *uuid and > then > >>> change each call to that function to supply the UUID as the 3rd > argument. If > >>> there is no knowledge of the session or uuid then just put an empty > string > >>> as the argument. > >>> > >>> In any case, happy coding! :) > >>> > >>> -MC > >>> > >>> > >>> On Tue, Mar 27, 2012 at 1:15 AM, Anita Hall > >>> wrote: > >>>> Yes Mitch, I did that but the Fax internal messages are printed by > this > >>>> line which has no knowledge of the session. > >>>> switch_log_printf(SWITCH_CHANNEL_LOG, fs_log_level, "%s", msg); > >>>> > >>>> I do not think, it can print the uuid without knowing the session ? > >>>> > >>>> Here is a log snippet to show uuid prefixed at other places except > line > >>>> 286 of mod_spandsp_fax.c shown above > >>>> > >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > 1... > >>>> ....= Extension indicator: Set > >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > .... > >>>> ..0.= Compressed/uncompressed mode: Compressed > >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > .... > >>>> .1..= Error correction mode (ECM): ECM > >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > .... > >>>> 0...= Frame size: 256 octets > >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > .1.. > >>>> ....= T.6 coding: Set > >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > 0... > >>>> ....= Extension indicator: Not set > >>>> 2012-03-27 13:40:38.604877 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 > >>>> Selected compression T.6 (3) > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:327 === Negotiation Result > >>>> ======================================================= > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:328 Remote station id: > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:329 Local station id: Sangoma Fax Ident > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:330 Transfer Rate: 4800 > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:332 ECM status on > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:333 remote country: > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:334 remote vendor: > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:335 remote model: > >>>> 46736448-77e4-11e1-855c-b3286880c45b 2012-03-27 13:40:38.604877 > [DEBUG] > >>>> mod_spandsp_fax.c:337 > >>>> > ========================================================================= > >>>> > >>>> > >>>> regards, > >>>> Anita > > > _________________________________________________________________________ > 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/20120328/b29781c3/attachment.html From anton.vazir at gmail.com Wed Mar 28 22:59:42 2012 From: anton.vazir at gmail.com (Anton VG) Date: Wed, 28 Mar 2012 23:59:42 +0500 Subject: [Freeswitch-dev] ESL events, header data in non-ascii characters and unicode hell Message-ID: Guys, Some users enter their name in unicode (non ascii chars) - russian for example or french When using Python ESL in Python3 - I get this weird behavior. ESLevent already attempted to be returned as a unicode str, and damn Py3 attempts to unicode it before I can catch an exception in the ESL.py code and remove the non ascii chars or handle it another way. (python 2 have been just passing the bytes over) File "/home/anton/GIT/auth_server/ESL/ESL.py", line 78, in getHeader def getHeader(self, *args): return _ESL.ESLevent_getHeader(self, *args) UnicodeDecodeError: 'utf8' codec can't decode byte 0xef in position 1: invalid continuation byte While the data is ascii or unicode correct, all OK. Please help determine where I can tap in to have headers data to be cast as bytes before passed over to PythonLIB As ESL and other libs are automatically compiled using SWIG - I have no idea yet where to look at. From anton.vazir at gmail.com Thu Mar 29 14:32:46 2012 From: anton.vazir at gmail.com (Anton VG) Date: Thu, 29 Mar 2012 15:32:46 +0500 Subject: [Freeswitch-dev] ESL events, header data in non-ascii characters and unicode hell In-Reply-To: References: Message-ID: Fixed that... for those who interested: esl_wrap.cpp must be changed to return bytes instead PyUnicode object: Unfortunately this is manual quick hack, and not the way to change the SWIG ESL.i, so the FS way would be the type mapping maybe. and this allows us to deal with exceptions and codings/decodings in our code instead of uncatchable hard error. SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize(const char* carray, size_t size) { char *cstr1; if (carray) { if (size > INT_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ?. SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); } else { #if PY_VERSION_HEX >= 0x03000000 return PyBytes_FromStringAndSize(carray, static_cast< int >(size)); //return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); #else return PyString_FromStringAndSize(carray, static_cast< int >(size)); #endif } } else { return SWIG_Py_Void(); } } 2012/3/28 Anton VG : > Guys, > > Some users enter their name in unicode (non ascii chars) - russian for > example or french > > When using Python ESL in Python3 - I get this weird behavior. > ESLevent already attempted to be returned as a unicode str, and damn > Py3 attempts to unicode it before > I can catch an exception in the ESL.py code and remove the non ascii > chars or handle it another way. > > (python 2 have been just passing the bytes over) > > ?File "/home/anton/GIT/auth_server/ESL/ESL.py", line 78, in getHeader > ? ?def getHeader(self, *args): return _ESL.ESLevent_getHeader(self, *args) > UnicodeDecodeError: 'utf8' codec can't decode byte 0xef in position 1: > invalid continuation byte > > While the data is ascii or unicode correct, all OK. > > Please help determine where I can tap in to have headers data to be > cast as bytes before passed over to PythonLIB > > As ESL and other libs are automatically compiled using SWIG - I have > no idea yet where to look at.