Re: [Freeswitch-users] Sangoma A500 - dial out from specific port group?

2009-09-08 Thread Vassil Panayotov
Sorry I hit 'send' by mistake... Hi, Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces. I tried to modify OpenZAP config as follows: conf/openzap.conf [span wa

[Freeswitch-users] Sangoma A500 - dial out from specific port group?

2009-09-08 Thread Vassil Panayotov
Hi, Is it possible to originate calls from specific A500 ports with FreeSWITCH? I am using a A504 (8 BRI interfaces), and I want some outbound calls to be made from specific BRI interfaces. I tried to modify OpenZAP config as follows: conf/openzap.conf [span wanpipe boostbri1] trunk_type => bri

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Mathieu Rene
"Is the trypop method returning without unlocking the mutex?" No, since the condition returns if a lock could NOT be acquired. (hence the try). Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mr...@avgs.ca On 8-Sep-09, at 10:46 PM, Josh

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Josh Rivers
I'm running of the binary release, so I don't have debug symbols for the freeswitch core. I can do a build...but does somebody else already have one handy? -Josh On Tue, Sep 8, 2009 at 10:33 PM, Mathieu Rene wrote: > Click Break, then go in Window, Debug, Stack Trace (or something similar, I > d

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Josh Rivers
I confirmed that pop(1) works for me. since it's spinning in it's own thread, that's probably the right solution. These are the relevant pieces of core code, though: APU_DECLARE(apr_status_t) apr_queue_trypop(apr_queue_t *queue, void **data) { apr_status_t rv; if (queue->terminated) {

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Josh Rivers
You are probably right, but commenting out the msleep doesn't prevent the crash. -Josh On Tue, Sep 8, 2009 at 11:12 AM, Phillip Jones wrote: > What is: > > freeswitch.msleep(100); > > Why aren't you using Thread.Sleep? > > > On Tue, Sep 8, 2009 at 2:21 AM, Josh Rivers wrote: > >> Thanks for the

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Mathieu Rene
Click Break, then go in Window, Debug, Stack Trace (or something similar, I don't have any VS nearby), then copy paste that. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mr...@avgs.ca On 8-Sep-09, at 10:30 PM, Josh Rivers wrote: Here

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Josh Rivers
Here is the error I get with the loop I mentioned. -Josh [image: Capture.PNG] On Tue, Sep 8, 2009 at 5:05 AM, Michael Giagnocavo wrote: > Hi, > > > > Can you please elaborate on the crash you receive when you > queue a thread during load? > > > > Thanks, > > Michael > > > > *From

Re: [Freeswitch-users] Using mod_managed to create full FreeSWITCH modules

2009-09-08 Thread Josh Rivers
Thanks. I can stop trying to figure out how to do that then. -Josh On Tue, Sep 8, 2009 at 5:12 AM, Michael Giagnocavo wrote: > Are you looking to run when mod_managed shuts down? Or when your managed > plugin reloads, or something else? (mod_managed is not unloadable, so I > don’t believe it get

[Freeswitch-users] nibblebill zero balance

2009-09-08 Thread Gabriel Kuri
We've been testing mod_nibblebill, it's a great module, cheers to the author! A couple questions regarding nibblebill: 1) We noticed that when an account is below the minimum balance and a call is attempted with that account, FS begins to connect the B leg for the call but then cancels the INV

[Freeswitch-users] mod_opal segmentation fault error

2009-09-08 Thread Rogelio Perez
Hi guys, My FS setup was working smoothly with mod_opal enabled until I had to rebuild everything from scratch. Now I have compiled everything following the same procedure (I even have a script for that) and mod_opal stopped working. The SVN commands are: svn co https://opalvoip.svn.sourcefor

Re: [Freeswitch-users] ESL: DTMF event is not coming

2009-09-08 Thread Nagalenoj
Yes.!! I missed "async" keyword in dialplan in freeswitch-1.0.4. Thanks.. Anthony Minessale-2 wrote: > > did you specify the "async" keyword to the socket app in your dialplan? > > On Mon, Sep 7, 2009 at 2:47 AM, Nagalenoj wrote: > >> >> Dear friends, >> I am using freeswitch-1.0.4. When I

Re: [Freeswitch-users] Mod_nibblebill for CDR billing

2009-09-08 Thread Rogelio Perez
I love FS! it shows all the info I need. Thanks guys. On Sep 4, 2009, at 10:28 PM, Diego Viola wrote: If you do "event plain all" from the FS CLI you should see the variable exported on the CHANNEL_HANGUP_COMPLETE event, with the other CDR variables as well. These information should be avail

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Michael Giagnocavo
I'm not sure how EventConsumer is supposed to work - maybe one of the real devs can explain how pop works and if it should fail on pop 0 or not. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Phillip Jones Sent: Tuesday, S

Re: [Freeswitch-users] Recording Only 1 Leg of a Call

2009-09-08 Thread Seven Du
As a work around, record to stereo, and use sox to split channes ? On Sep 9, 2009, at 12:44 AM, Anthony Minessale wrote: > that would have to be filed as a feature request as we do not > currently have a way to do that. > > > On Mon, Sep 7, 2009 at 11:50 PM, Matthew Fong > wrote: > I want to

[Freeswitch-users] Custom Variables

2009-09-08 Thread Tina Martinez
Using the verbose-events definitely improved my ability to see the custom variables, but now I noticed that the "Member-ID" variable does not appear in the DTMF event. Would this be related, or did I screw something else up? - T ___ FreeSWITCH-us

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Raffaele P. Guidi
Oh, I see... all those years wasted doing java stuff! :D On Tue, Sep 8, 2009 at 22:46, Michael Giagnocavo wrote: > “ ThreadPool.QueueUserWorkItem((o) =>” > > That starts a lambda, which is compiled to a delegate, same as anonymous > methods. > > Guess I’ll wait for him to respond on the crash h

Re: [Freeswitch-users] Call Forwarding Question

2009-09-08 Thread Nikolai Geordzhev
I`ve already tried the legs variable in cdr_csv.conf.xml, I have also tried to use the loopback endpoint and to bridge the call to the internal interface(so it can go out and in again generating the 2cdr-s I need) and still haven`t achieved any success. Can anyone please share some experience in do

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Michael Giagnocavo
" ThreadPool.QueueUserWorkItem((o) =>" That starts a lambda, which is compiled to a delegate, same as anonymous methods. Guess I'll wait for him to respond on the crash he gets. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf

Re: [Freeswitch-users] ESL: DTMF event is not coming

2009-09-08 Thread Remko Kloosterman
I'm currently playing around with ESL myself. By default events are not sent to the application. You should enable this by with for example the "myevents" command. For a better understanding, try catching the IO with "nc -l -p 8084" for outbound socket applications. See http://wiki.freeswitch.org/w

Re: [Freeswitch-users] ESL: DTMF event is not coming

2009-09-08 Thread Anthony Minessale
did you specify the "async" keyword to the socket app in your dialplan? On Mon, Sep 7, 2009 at 2:47 AM, Nagalenoj wrote: > > Dear friends, > I am using freeswitch-1.0.4. When I execute the sample > script(/libs/esl/perl/server2.pl), it is not receiving the DTMF events. > When > I execute the s

Re: [Freeswitch-users] patch for debian init script

2009-09-08 Thread Christian Löschenkohl
is done br On 2009-09-08 18:26, Michael Jerris wrote: > Please post this patch to http://jira.freeswitch.org in the build > system project and I will get this merged in > > Mike > > On Sep 8, 2009, at 10:28 AM, Christian Löschenkohl wrote: > >> hi >> >> just a quick patch for the debian init scri

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Raffaele P. Guidi
Yeah, probably just using con.pop(1) - that waits for an event to be caught, instead than con.pop(0), thus avoiding "sleeps" would do the trick On Tue, Sep 8, 2009 at 20:12, Phillip Jones wrote: > What is: > > freeswitch.msleep(100); > > Why aren't you using Thread.Sleep? > > > On Tue, Sep 8, 20

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Raffaele P. Guidi
Well, I can't see any delegate in josh sample, just a ThreadPool.QueueUserWorkItem. Here is an example that, at least on my system (I reached my home pc in the meanwhile), works fine. public class LoadPluginDemo : ILoadNotificationPlugin { delegate void Listener(); private void EventListener() {

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Phillip Jones
What is: freeswitch.msleep(100); Why aren't you using Thread.Sleep? On Tue, Sep 8, 2009 at 2:21 AM, Josh Rivers wrote: > Thanks for the response! > I have tried putting a long-running loop here, but then it blocks anything > else managed from happening: > >public class TestLoop : ILoadNoti

Re: [Freeswitch-users] Conference DTMFs heard by participants

2009-09-08 Thread Brian West
Its your gateway provider not squelching the DTMF I suspect. /b On Sep 8, 2009, at 12:26 PM, Bradley Brashier wrote: > The issue is that when a command is pressed on one phone in the > conference, all users hear the tones of the first key pressed. My > expectation is that no other users should h

Re: [Freeswitch-users] Conference DTMFs heard by participants

2009-09-08 Thread Bradley Brashier
Good thought. I'll look into that. BB On Tue, Sep 8, 2009 at 11:48 AM, Anthony Minessale wrote: > you must have some tdm equipment somewhere that is decoding the dtmf tones > and passing them w/o removing them from the audio stream. > > > On Tue, Sep 8, 2009 at 12:26 PM, Bradley Brashier > wrot

Re: [Freeswitch-users] Conference DTMFs heard by participants

2009-09-08 Thread Anthony Minessale
you must have some tdm equipment somewhere that is decoding the dtmf tones and passing them w/o removing them from the audio stream. On Tue, Sep 8, 2009 at 12:26 PM, Bradley Brashier wrote: > I have a FreeSWITCH conference with a list of DTMFs, some of which are > handled through the event socke

Re: [Freeswitch-users] mod_cdr_csv and mysql

2009-09-08 Thread Michael Collins
On Tue, Sep 8, 2009 at 8:50 AM, Hristo Benev wrote: > Hello, > > I saw an sql option in mod_cdr_csv. > > For my surprise it wrote sql code in Master.csv file instead of recording > to mysql database (already setup as ODBC) > > Is that normal or I'm missing something? > The purpose of the SQL te

[Freeswitch-users] Conference DTMFs heard by participants

2009-09-08 Thread Bradley Brashier
I have a FreeSWITCH conference with a list of DTMFs, some of which are handled through the event socket (like mute-all), some of which are handled by FreeSWITCH itself (like mute-self). There are a number of commands available and all of them are 2 digits in length. The issue is that when a comman

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Michael Giagnocavo
That's what his sample does, but he says it crashes. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Raffaele P. Guidi Sent: Tuesday, September 08, 2009 10:08 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freesw

Re: [Freeswitch-users] Recording Only 1 Leg of a Call

2009-09-08 Thread Anthony Minessale
that would have to be filed as a feature request as we do not currently have a way to do that. On Mon, Sep 7, 2009 at 11:50 PM, Matthew Fong wrote: > I want to record without the telephone user's interaction. > I think uuid_record should have the option to only record the audio of the > uuid ch

Re: [Freeswitch-users] Custom Variables

2009-09-08 Thread Anthony Minessale
"true" should suffice. On Tue, Sep 8, 2009 at 11:27 AM, Tina Martinez wrote: > Yes, it is a conference event. > > In looking at the mod_conference wiki, I see verbose-events mentioned, but > the > example value is ???. > > What is an appropriate setting for this param? (i.e., is it numeric, > b

Re: [Freeswitch-users] Minimum/Recommended Freeswitch SystemConfiguration

2009-09-08 Thread Jerry Richards
Mitul, Thank you for your reply. Freeswitch is new to me, so I am not yet able to take measurements of FS under a load of traffic. I was just asking for future planning purposes. After I do some more development with it perhaps I can record some of these measurements. Thanks and Regards, Jerry

Re: [Freeswitch-users] patch for debian init script

2009-09-08 Thread Michael Jerris
Please post this patch to http://jira.freeswitch.org in the build system project and I will get this merged in Mike On Sep 8, 2009, at 10:28 AM, Christian Löschenkohl wrote: > hi > > just a quick patch for the debian init script debian/freeswitch.init > i do use the reload function and the scr

[Freeswitch-users] Custom Variables

2009-09-08 Thread Tina Martinez
Yes, it is a conference event. In looking at the mod_conference wiki, I see verbose-events mentioned, but the example value is ???. What is an appropriate setting for this param? (i.e., is it numeric, boolean, latin?) -T ___ FreeSWITCH-users mailin

Re: [Freeswitch-users] 482 Request merged, in serial forking

2009-09-08 Thread Humberto Quintana
Hi Brian, Thank you very much for your answer but both, Freeswitch and Kamailio have public IPs, it's my NAT'd IP phone who has private IP but this is fixed by Kamailio. The problem is not the 1st call is failing ( the test is set that way), the problem is FS answers back 482 when Kamailio tr

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Raffaele P. Guidi
Hi, you just have to use delegates to asynchronously call the function containing the loop and return back the control to the calling thread. Here an example (don't have my code at hand, hope it doesn't contain typos). Regards, Raffaele public class TestLoop : ILoadNotificationPlugin {

Re: [Freeswitch-users] mod_cdr_csv and mysql

2009-09-08 Thread Diego Viola
Hi Hristo, I recommend that you take a look at mod_event_socket or ESL/FSR, you should make a script that listens for the CHANNEL_HANGUP_COMPLETE and get all the CDR vars from that event, once you do that you can send the CDR info to the db or do anything else. You can find an example of how to d

[Freeswitch-users] mod_cdr_csv and mysql

2009-09-08 Thread Hristo Benev
Hello, I saw an sql option in mod_cdr_csv. For my surprise it wrote sql code in Master.csv file instead of recording to mysql database (already setup as ODBC) Is that normal or I'm missing something? I read on the wiki that there is additional perl script to load csv to mysql. Should I do it

Re: [Freeswitch-users] ESL: DTMF event is not coming

2009-09-08 Thread Michael Gende
I'm pretty new at this, but please let me ask you a question: Is your FreeSwitch running on a dual-homed host? On Mon, Sep 7, 2009 at 2:47 AM, Nagalenoj wrote: > > Dear friends, > I am using freeswitch-1.0.4. When I execute the sample > script(/libs/esl/perl/server2.pl), it is not receiving th

Re: [Freeswitch-users] Custom Variables

2009-09-08 Thread Anthony Minessale
does that happen to be the conference event you are talking about? there is a separate verbose-events param in the conference profile to do that. On Tue, Sep 8, 2009 at 8:58 AM, Tina Martinez wrote: > Hello, > > I have created custom variables that I pass to my FreeSWITCH dialplan. > In my code

[Freeswitch-users] Mod fax best practices

2009-09-08 Thread Rob Forman
Hi all, I built a mod_fax setup which is working well. Hats off to the authors for the module. I receive faxes regularly without issue. I can also send faxes, but seem to have a higher failure rate, especially with faxes over 10 pages, usually with error 21: No response after sending a

Re: [Freeswitch-users] Usefull option for mod_cdr_csv

2009-09-08 Thread Mathieu Rene
Its there now. Cheers, Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mr...@avgs.ca On 8-Sep-09, at 5:20 AM, Anatoliy Kounitskiy wrote: > There is another useful option for the module Mod_cdr_csv, that is not > described in the default con

[Freeswitch-users] patch for debian init script

2009-09-08 Thread Christian Löschenkohl
hi just a quick patch for the debian init script debian/freeswitch.init i do use the reload function and the script complains about the -C option it also would be perfect if the reload option is enabled by default (usefull for logrotating) -> combined in second patch br *

Re: [Freeswitch-users] 482 Request merged, in serial forking

2009-09-08 Thread Brian West
Looks like FS is behind nat. You need to set local-network-acl and the ext-rtp-ip and ext-sip-ip so FreeSWITCH properly puts in the right IP's in the via headers and sdp. Please refer to internal.xml in the latest SVN for an example of how to do this. /b On Sep 8, 2009, at 9:00 AM, Humb

[Freeswitch-users] 482 Request merged, in serial forking

2009-09-08 Thread Humberto Quintana
Hi Brian, Yes , the Call-Id is the same for the 2nd and 3rd transaction but the branch parameter in the Via header is different. Please check the capture below. Thanks, Humberto --> Route 1 U 2009/09/08 09:17:38.759129 kamailio:5060 -> freeswitch:5060 INVITE sip:514...@gw1:506

[Freeswitch-users] Custom Variables

2009-09-08 Thread Tina Martinez
Hello, I have created custom variables that I pass to my FreeSWITCH dialplan. In my code I am monitoring the events and using the variables (now using ESL, very nice). The custom variables appear in events such as CHANNEL_ORIGINATE, but I do not see the variable in the CUSTOM event. For example,

Re: [Freeswitch-users] Mod xml cdr

2009-09-08 Thread Anatoliy Kounitskiy
There are several modules for writing cdr information to file ( http://wiki.freeswitch.org/wiki/Cdr ): - mod_xml_cdr - to write the cdrs to xml files ( http://wiki.freeswitch.org/wiki/Mod_xml_cdr ) - mod_cdr_csv - to write the cdrs to csv files ( http://wiki.freeswitch.org/wiki/Mod_cdr_csv ), also

[Freeswitch-users] Mod xml cdr

2009-09-08 Thread tom
hi, reading the wiki tells me i need that module to make cdr happen. please correct me if i outline wrong steps here: - enable module - make install - create file called xml_cdr.conf.xml - based on the parameters make a http post does anyone have a xml file + a php file to make the appropriate my

[Freeswitch-users] Usefull option for mod_cdr_csv

2009-09-08 Thread Anatoliy Kounitskiy
There is another useful option for the module Mod_cdr_csv, that is not described in the default configuration file: If you use the default configuration file and you're using the variable accountcode, probably you've seen for every accountcode you have separate cdr file for it. But if you need o

Re: [Freeswitch-users] select batchfile after call

2009-09-08 Thread Chris Burns
On September 8, 2009 06:10:11 am NOx-WHV wrote: > Hi, > > the script looks good. But I never use scripts directly in FS. > > Can you help, where and how I have to do what?!?!? Use ESL (http://wiki.freeswitch.org/wiki/Event_Socket_Library) to subscribe to hangup events, as Diego suggested. OR Us

Re: [Freeswitch-users] Using mod_managed to create full FreeSWITCH modules

2009-09-08 Thread Michael Giagnocavo
Are you looking to run when mod_managed shuts down? Or when your managed plugin reloads, or something else? (mod_managed is not unloadable, so I don't believe it gets any notification of shutting down.) As far as interop in general, it's usually possible. However, a lot of the FreeSWITCH code u

Re: [Freeswitch-users] Subscribing to events in managed C# / .NET

2009-09-08 Thread Michael Giagnocavo
Hi, Can you please elaborate on the crash you receive when you queue a thread during load? Thanks, Michael From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Josh Rivers Sent: Tuesday, September 08, 2009 12:22

Re: [Freeswitch-users] mod_managed ILoadNotificationPlugin

2009-09-08 Thread Michael Giagnocavo
It's to notify your plugin that it's being loaded, and allow your plugin to opt out of being loaded. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Josh Rivers Sent: Monday, September 07, 2009 1:50 PM To: freeswitch-users@l

Re: [Freeswitch-users] select batchfile after call

2009-09-08 Thread NOx-WHV
Hi, the script looks good. But I never use scripts directly in FS. Can you help, where and how I have to do what?!?!? My way with a linux script works. But only one option doesn´t work. If I have a call to a outside phone throuth a sip-gateway and I hang up (not the party who is called hang up)

Re: [Freeswitch-users] ESL C questions

2009-09-08 Thread Remko Kloosterman
Thanks. Indeed it's a bit 'spartan' but it does describe the esl functions and structures. Remko Van: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] Namens João Mesquita Verzonden: maandag 7 september 2009 19:21 Aan: freeswitch-users

Re: [Freeswitch-users] Bind extention to a different Dialplan and cdr php?

2009-09-08 Thread Michael Collins
On Sun, Sep 6, 2009 at 8:43 AM, Frank @ Impact wrote: > Is there a way to bind a particular extension to a different dialplan phpand > a different > cdr php script than the default one? > > Could you re-phrase this question with a bit more detail? Thanks. -MC ___

Re: [Freeswitch-users] Passing custom Dial Plans in perl

2009-09-08 Thread Michael Collins
On Mon, Sep 7, 2009 at 1:51 AM, Ahmed Munir wrote: > Hi, > > I've set some variables in dialplan XML and I want to call these variables > in perl, i.e. > > dialplan.xml > > > > Also after executing in perl the value of this variable pass to > dialplan.xml > > Kindly tell me how to do this. > If

Re: [Freeswitch-users] freeswitch - q: originate calls from database

2009-09-08 Thread Michael Collins
On Sun, Sep 6, 2009 at 6:43 AM, tom wrote: > hi, > > is this scenario doable? let the system call people , they talk do an ivr, > and can dependend on their selection end up in a real call-queue. > 1) how would i tell FS to call xyz-people from the databse? > thx > > > You have some learning to d

Re: [Freeswitch-users] switch_core_io.c:118 sofia/internal/XXXXX has no read codec.

2009-09-08 Thread Jason White
Yehavi Bourvine wrote: > > I have a problem when trying to put a call on hold: I get the above > message and the call is disconnected. Any idea where to look for the source > of the problem? My next step in your situation would be to obtain a Sip trace and post relevant details from it to the