-
-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help Installing Homer5 #108
Comments
Hi @kismetgerald |
Thanks Imangani. I got some help from gmaruzz on the Freeswitch IRC channel - he instructed me to run "dpkg -i *deb" while in the /usr/src/homer/build/ directory. I did that, but run in to some dependency issues. But on the CLI there was a message displayed to run "apt-get -f install". Not sure what that does exactly, but I ran that and the install worked fine. It didn't, however, install Apache or Nginx, so I had to install that manually. Anyway, I've been able to get the web page working, now I'm working on the backend database scripts. |
Kris, all you should have left to do is configure the web server w/ proper settings, db connection and the rotation scripts. |
Yes sir, that's what I'm doing now. |
You'll be glad to know that I got the web interface working and the connecting to MySQL. I am able to login with the test user. Now, trying to figure out how to configure the capturing. |
Unfortunately, it appears I have hit a stalemate. I'm getting the following error after copying the example kamailio.cfg file: Nov 10 15:20:20 freeswitch2 kamailio[1984]: 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 39, column 12-18: failed to load module 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module <db_mysql> in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 40, column 12-24: failed to load module 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 41, column 12-26: failed to load module 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 42, column 12-23: failed to load module 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 43, column 12-22: failed to load module 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 44, column 12-20: failed to load module 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 45, column 12-22: failed to load module 0(1995) ERROR: [sr_module.c:565]: load_module(): could not find module in </usr/lib64/kamailio/modules> 0(1995) : [cfg.y:3432]: yyerror_at(): parse error in config file |
Okay, so I had to change quite a bit of the hard coded paths inside most of the config files.............but Kamailio is now running on the Homer5 server, listening on port 9060. Now, can you offer some assistance on how to setup a Captagent on my Freeswitch server to send the sip capture to Homer5? |
I was able to find instructions here https://github.com/sipcapture/captagent. I followed it and Captagent seems to be installed and running as a Daemon on my Freeswitch server. However, I'm seeing the following error in syslog: Nov 11 01:51:52 freeswitch1 captagent[31991]: [ERR] core_hep.c:535 send error |
@kismetgerald this usually means there is no HEP server listening. Make sure the HEP port is correct in your client configuration. |
or maybe there is a firewall issue |
@adubovikov This is a fresh Debian box, and I haven't made any modifications to the Firewall, so do you still think it could be FW related? @lmangani If I provided the various config files here, could you tell me if any is wrong? |
Error logs on the server should tell the story. Check your syslog and let us know what Kamailio says. |
@lmangani As far as Kamailio is concerned, everything is peachy...lol. Nov 11 09:53:51 freeswitch2 /usr/local/sbin/kamailio[10609]: NOTICE: [main.c:693]: handle_sigs(): Thank you for flying kamailio!!! |
I've been doing some more reading on your Git pages and just discovered that Freeswitch ships with built-in support to capturing. So, I think I'm going to abandon the idea of setting up Captagent and instead use the built-in capability of FS. Now, I'm using FusionPBX as my GUI for Freeswitch and I know it's not recommended to edit the xml files directly. So I have to figure out how to set the global parameters from the FPBX gui. I'll report back what I'm able to accomplish. If you know of how I can do this, please share. Thanks. |
@kismetgerald be warned the built-in capture agent in FS supports an older version of the HEP protocol with reduced features. A capture agent is still highly suggested, expecially since you are using a packaged version of FS where this would result in unsupported conditions. |
@lmangani You might be right. I was able to find the commented parameter in sofia.xml and uncomented it. However, as soon as I turned on sip-capture on the internal profile, my CLI went bonkers............ I guess I'm back to getting Captagent to work eh? Anyway, so if using the built-in capturing isn't supported then why do you recommend it on your Wiki? Anyway, I'm still going to need help getting Captagent to work then. Any ideas where to go next? |
@kismetgerald As you might have noticed, the wiki home states we are updating the whole codebase to the latest homer, consequently some pages are obsoleted - as far as the FS capture agent, its scheduled to be upgraded in the coming months to HEP3 but Captagent remains superior in terms of flexibility and latest features and definitely suggested for packaged distributions |
@lmangani Yes sir, I did notice that you guys are working hard at bringing your Wiki up-to-date, and I in no way was criticizing that. Please accept my apologies if that's the message that came across. |
quite the opposite, thanks for helping us track priorities here and let us know how you progress - we count releasing the fully updated documentation and working packages in the coming weeks to solve this all |
@lmangani Awesome! I'm still struggling getting Captagent to send packets over to Homer5, so any assistance would be highly appreciated. I can share all the relevant config files with you if you can tell me which ones you need to see to confirm that I have my settings correct. As I mentioned earlier, I don't suspect a firewall issue as this is a clean install of Debian 8 and I haven't made any modifications at all to IPTables. |
ngrep on both sender and receiver UDP port 9060 and check if you see any packets out/in to begin with. Also make sure Kamailio is listening to the public interface ;) |
@lmangani Unfortunately, I am not seeing any traffic traversing both servers on ports 9060. |
As @adubovikov pointed out a firewall is likely in place on the system running captagent |
@lmangani Yes, on the system running the Captagent (which is my Freeswitch server) there is a firewall in place. I'm guessing I need to see if port 9060 is being blocked. Will check and advice. |
I'm trying to setup the cronjob and I'm at the point where you instruct to manually run the homer_rotate script. Doing so gives the following errors - can you help please? root@freeswitch2:~# cd /opt/sipcapture/ |
you have to install perl DBI On 12 November 2015 at 21:55, kismetgerald notifications@github.com wrote:
|
Thanks - I did "apt-get install libdbi-perl" after Google'ing around on how to install perl DBI. The install was successful, but running the rotate script yielded another error. I have to run and catch my train now, but I'll search online how to install the missing mysql.pm driver - but any help from you would be appreciated: install_driver(mysql) failed: Can't locate DBD/mysql.pm in @inc (you may need to install the DBD::mysql module) (@inc contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at (eval 6) line 3. |
Good day folks, I did some searching online and found some help in installing the mysql per drivers. I tried to run the homer_rotate script again, and this time I didn't get any of the previous errors........just the last line saying the "using a password on the command line can be insecure...." So I believe the script worked successfully, however, how do I confirm this? Is there tables in the MySQL database that should now be present after the cron script runs that I can check for? |
If you are comfortable with the mysql cli you can launch that look at look Something like mysql -umysqluser -ppasswordforuseruse homer_data show table status; It will list tables with rotation dates. Kinda like this. MariaDB [homer_data]> show table status\G On Fri, Nov 13, 2015 at 9:37 AM, kismetgerald notifications@github.com
|
Thanks for the response. I did what you suggested but don't really understand what I'm seeing. Here's a screenshot (attached) |
Yeah looks good. The sip_capture_call_20151115 are showing the partitions. On Fri, Nov 13, 2015 at 11:10 AM, kismetgerald notifications@github.com
|
@recourse Thanks. Now trying to figure out how to get capturing from my Freeswitch server to Homer5. |
As discussed, captagent is the answer. Closing as there is no bug/issue ehre, If you need help please use the mailing list. |
Hello,
I'm a newbie to Linux but a quick learner, and I'm interested in installing Homer5 on a fresh Debian 8 server. I have followed your Quick Install instructions but with the Automated Install, your site says it's a work in progress and I can confirm that after the repo is setup, I cannot find any Homer packages to install with "apt-cache search homer".
Secondly, I then try to build the package with your Build Custom Packages section. There I get stuck after running "make debian-jessie-x86_64.homer.deb". The result of this is a series of files dumped into /usr/src/homer/build/ which include several .deb files but none with the name "debian-jessie-x86_64.homer.deb". So right now I'm confused as to how to proceed further and could use some help and direction.
I saw your demo on Youtube and really would love to try it out to see if I can use this in a setup I'm putting together for a ITSP business I hope to start. Thanks.
The text was updated successfully, but these errors were encountered: