ffcrm and Mod cidlookup for FreeSWITCH

111 views
Skip to first unread message

Sergey Zhuravlov

unread,
Nov 3, 2012, 12:22:41 PM11/3/12
to Fat Free CRM Users
Hi

Whether via URL query and get a response?
like this

SELECT contacts.first_name, contacts.last_name FROM `contacts` WHERE
(`contacts`. `Mobile` LIKE '% 6666666666%');

then there is an argument the phone number you want to search for and
return the name of the owner

I want to try to get to work FreeSWITCH Mod cidlookup and ffcrm.

But do not know how to approach, because it is not strong in the RoR.

Steve Kenworthy

unread,
Nov 5, 2012, 10:37:51 PM11/5/12
to fat-free-...@googlegroups.com
Take a look at the ffcrm_meta_search gem.

This provides meta_search (now called Ransack) capability into fat free crm and can be called over api.


Regards,
Steve



--
You received this message because you are subscribed to the Google Groups "Fat Free CRM Users" group.
To post to this group, send email to fat-free-...@googlegroups.com.
To unsubscribe from this group, send email to fat-free-crm-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fat-free-crm-users?hl=en.


Sergey Zhuravlov

unread,
Dec 9, 2012, 6:53:31 AM12/9/12
to Fat Free CRM Users
Try insntall ffcrm_meta_search with existing ffcrm
and recieve next error:

ffcrm@work:~/fat_free_crm$ bundle
Updating https://github.com/crossroads/ffcrm_meta_search.git
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "paperclip":
In Gemfile:
ffcrm_meta_search (>= 0) ruby depends on
paperclip (~> 2.5.2) ruby

paperclip (2.8.0)

Can anyone helpl me install correctly&

Steve Kenworthy

unread,
Dec 10, 2012, 12:31:31 AM12/10/12
to fat-free-...@googlegroups.com
oops. I've realised I need to remove some code that pegs the version of ffcrm. I'll try to do this tomorrow as I need to test it out.

For the time being, if you comment out the ":ref => 'b5ddf8ee58a1a8ef532a8c634175e951716f7ca8' part in the Gemfile of ffcrm_meta_search. 
Then run "bundle install" it should work.

Steve

Sergey Zhuravlov

unread,
Dec 16, 2012, 7:20:38 AM12/16/12
to Fat Free CRM Users
Hi

comment out the ":ref => 'b5ddf8ee58a1a8ef532a8c634175e951716f7ca8'"

not help!!! I try clone to own github -- correct Gemfile, change link
in ffcrm Gemfile to own ginhub repo with

gem 'fat_free_crm', :git => 'git://github.com/fatfreecrm/
fat_free_crm.git'

in Gemfile, but

ffcrm@work:~/fat_free_crm$ bundle
Updating https://github.com/4orbit/ffcrm_meta_search.git
Unpacking objects: 100% (2/2), done.
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "paperclip":
In Gemfile:
ffcrm_meta_search (>= 0) ruby depends on
paperclip (~> 2.5.2) ruby

paperclip (2.8.0)

On 10 дек, 09:31, Steve Kenworthy <stevey...@gmail.com> wrote:
> oops. I've realised I need to remove some code that pegs the version of
> ffcrm. I'll try to do this tomorrow as I need to test it out.
>
> For the time being, if you comment out the ":ref => '
> b5ddf8ee58a1a8ef532a8c634175e951716f7ca8' part in the Gemfile of
> ffcrm_meta_search.
> Then run "bundle install" it should work.
>
> Steve
>
>
>
>
>
>
>
> On Sun, Dec 9, 2012 at 7:53 PM, Sergey Zhuravlov <4or...@gmail.com> wrote:
> > Try insntall ffcrm_meta_search with existing ffcrm
> > and recieve next error:
>
> > ffcrm@work:~/fat_free_crm$ bundle
> > Updatinghttps://github.com/crossroads/ffcrm_meta_search.git
> > Fetching gem metadata fromhttp://rubygems.org/.......
> > Fetching gem metadata fromhttp://rubygems.org/..

Steve Kenworthy

unread,
Dec 26, 2012, 9:03:57 PM12/26/12
to fat-free-...@googlegroups.com
Hi there,

