Starkers
Starkers

Reputation: 10551

Location of Config files in Adhearsion and FreeSWITCH

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

Upvotes: 2

Views: 444

Answers (1)

ajt
ajt

Reputation: 552

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

Upvotes: 1

Related Questions