2

I'm getting on well, hooking up the ruby engine Adhearsion with the telephony engine FreeSwitch. However, the instructions tell me to give some config files a once over.

Specifically

config.punchblock.platform

and the permissions set on the directory

/var/punchblock/record

Could anyone please tell me where these are located?

Full instructions here:

http://adhearsion.com/docs/getting-started/freeswitch

Starkers
  • 10,273
  • 21
  • 95
  • 158

1 Answers1

1
config.punchblock.platform

is in config/adhearsion.rb in your Adhearsion app.

and

/var/punchblock/record

is where asterisk is running.

Changing file, folder permissions

Yes, that's what I did for database connection.

Adhearsion.config do |config|
  config.adhearsion_activerecord do |db|
    db.username = "user"
    db.password = "password"
    db.database = "database"
    db.adapter  = "mysql"
    db.host     = "localhost"
    db.port     = 3306
  end
end

  #Centralized way to specify any Adhearsion platform or plugin configuration

  #To update a plugin configuration you can write either:
  # Option 1
      Adhearsion.config.<plugin-name> do |config|
        config.<key> = <value>
      end

  # Option 2
      Adhearsion.config do |config|
        config.<plugin-name>.<key> = <value>
      end
halfer
  • 19,824
  • 17
  • 99
  • 186
ajt
  • 553
  • 8
  • 25