This dependency should have been removed now. I've refactored the code that was holding things back. Try checking it out again.

Regards,
Steve

Sergey Zhuravlov

unread,
Jan 26, 2013, 8:41:45 AM1/26/13
to Fat Free CRM Users
Thanks, now "bundle install" with no problems!

but does not work for me request form - issues

http://my_ffcrm_server/contacts/meta_search?only%5B%5D=id&only%5B%5D=name&only%5B%5D=email&search%5Balt_email_or_email_or_mobile_or_phone_cont%5D=12345678

error like this

NameError in ContactsController#meta_search

undefined local variable or method `require_application' for
#<ContactsController:0xbfe4de4>

I use ordinary ffcrm installation, not ffcrm_app!!!

help me with this starch module, please

On 27 дек 2012, 06:03, Steve Kenworthy <stevey...@gmail.com> wrote:
> Hi there,
>
> This dependency should have been removed now. I've refactored the code that
> was holding things back. Try checking it out again.
>
> Regards,
> Steve
>
>
>
>
>
>
>
> On Sun, Dec 16, 2012 at 8:20 PM, Sergey Zhuravlov <4or...@gmail.com> wrote:
> > Hi
>
> >  comment out the ":ref => 'b5ddf8ee58a1a8ef532a8c634175e951716f7ca8'"
>
> > not help!!! I try clone to own github -- correct Gemfile, change link
> > in ffcrm Gemfile to own ginhub repo with
>
> >  gem 'fat_free_crm', :git => 'git://github.com/fatfreecrm/
> > fat_free_crm.git'
>
> > in Gemfile, but
>
> > ffcrm@work:~/fat_free_crm$ bundle
> > Updatinghttps://github.com/4orbit/ffcrm_meta_search.git
> > Unpacking objects: 100% (2/2), done.

Sergey Zhuravlov

unread,
Jan 28, 2013, 2:46:16 AM1/28/13
to Fat Free CRM Users
and

ffcrm@tst:~/fat_free_crm$ rake routes | grep meta
accounts_meta_search /accounts/
meta_search(.:format) accounts#meta_search
campaigns_meta_search /campaigns/
meta_search(.:format) campaigns#meta_search
contacts_meta_search /contacts/
meta_search(.:format) contacts#meta_search
leads_meta_search /leads/
meta_search(.:format) leads#meta_search
opportunities_meta_search /opportunities/
meta_search(.:format) opportunities#meta_search
tasks_meta_search /tasks/
meta_search(.:format) tasks#meta_search


On 26 янв, 17:41, Sergey Zhuravlov <4or...@gmail.com> wrote:
> Thanks, now "bundle install"  with no problems!
>
> but does not work for me request form - issues
>
> http://my_ffcrm_server/contacts/meta_search?only%5B%5D=id&only%5B%5D=...

Steve Kenworthy

unread,
Jan 29, 2013, 4:38:22 AM1/29/13
to fat-free-...@googlegroups.com
Hi Sergey,

Sorry, ffcrm_meta_search is quite old and unstable, as you're finding out...it was never really hardened for production. If you install 'https://github.com/crossroads/ffcrm_authlogic_api' and follow the docs there... that will allow your application to connect via an 'auth token' and provides the require_application function.

Again, https://github.com/crossroads/ffcrm_authlogic_api is not particularly hardened for production use... your mileage may vary.

Regards,
Steve

Sergey Zhuravlov

unread,
Feb 3, 2013, 6:01:31 AM2/3/13
to fat-free-...@googlegroups.com
but and this plugin not install success

Is there no way of running a third-party application to get auth and make an appeal for a certain adress to ffcrm? 

ffcrm@tst:~/fat_free_crm$ rake db:migrate:plugins
Sass is in the process of being separated from Haml,
and will no longer be bundled at all in Haml 3.2.0.
Please install the 'sass' gem if you want to use Sass.

rake aborted!
cannot load such file -- acts-as-taggable-on
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/var/srv/ffcrm/fat_free_crm/lib/fat_free_crm/gem_dependencies.rb:26:in `<top (required)>'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/var/srv/ffcrm/fat_free_crm/lib/fat_free_crm.rb:41:in `<top (required)>'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/var/srv/ffcrm/fat_free_crm/config/application.rb:86:in `<top (required)>'
/var/srv/ffcrm/fat_free_crm/Rakefile:5:in `require'
/var/srv/ffcrm/fat_free_crm/Rakefile:5:in `<top (required)>'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/bin/ruby_noexec_wrapper:14:in `eval'
/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
ffcrm@tst:~/fat_free_crm$ 

