Re: [Freeswitch-users] SIP dump to DB
MySQL MEMORY/HEAP table might be ideal for this. This data is prob not critical and is probably being used for diagnosing peer connectivity issues anyway. If it is critical well then... there are always trade offs right :) I think in general what he is speaking of is just some sort of temporary SIP trace setup that can log that can be controlled or filtered. So its not just all or nothing. I wonder is it possible to enable the current sip trace functionality via a variable. For example something like this. action application=bridge data={sip_trace=on}sofia/public/xxx...@10.10.10.1 / This of course only helps for bridged B2BUA calls. But if inbound sip tracing is required a user param like sip_trace could address that, yes? That could be a good starting point, then perhaps I could help roll a mod_xml_siptrace module based on the mod_xml_cdr design/concept that could somehow link into the existing sip trace logging. Just some thoughts, no idea how much of this exists today. Regards, -Adam From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Friday, February 20, 2009 8:55 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] SIP dump to DB what exact info do you need? That's likely to be a challenge with any database to store at that speed. On Fri, Feb 20, 2009 at 5:24 AM, kokoska rokoska kokoska.roko...@post.cz wrote: Hi all, I'm facing the problem I need all SIP messages going thru FreeSWITCH (I know FS i B2BUA - so, better to say just all SIP messages) logged somewhere and this log have to be searchable (by call-id etc) and I should be able to simply delete old messages... And more over - it should be done on not trivial SIP messages amount - say hundreds messages per second. My questions are: 1. Do you have any suggestion how to do it with FreeSWITCH? 2. Or it is not possible now, and bounty is necessary? :-) 3. How hard it will be to implement? -- FYI: I think something like SER/Kamailio/OpenSIPS siptrace is what I'am (probably) looking for: http://www.kamailio.org/docs/modules/1.4.x/siptrace.html It could go (based on my tests) up to 7-10.000 messages per second till MySQL dies... -- Thanks for your time :-) Best regards, kokoska.rokoska ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_miness...@hotmail.com GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:8...@conference.freeswitch.org iax:gu...@conference.freeswitch.org/888 googletalk:conf+...@conference.freeswitch.org pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] dynamically add ip to an ACL
Hi Anthony, could he use mod_xml_curl for this to serve up a dynamic acl.conf.xml? Or would reloadacl have to be called somehow? Regards, -Adam From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Monday, February 16, 2009 8:49 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] dynamically add ip to an ACL no, it's not possible. On Mon, Feb 16, 2009 at 6:14 AM, Woody Dickson woodydick...@gmail.com wrote: Hi, Is it possible to dynamically add entries to an ACL without having to go through the xml file? Can it be done via command line or api? Thanks, Woody ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_miness...@hotmail.com mailto:msn%3aanthony_miness...@hotmail.com GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com mailto:paypal%3aanthony.miness...@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:8...@conference.freeswitch.org mailto:sip%3a...@conference.freeswitch.org iax:gu...@conference.freeswitch.org/888 googletalk:conf+...@conference.freeswitch.org mailto:googletalk%3aconf%2b...@conference.freeswitch.org pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] RFC 4497 Originate Timeout / Progress Timeout .. No 100 Trying ... triggering 480 Response Code???
Hi Guys, I've been experimenting with originate_timeout and progress_timeout as follows. However, shouldn't the timeout trigger a 408 Request Timeout instead of 480 Temporary Failure if no Provisional response received? Just curious, it seems to make sense to me.. but maybe SIP gods see differently. I have also tried using ${originate_disposition} after both bridge attempts to fetch the timeout disposition but instead this is set to NO_ANSWER (which would be correct for first attempt) As I understand it originate_disposition is reset for each bridge completed either successfully or unsuccessfully. Shouldn't the second attempt with no 100 Trying ever received trigger a NO_USER_REPONSE on timeout? According to RFC 4497 that would map to 408 Request Timeout For this test (please note progress_timeout set to low 2 value to test timeout) Node 10.200.1.11 is setup in such a way it responds with 100 Trying but never reaches 180 or 183 before 2 sec timer expires (as desired for this test) Node 10.200.1.12 (is disconnected and never even sends a provisional response, as desired) I have tried. ?xml version=1.0 encoding=UTF-8 standalone=no? document type=freeswitch/xml section name=dialplan description=FSXML FastCgi Provided Dialplan context name=public extension name=FSXML.FCGI Generated Route condition action application=set data=continue_on_fail=true/ action application=set data=hangup_after_bridge=true/ action application=set data=call_timeout=120/ action application=set data=progress_timeout=2/ action application=bridge data=sofia/inside/+17001231...@10.200.1.11:5060/ action application=bridge data=sofia/inside/+17001231...@10.200.1.12:5060/ /condition /extension /context /section /document As well as . ?xml version=1.0 encoding=UTF-8 standalone=no? document type=freeswitch/xml section name=dialplan description=FSXML FastCgi Provided Dialplan context name=public extension name=FSXML.FCGI Generated Route condition action application=set data=continue_on_fail=true/ action application=set data=hangup_after_bridge=true/ action application=bridge data={originate_timeout=120,progress_timeout=2}sofia/inside/+17001231...@10 .200.1.11:5060/ action application=bridge data={originate_timeout=120,progress_timeout=2}sofia/inside/+17001231...@10 .200.1.12:5060/ /condition /extension /context /section /document Any thoughts, am I completely nuts and missing something in the spec? Regards, -Adam ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Dynamic Dialplan
What about a mod_perl XML binding like the example here? http://wiki.freeswitch.org/wiki/Mod_perl and http://wiki.freeswitch.org/wiki/Mod_perl_and_Generating_XML Would this be faster than a setup like mod_curl_xml - lighttpd - FastCGI/Perl ? I guess it would depend on if mod_perl in FreeSWITCH spawns new interpreter per request or if it uses one interpreter instance with multiple threads to execute pre-loaded perl. Anyone know if this is the case? Regards, -Adam -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of kokoska rokoska Sent: Monday, February 09, 2009 1:03 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Dynamic Dialplan Raymond Chandler napsal(a): kokoska rokoska wrote: Just my 2c: If you use curl with lighttpd and custom built fastcgi C responder (it is really simple with fcgi libs - even I can do it :-) performance could be not that bad. hmmm, mod_xml_curl using C, interesting thought.. May be not the best way, but very simple. Well, it depends on what you have to do, but directory serving based on DB queries (this what I'm using it for) is very simple - just few lines of code. all of the complexities of writing your own module without the nice structured FS API... I should say I have no idea how hard is to write custom FreeSWITCH module (may be I should try it :-), but the FS code is very nice! although, as a benefit, i guess you do get a little extra latency ;-) /sarcasm :-) Yes, you are right. And as a bonus some CPU utilization... Like I wrote above, I didn't say it is faster, but IMO it is very simple and not as slow as it looks (when using apache + php + apc). Best regards, kokoska.rokoska ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Call accounting - CDR's
Is mod_cdr_xml asynchronous ... by that I mean .. if there is a communication failure how does this effect load on the system or the call for that matter... it wouldn’t hold up the progress or delay the turn up of the call or anything would it? I understand it would write to the error directory (but my thoughts are what is the impact of this beyond the obvious IO hit) I guess a good question is what is more load intensive??? 1.) mod_cdr_csv (with batch script that loads into DB somewhere) 2.) mod_cdr_xml (posting to lighttpd on remote host inserting into DB) I'm thinking about this for a system that would be handling in excess of 200-300 call setups per second. -Adam -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Rupa Schomaker (lists) Sent: Friday, February 06, 2009 11:27 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Call accounting - CDR's Use the script in scripts/contrib/wasim/ as a starting point. Basically, you log to csv files, and then the script periodically picks them up and loads to your DB. This is using mysql as an example, but you can do the same with postgres as well. If you need realtime inserts, then use mod_cdr_xml and have those post to a script on a webserver that parses the xml and inserts into appropriate tables. This is what I use along with a rails app. Remember that if you do real time, you also need to periodically scrape the error directory and load those (mod_cdr_xml will save to error if it can't successfully post to your script). On 2/6/2009 10:09 AM, Nik Middleton wrote: Hi Guys I’m looking for some pointers on how to collect CDR’s and store in mysql. Is there anything built in yet? I can rate the calls as a batch process, I simply need the call data. Regards ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] FreeSwitch setup as a Dumb SBC
Hi Rod, Great info, Thanks! Glad to see others are interested in the same concept. My reasons for SER as routing core and implementation is slightly different yet similar. I like your Redirect model, with that you are truly using your Kamailio as route server only. I would imagine very scalable. - Are you able to do any round robin, serial or parallel forking with this? - I wonder if multiple Contacts in the 302 response maybe with some logic in FreeSwitch dialplan? If so I think your design is a bit more efficient than mine as it keeps SER out of the call path. My design is little different.. it is more of a Stateful setup. With SER staying in call path and FreeSwitch at Edge. I do this to enable Serial Forking to a series of SBCs (FreeSwitch) geo distributed, when one of the branches is congested it forks to the next SBC (route). The FreeSwitch guys are probably right tho... with mod_easyroute and mod_lcr we could probably implement all of this in FreeSwitch without SER. I would be curious to know if anyone is doing something similar at high volumes and what sort of concurrency and cps they are able to achieve. I am a Perl and C# guy, I thought about implementing a mod_manged_lcr with memcached support. Memcache support would prob boost the scalability by a factor of 10 at least. I will let you know if I end up developing a high performance FreeSwitch route module. Right now I use memcache in a OpenSIPS perl script for my route caching and its incredibly fast and clusters well. It actually might be easier to add memcached support to mod_lcr and mod_easyroute but im not real strong in C/C++ I'll jump on IRC later and chat with some of the experts on this as I know memcache has been discussed before. I'd be curious to know if any progress has been made there already. Regards, -Adam -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of rod Sent: Tuesday, February 03, 2009 1:33 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] FreeSwitch setup as a Dumb SBC Hi Adam, I'm in the process of using FS as a SBC. For the route lookup, I do it using OpenSER carrierroute, without having to flow through SBC---Openser---SBC. I'm using carrierroute at this time cause I need more than 200 000 routing entries and carrierroute has been tested with twice this number. Here is the setup: - install openser and carrierroute and make openser listening on 127.0.0.1:5062 (for example) on your SBC - populate carrierroute table What I do to use carrierroute module from FS is to use a specific X-header (X-LOOKUP). In the dialplan, in the default context, I have something like this: extension name=LOOKUP_ROUTE condition field=destination_number expression=(\d+)$ action application=set data=hangup_after_bridge=true/ action application=set data=continue_on_fail=true/ action application=export data=sip_h_X-ROUTE=LOOKUP/ action application=bridge data=sofia/internal/${sip_req_us...@127.0.0.1:5062/ action application=export data=sip_h_X-ROUTE=${sip_redirect_contact_host_0}/ action application=transfer data=${destination_number} XML ROUTING/ /condition /extension The process is simple: the export sip_h_X-ROUTE=LOOKUP had a sip header X-ROUTE=LOOKUP then I bridge the call to 127.0.0.1:5062 (openser process) In openser I have a route block that checks the presence of header LOOKUP and openser sends a 604: unable to route call if the prefix is not found, or a 302: with the IP of the gateway found In FS, you can get the IP using the variable ${sip_redirect_contact_host_0}. Then I transfer this to the context ROUTING, where the check condition is based on the LOOKUP header that has been rewritten with this variable. I will document all this setup (installation of openser/carrierroute and config file of FS and openser) on a wiki page I start writing yesterday, so please be indulgent and patient. The next step is to test the scalability of this. I'm a very bad programmer, so that's the only way for me to contribute to FS, and as I see many people interested for an SBC setup, I think it could be great if we share our work/knowlegde. The wiki page is there: http://wiki.freeswitch.org/wiki/SBC_Setup regards, rod. Adam Long wrote: Hi Guys, I've been working at setting up a couple of FreeSwitch nodes as a topology hiding SBCs that handles both ingress traffic from my providers/peers and pass traffic up to an openser router that then routes call across the cluster of SBCs through which they reach the destination. I have OpenSIPS/SER setup doing DB route lookups and ENUM with LCR/Serial forking etc. My question is what would be the best way to send a call out to a destination choosen by the OpenSER router? For example: SIP Provider -- SBC --- OpenSER ( route lookup returns 123.123.123.4 as dest ) -- SBC --- 123.123.123.4 I was thinking
[Freeswitch-users] mod_sofia ReINVITE
In every one of my SIP sessions FreeSwitch appears to be inserting .. Contact: sip:mod_so...@xxx.xxx.xxx.xxx:5060 Is this normal? I only ask as it is causing some of my end points to RE-INVITE back to this after the initial ( INVITE 100 Trying--- 200 OK ) call setup. If this is not normal or by design I can provide more details on configuration and dialplan. Thanks! Regards, -Adam ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] FreeSwitch setup as a Dumb SBC
Hi Guys, I've been working at setting up a couple of FreeSwitch nodes as a topology hiding SBCs that handles both ingress traffic from my providers/peers and pass traffic up to an openser router that then routes call across the cluster of SBCs through which they reach the destination. I have OpenSIPS/SER setup doing DB route lookups and ENUM with LCR/Serial forking etc. My question is what would be the best way to send a call out to a destination choosen by the OpenSER router? For example: SIP Provider -- SBC --- OpenSER ( route lookup returns 123.123.123.4 as dest ) -- SBC --- 123.123.123.4 I was thinking something along the lines of adding a X-Route-To: +1nxxnxxx...@123.123.123.4 with openser and then something like this in the SBC. context name=from-sipcore extension name=outboundroute action application=bridge data=sofia/external/${sip_h_X-Route-To} / /extension /context Is this a wise approach, is there anything I could do to do this better? I'd like to keep the logic in the SBCs as simple as possible. I am pretty familiar with SIP but my knowledge fades when it gets into the nitty gritty of routing. ie the Contact: and Via: headers and all that good stuff. I should also state I have two profiles defined one for the internal/private core network and one for the outside external network. Any thoughts on this at all would be greatly appreciated. Am I missing something in the SIP spec that would allow for this is a standardized way? Regards, -Adam ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] [CRIT] softtimer_runtime() Virtual Migration Detected! Syncing Clock
Haha... it is probably either a case of overloading the ESX host server (too many other guests on same machine) Or your ESX isn't pumping out enough interrupts. Have a look here.. this might help. http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=dis playKCexternalId=2219 Not 100% sure if this is still acurate for ESX 3.5 or ESXi 3.5 -Adam -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: Monday, January 26, 2009 6:47 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] [CRIT] softtimer_runtime() Virtual Migration Detected! Syncing Clock running ntpd will help but if your clock is slipping that much you might want to re-task the machine as a boat anchor. /b On Jan 26, 2009, at 5:42 PM, Chav Paskov wrote: Thanks for the prompt response. will it help if i set a cron job to keep up the clock correct? i'm just curious because i definitely have no migration process set. Regards Chav ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2
Thanks Michael! FreeSWITCH.Managed.dll loads successfully without tinkering. Tks for the patch! Of course after adding the LD lib path. Thank you very much! Also saw you updated the BUG on Jira.. Thanks again great work! Only other thing to note is languages/mod_managed still needs to be manually added to modules.conf at this point. Perhaps a patch with this commented out by default would be a good idea for the future. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Giagnocavo Sent: Tuesday, January 20, 2009 5:36 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 OK, I just checked in a fix that should make it load, or at least print a helpful exception. However, you will need the freeswitch/mod folder in the LD path, so: export LD_LIBRARY_PATH=/usr/local/freeswitch/mod or edit the ld configs. -Michael From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Giagnocavo Sent: Thursday, January 15, 2009 4:36 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 Last time I tried it I actually built from a snapshot, which should be less stable. It was on CentOS 5.2, however. From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Adam Long Sent: Thursday, January 15, 2009 4:25 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 OK yah i'm experiencing exact same problem here CentOS 5.2 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 athlon i386 GNU/Linux I too have no problems at all on Windows. I'm going to try a Suse or Ubuntu prebuilt/packaged with Mono 2 I suspect it may be kernel/mono incompatibility. Did you compile mono from tarbal? From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Tim B Sent: Thursday, January 15, 2009 6:18 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 I changed the filename of the dll to FreeSWITCH.Managed.dll then tried to restart. FS now no longer starts. Says mono error with a dump. I don't have the exact message because I am not on location with the machine. I know it does compile, load and execute on a windows machine. Just not on Centos. From: freeswitch-users-requ...@lists.freeswitch.org Subject: Freeswitch-users Digest, Vol 31, Issue 77 To: freeswitch-users@lists.freeswitch.org Date: Thu, 15 Jan 2009 00:20:53 -0800 Send Freeswitch-users mailing list submissions to freeswitch-users@lists.freeswitch.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.freeswitch.org/mailman/listinfo/freeswitch-users or, via email, send a message with subject or body 'help' to freeswitch-users-requ...@lists.freeswitch.org You can reach the person managing the list at freeswitch-users-ow...@lists.freeswitch.org When replying, please edit your Subject line so it is more specific than Re: Contents of Freeswitch-users digest... Today's Topics: 1. mod_managed failing to load on CentOS 5.2 (Tim B) 2. Re: Using mod_managed Linux/Mono 2.02 (Michael Giagnocavo) 3. zapata.conf immediate=yes in Asterisk - Freeswitch equivalent? (Scott Ellis) 4. Country specific tones - how to contribute? (Scott Ellis) 5. Re: Country specific tones - how to contribute? (Jason White) 6. Changes in PlayAndGetDigits (Juan Backson) 7. Re: OpenZAP parse error [-3012] [Q931E_INVALID_CRV] (Peter P GMX) -- Message: 1 Date: Wed, 14 Jan 2009 20:13:27 -0500 From: Tim B timb0...@hotmail.com Subject: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 To: freeswitch-users@lists.freeswitch.org Message-ID: bay117-w5065d9f4aaf59bb1b86359de...@phx.gbl Content-Type: text/plain; charset=windows-1252 Got mod_managed compiled and installed. Now it isn't loading. See below... 1) Donwloaded fresh from SVN 2) Compiled... and installed.. OK [r...@phone2 mod_managed]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig [r...@phone2 mod_managed]# make [r...@phone2 mod_managed]# make install 3) Added to modules.conf.xml : load module=mod_managed/ 4) Started freeswitch from command line ... Error: 2009-01-14 20:01:42 [ERR] mod_managed.cpp:220 loadRuntime() mono_domain_assembly_open failed. 2009-01-14 20:01:42 [CRIT] switch_loadable_module.c:839 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_managed.so **Module load routine returned an error** 5) I know mono2 is working because I compiled
Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2
I just used mono 2.2 src tarbal .. configured with --prefix=/usr --sysconfdir=/etc --localstatedir=/var And Freeswitch just configured as --prefix=/usr/local/freeswitch Nothing special. I did run ldconfig after editing files on the same shell as I used to start freeswitch I am manually loading mod_managed from the console after starting I don't auto load it. (just for now so I can see whats going on) -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: Wednesday, January 21, 2009 9:59 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 You have to make sure you do it in the same shell before you start FreeSWITCH or it won't work. How did you install mono on 5.2 I'll try it out also. /b On Jan 21, 2009, at 8:56 PM, Adam Long wrote: Yah I did try that ... doesn't seem to work. Which seems odd I had thought the same thing. ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
[Freeswitch-users] ODBC in place of db/core.db
Hi Guys, I have read the documentation on the wiki and have successfully compiled FreeSwtich with odbc core support. I am able to get my SIP Profiles and Voicemail databases to load, create, and utilize the ODBC database tables successfully. However, I cannot seem to figure out how to make FreeSwitch use the ODBC database instead of the SQL Lite db/core.db I'm sure it's just a matter of properly placing the following line in one of the configs. param name=odbc-dsn value=dns-name:user:password/ If anyone can point me in the right direction I would greatly appreciate it. Thank you! ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] ODBC in place of db/core.db
OK, thanks for the heads up.. Reason I had asked in the first place, I was planning on tinkering with an auto-failover setup that would be capable of maintaining state and not dropping calls during failover. Has anyone had any success with this that you know of, or is it just not possible yet? From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Monday, January 19, 2009 1:04 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] ODBC in place of db/core.db it's not possible, the core is only sqlite. On Mon, Jan 19, 2009 at 11:51 AM, Adam Long ajl...@worldlink.net wrote: Hi Guys, I have read the documentation on the wiki and have successfully compiled FreeSwtich with odbc core support. I am able to get my SIP Profiles and Voicemail databases to load, create, and utilize the ODBC database tables successfully. However, I cannot seem to figure out how to make FreeSwitch use the ODBC database instead of the SQL Lite db/core.db I'm sure it's just a matter of properly placing the following line in one of the configs. param name=odbc-dsn value=dns-name:user:password/ If anyone can point me in the right direction I would greatly appreciate it. Thank you! ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_miness...@hotmail.com mailto:msn%3aanthony_miness...@hotmail.com GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com mailto:paypal%3aanthony.miness...@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:8...@conference.freeswitch.org mailto:sip%3a...@conference.freeswitch.org iax:gu...@conference.freeswitch.org/888 googletalk:conf+...@conference.freeswitch.org mailto:googletalk%3aconf%2b...@conference.freeswitch.org pstn:213-799-1400 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] Using mod_managed Linux/Mono
Thanks Michael, that did get me a little further. I renamed mod_managed_lib.dll to FreeSWITCH.Managed.dll and that definitely had an effect. but now when I attempt to load mod_managed FreeSwitch core dumps now. I have tried mono 2.2 and mono 2.0.1 I am running . CentOS 5.2 x86 32bit [r...@sipcore-alpha conf]# uname -a Linux sipcore-alpha 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 athlon i386 GNU/Linux I attached the full output from the console in the txt doc attached above. I'm wondering if the problem is specific to this flavor of linux. perhaps more specifically the kernel. -Adam From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Giagnocavo Sent: Thursday, January 15, 2009 12:34 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Using mod_managed Linux/Mono 2.02 The managed assembly should be the same on both platforms. The correct name is FreeSWITCH.Managed.dll. I'll get a patch to the mod_managed/managed/Makefile. Meanwhile, simply renaming mod_managed_lib.dll should work. After that, make sure there's a managed subdirectory where the modules are. -Michael From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Adam Long Sent: Wednesday, January 14, 2009 3:45 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] Using mod_managed Linux/Mono 2.02 Has anyone had any luck using mod_managed under linux with mono yet? The Wiki looks to still be lacking some linux installation instructions. I feel like I'm close but missing something simple. I got as far as adding languages/mod_managed to the /usr/src/freeswitch-1.0.2/modules.conf without quotes obviously. My installed mono version is [r...@sipcore-alpha mod]# mono -V Mono JIT compiler version 2.2 (tarball Wed Jan 14 09:44:57 PST 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC:Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: x86 Disabled: none I can successful compile freeswitch and it indeed compiles mod_managed.so I added load module=mod_managed / to my /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml I did also create the /usr/local/freeswitch/mod/managed directory as stated in the wiki as requirement. But when I start freeswitch I get the following in regards to the mod_managed loading. 2009-01-14 14:19:12 [INFO] mod_managed.cpp:309 mod_managed_load() Loading mod_managed (Common Language Infrastructure), Mono Version 2009-01-14 14:19:12 [INFO] mod_managed.cpp:213 loadRuntime() Calling mono_assembly_loaded. 2009-01-14 14:19:12 [INFO] mod_managed.cpp:217 loadRuntime() Calling mono_domain_assembly_open. 2009-01-14 14:19:12 [ERR] mod_managed.cpp:220 loadRuntime() mono_domain_assembly_open failed. 2009-01-14 14:19:12 [CRIT] switch_loadable_module.c:839 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_managed.so **Module load routine returned an error** One thing I think I may be missing is a FreeSWITCH.Managed.dll (this exists on windows environment but doesn't seem to be compiled under linux) I thought perhaps mod_managed_lib.dll was the linux equivalent but that exists and still no a no go. Any ideas would be very welcome? Thank you! Regards, -Adam freeswi...@sipcore-alpha load mod_managed 2009-01-15 09:46:59 [INFO] mod_managed.cpp:309 mod_managed_load() Loading mod_managed (Common Language Infrastructure), Mono Version 2009-01-15 09:46:59 [INFO] mod_managed.cpp:213 loadRuntime() Calling mono_assembly_loaded. 2009-01-15 09:46:59 [INFO] mod_managed.cpp:217 loadRuntime() Calling mono_domain_assembly_open. Stacktrace: Native stacktrace: /usr/lib/libmono.so.0 [0x3c020bd] /usr/lib/libmono.so.0 [0x3c21640] /usr/lib/libmono.so.0 [0x3ba349d] [0x661440] /usr/local/freeswitch/mod/mod_managed.so(mod_managed_load+0xe5) [0x1001365] /usr/local/freeswitch/lib/libfreeswitch.so.1 [0x8e7ab5] /usr/local/freeswitch/mod/mod_commands.so [0x3484b4] /usr/local/freeswitch/lib/libfreeswitch.so.1(switch_api_execute+0xbd) [0x8e3c5d] /usr/local/freeswitch/lib/libfreeswitch.so.1 [0x8c97a6] /usr/local/freeswitch/lib/libfreeswitch.so.1 [0x8c99da] /usr/local/freeswitch/lib/libfreeswitch.so.1 [0x93da26] /lib/libpthread.so.0 [0x52d45b] /lib/libc.so.6(clone+0x5e) [0x484e5e] Debug info from gdb: Using host libthread_db library /lib/libthread_db.so.1. [Thread debugging using libthread_db enabled] [New Thread -1208415792 (LWP 13930)] [New Thread 35236752 (LWP 13985)] [New Thread 8145808 (LWP 13984)] [New Thread -1420170352 (LWP
Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2
Hi Tim, I'm having exact same problem, try renaming mod_managed_lib.dll to FreeSWITCH.Managed.dll and then load. Michael confirmed this is supposed to be the case and is building a patch for the Makefile. However, when I do this on my Cent OS 5.2 it now loads successfully but immediately I get a core dump. I'm curious if you will have the same problem or not. Regards, -Adam From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Tim B Sent: Wednesday, January 14, 2009 8:13 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 Got mod_managed compiled and installed. Now it isn't loading. See below... 1) Donwloaded fresh from SVN 2) Compiled... and installed.. OK [r...@phone2 mod_managed]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig [r...@phone2 mod_managed]# make [r...@phone2 mod_managed]# make install 3) Added to modules.conf.xml : load module=mod_managed/ 4) Started freeswitch from command line ... Error: 2009-01-14 20:01:42 [ERR] mod_managed.cpp:220 loadRuntime() mono_domain_assembly_open failed. 2009-01-14 20:01:42 [CRIT] switch_loadable_module.c:839 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_managed.so **Module load routine returned an error** 5) I know mono2 is working because I compiled and executed a helloworld test class on machine. Any ideas? _ Windows LiveT: Keep your life in sync. See how it works. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_012 009 ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Re: [Freeswitch-users] mod_managed failing to load on CentOS 5.2
OK yah i'm experiencing exact same problem here CentOS 5.2 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 athlon i386 GNU/Linux I too have no problems at all on Windows. I'm going to try a Suse or Ubuntu prebuilt/packaged with Mono 2 I suspect it may be kernel/mono incompatibility. Did you compile mono from tarbal? From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Tim B Sent: Thursday, January 15, 2009 6:18 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 I changed the filename of the dll to FreeSWITCH.Managed.dll then tried to restart. FS now no longer starts. Says mono error with a dump. I don't have the exact message because I am not on location with the machine. I know it does compile, load and execute on a windows machine. Just not on Centos. From: freeswitch-users-requ...@lists.freeswitch.org Subject: Freeswitch-users Digest, Vol 31, Issue 77 To: freeswitch-users@lists.freeswitch.org Date: Thu, 15 Jan 2009 00:20:53 -0800 Send Freeswitch-users mailing list submissions to freeswitch-users@lists.freeswitch.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.freeswitch.org/mailman/listinfo/freeswitch-users or, via email, send a message with subject or body 'help' to freeswitch-users-requ...@lists.freeswitch.org You can reach the person managing the list at freeswitch-users-ow...@lists.freeswitch.org When replying, please edit your Subject line so it is more specific than Re: Contents of Freeswitch-users digest... Today's Topics: 1. mod_managed failing to load on CentOS 5.2 (Tim B) 2. Re: Using mod_managed Linux/Mono 2.02 (Michael Giagnocavo) 3. zapata.conf immediate=yes in Asterisk - Freeswitch equivalent? (Scott Ellis) 4. Country specific tones - how to contribute? (Scott Ellis) 5. Re: Country specific tones - how to contribute? (Jason White) 6. Changes in PlayAndGetDigits (Juan Backson) 7. Re: OpenZAP parse error [-3012] [Q931E_INVALID_CRV] (Peter P GMX) -- Message: 1 Date: Wed, 14 Jan 2009 20:13:27 -0500 From: Tim B timb0...@hotmail.com Subject: [Freeswitch-users] mod_managed failing to load on CentOS 5.2 To: freeswitch-users@lists.freeswitch.org Message-ID: bay117-w5065d9f4aaf59bb1b86359de...@phx.gbl Content-Type: text/plain; charset=windows-1252 Got mod_managed compiled and installed. Now it isn't loading. See below... 1) Donwloaded fresh from SVN 2) Compiled... and installed.. OK [r...@phone2 mod_managed]# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig [r...@phone2 mod_managed]# make [r...@phone2 mod_managed]# make install 3) Added to modules.conf.xml : load module=mod_managed/ 4) Started freeswitch from command line ... Error: 2009-01-14 20:01:42 [ERR] mod_managed.cpp:220 loadRuntime() mono_domain_assembly_open failed. 2009-01-14 20:01:42 [CRIT] switch_loadable_module.c:839 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_managed.so **Module load routine returned an error** 5) I know mono2 is working because I compiled and executed a helloworld test class on machine. Any ideas? _ Windows Live?: Keep your life in sync. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_0120 09 -- next part -- An HTML attachment was scrubbed... URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090114/ 6a5facdc/attachment-0001.html -- Message: 2 Date: Thu, 15 Jan 2009 00:34:20 -0500 From: Michael Giagnocavo m...@giagnocavo.net Subject: Re: [Freeswitch-users] Using mod_managed Linux/Mono 2.02 To: freeswitch-users@lists.freeswitch.org freeswitch-users@lists.freeswitch.org Message-ID: 6e8d2069c08aa84a83d336e996ae4c670235bbb...@mse17be1.mse17.exchange.ms Content-Type: text/plain; charset=us-ascii The managed assembly should be the same on both platforms. The correct name is FreeSWITCH.Managed.dll. I'll get a patch to the mod_managed/managed/Makefile. Meanwhile, simply renaming mod_managed_lib.dll should work. After that, make sure there's a managed subdirectory where the modules are. -Michael From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Adam Long Sent: Wednesday, January 14, 2009 3:45 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] Using mod_managed Linux/Mono 2.02 Has anyone had any luck using mod_managed under linux with mono yet? The Wiki looks to still be lacking some linux installation instructions. I feel like I'm close but missing something simple. I got as far as adding languages/mod_managed to the /usr/src
[Freeswitch-users] Using mod_managed Linux/Mono 2.02
Has anyone had any luck using mod_managed under linux with mono yet? The Wiki looks to still be lacking some linux installation instructions. I feel like I'm close but missing something simple. I got as far as adding languages/mod_managed to the /usr/src/freeswitch-1.0.2/modules.conf without quotes obviously. My installed mono version is [r...@sipcore-alpha mod]# mono -V Mono JIT compiler version 2.2 (tarball Wed Jan 14 09:44:57 PST 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC:Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: x86 Disabled: none I can successful compile freeswitch and it indeed compiles mod_managed.so I added load module=mod_managed / to my /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml I did also create the /usr/local/freeswitch/mod/managed directory as stated in the wiki as requirement. But when I start freeswitch I get the following in regards to the mod_managed loading. 2009-01-14 14:19:12 [INFO] mod_managed.cpp:309 mod_managed_load() Loading mod_managed (Common Language Infrastructure), Mono Version 2009-01-14 14:19:12 [INFO] mod_managed.cpp:213 loadRuntime() Calling mono_assembly_loaded. 2009-01-14 14:19:12 [INFO] mod_managed.cpp:217 loadRuntime() Calling mono_domain_assembly_open. 2009-01-14 14:19:12 [ERR] mod_managed.cpp:220 loadRuntime() mono_domain_assembly_open failed. 2009-01-14 14:19:12 [CRIT] switch_loadable_module.c:839 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_managed.so **Module load routine returned an error** One thing I think I may be missing is a FreeSWITCH.Managed.dll (this exists on windows environment but doesn't seem to be compiled under linux) I thought perhaps mod_managed_lib.dll was the linux equivalent but that exists and still no a no go. Any ideas would be very welcome? Thank you! Regards, -Adam ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org