and 

ffcrm@tst:~/fat_free_crm$ rails plugin install git://github.com/crossroads/ffcrm_authlogic_api.git
Sass is in the process of being separated from Haml,
and will no longer be bundled at all in Haml 3.2.0.
Please install the 'sass' gem if you want to use Sass.

/var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- acts-as-taggable-on (LoadError)
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /var/srv/ffcrm/fat_free_crm/lib/fat_free_crm/gem_dependencies.rb:26:in `<top (required)>'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /var/srv/ffcrm/fat_free_crm/lib/fat_free_crm.rb:41:in `<top (required)>'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /var/srv/ffcrm/fat_free_crm/config/application.rb:86:in `<top (required)>'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/railties-3.2.11/lib/rails/commands.rb:24:in `require'
from /var/srv/ffcrm/.rvm/gems/ruby-1.9.3-p362@ffcrm/gems/railties-3.2.11/lib/rails/commands.rb:24:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'



суббота, 3 ноября 2012 г., 20:22:41 UTC+4 пользователь Sergey Zhuravlov написал:

Patrick Mulder

unread,
Feb 3, 2013, 9:28:09 AM2/3/13
to fat-free-...@googlegroups.com
Hmm.. some months ago, I had a devise branch working here:


I remember that the token_authenticatable option from Devise was working too... I haven't followed up much on that, but eventually I could in the future.


Patrick


--
You received this message because you are subscribed to the Google Groups "Fat Free CRM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fat-free-crm-us...@googlegroups.com.
To post to this group, send email to fat-free-...@googlegroups.com.

Steve Kenworthy

unread,
Feb 8, 2013, 11:17:02 PM2/8/13
to fat-free-...@googlegroups.com
Devise would definitely be the strong contender for a solution to this... it has a some good application api modules.

Fat Free CRM doesn't have any external api connections for applications at the moment (I do wish that it did!). The gems I mentioned above have gone some way to trying to get that to work but are really only solving a very specific solution and are quite fragile - hence the trouble you're having.

We're lacking the man power to move FFCRM forward at the moment, if anyone has time to look at this solution it would be most welcome.

tim

unread,
Feb 13, 2013, 4:08:47 PM2/13/13
to Fat Free CRM Users


On Feb 9, 5:17 pm, Steve Kenworthy <stevey...@gmail.com> wrote:
> Devise would definitely be the strong contender for a solution to this...
> it has a some good application api modules.
>

I think you should take the approach of spree and forem and make it
configurable. See this blog post

http://ryanbigg.com/2012/03/engines-and-authentication/

Steve Kenworthy

unread,
Feb 20, 2013, 10:13:00 PM2/20/13
to fat-free-...@googlegroups.com
Yeah I read this article at the turn of the year and was really impressed. I'm watching closely to see what other engines do... it's a sensible approach. One thing issue we'd need to tackle would be ensuring that this works in 'engine mode' but not in 'application mode' when FFCRM is run as a standalone app.

There is a little traction to integrate devise into FFCRM (see other threads on this list). Once that's done, an approach like this this should be a lot more feasible. i.e. use devise in application mode, and allow user to 'plug in' their own auth solution in engine mode.

Regards,
Steve

Tim Uckun

unread,
Feb 20, 2013, 11:15:04 PM2/20/13
to fat-free-...@googlegroups.com
> There is a little traction to integrate devise into FFCRM (see other threads
> on this list). Once that's done, an approach like this this should be a lot
> more feasible. i.e. use devise in application mode, and allow user to 'plug
> in' their own auth solution in engine mode.
>

I think quite a bit of work needs to be done before FFCRM can be used
as an engine in another project. At a minimum everything needs to be
namespaced so that the Users model you create for Device doesn't
conflict with the Users model in the app.
Reply all
Reply to author
Forward
0 new messages