step by step how to

265 views
Skip to first unread message

Charles

unread,
Aug 14, 2011, 10:27:05 PM8/14/11
to plivo...@googlegroups.com
Hello all,

could anyone please do a 'simple' step by step on how to install plivo?  tried to install and run everything else according to the how to and still getting this


(g)root@plivo:/g/bin# ./plivo start
Error loading config: 'FS_INBOUND_ADDRESS'Traceback (most recent call last):
  File "/g/bin/plivo-rest", line 7, in <module>
    execfile(__file__)
  File "/g/src/plivo/src/bin/plivo-rest", line 47, in <module>
    rest_server = PlivoRestServer(configfile, daemon=daemon, pidfile=pidfile)
  File "/g/src/plivo/src/plivo/rest/freeswitch/apiserver.py", line 56, in __init                                                                              __
    self.load_config()
  File "/g/src/plivo/src/plivo/rest/freeswitch/apiserver.py", line 201, in load_                                                                              config
    raise e
KeyError: 'FS_INBOUND_ADDRESS'
Error loading config: 'outbound_server'Traceback (most recent call last):
  File "/g/bin/plivo-outbound", line 7, in <module>
    execfile(__file__)
  File "/g/src/plivo/src/bin/plivo-outbound", line 47, in <module>
    outbound_server = PlivoOutboundServer(configfile, daemon=daemon, pidfile=pid                                                                              file)
  File "/g/src/plivo/src/plivo/rest/freeswitch/outboundserver.py", line 42, in _                                                                              _init__
    self.load_config()
  File "/g/src/plivo/src/plivo/rest/freeswitch/outboundserver.py", line 104, in                                                                               load_config
    raise e
KeyError: 'outbound_server'
Plivo-Rest [default] start failed
Plivo-Outbound [default] start failed


not sure what i missed.

Venky

unread,
Aug 14, 2011, 10:29:16 PM8/14/11
to plivo...@googlegroups.com
Hi,

Did you follow the steps mentioned at the Get started page, or did you install manually?

Regards
Venky

Charles

unread,
Aug 14, 2011, 10:36:07 PM8/14/11
to plivo...@googlegroups.com
Yes we did follow the Get started page,already two of us are trying to install both on centos and ubuntu.
 it must be something that we missed

Venky

unread,
Aug 14, 2011, 10:57:03 PM8/14/11
to plivo...@googlegroups.com
First check inside the install dir, if etc/plivo/ has a default.conf file.

If yes, check this file has the key "FS_INBOUND_ADDRESS"


Regards
Venky

Charles

unread,
Aug 14, 2011, 10:59:38 PM8/14/11
to plivo...@googlegroups.com
Yes i have it

FS_INBOUND_ADDRESS = 127.0.0.1:8021
FS_PASSWORD = ClueCon

Venky

unread,
Aug 14, 2011, 11:03:05 PM8/14/11
to plivo...@googlegroups.com
Did you modify anything in this file?

Regards
Venky

Charles

unread,
Aug 14, 2011, 11:13:45 PM8/14/11
to plivo...@googlegroups.com
no havent changed anything,heres the whole config.


[rest_server]
# Secret Key for plivo rest server
SECRET_KEY = \xae$\xce:k\x06\x9d\n5o\xb3\\xdb\xa7p1\xd1(\xb5\xad\xb0\xe9\xfe

# Allowed client ips to connect to plivo rest server, separated by a comma
ALLOWED_IPS = 127.0.0.1

# Listening address for plivo rest server
HTTP_ADDRESS = 127.0.0.1:8088

# Auth ID and Auth Token for plivo rest server - Change to something unique
AUTH_ID = something_unique
AUTH_TOKEN = something_unique

# Default Method to Request RESTXML or to send Params
DEFAULT_HTTP_METHOD = POST

# To set different user/group
# when running plivo rest server in daemon mode
#REST_SERVER_USER = root
#REST_SERVER_GROUP = root

# Log settings for plivo rest server
# log debug or not in plivo rest server
DEBUG = true
# log to stdout :
#LOG_TYPE = stdout
# log to file :
LOG_TYPE = file
LOG_FILE = /g/etc/plivo/tmp/plivo-rest.log
# log to syslog :
#LOG_TYPE = syslog
#SYSLOG_ADDRESS = /dev/log
#SYSLOG_FACILITY = local0
# no log
#LOG_TYPE = dummy

[freeswitch]
# Address and password for connecting to eventsocket
FS_INBOUND_ADDRESS = 127.0.0.1:8021
FS_PASSWORD = ClueCon
# Trace for debugging for plivo inbound
#FS_INBOUND_TRACE = true

# Listening address for plivo outbound server
FS_OUTBOUND_ADDRESS = 127.0.0.1:8084
# Trace for debugging for plivo outbound server
#FS_OUTBOUND_TRACE = true

# Incoming calls will always use those urls to post answer/hangup events
# By default, hangup url is same as answer url
DEFAULT_ANSWER_URL = http://127.0.0.1:5000/answered/
#DEFAULT_HANGUP_URL = http://127.0.0.1:5000/hangup/

# Extra FreeSWITCH variables to be sent to answer url on every incoming call
EXTRA_FS_VARS = variable_user_context,Channel-Read-Codec-Bit-Rate

# To set different user/group
#  when running plivo outbound server in daemon mode
#FS_OUTBOUND_USER = root
#FS_OUTBOUND_GROUP = root

# Log settings for plivo outbound server
# log debug or not in plivo outbound server
DEBUG = true
# log to stdout :
#LOG_TYPE = stdout
# log to file :
LOG_TYPE = file
LOG_FILE = /g/etc/plivo/tmp/plivo-outbound.log
# log to syslog :
#LOG_TYPE = syslog
#SYSLOG_ADDRESS = /dev/log
#SYSLOG_FACILITY = local0
# no log
#LOG_TYPE = dummy

Venky

unread,
Aug 14, 2011, 11:25:30 PM8/14/11
to plivo...@googlegroups.com
you are not on the latest version of plivo.

update your plivo with latest version as this conf file is outdated and hence the issue.

Regards
Venky

Charles

unread,
Aug 14, 2011, 11:27:03 PM8/14/11
to plivo...@googlegroups.com
ok that could be it. could you please point me to the right docs on how to update?

Venky

unread,
Aug 14, 2011, 11:40:53 PM8/14/11
to plivo...@googlegroups.com
remove the plivo install folder and follow the plivo install steps again and you should be good to go.

Regards
Venky

Charles

unread,
Aug 14, 2011, 11:56:07 PM8/14/11
to plivo...@googlegroups.com
venky whats is the difference between the two?

wget --no-check-certificate https://github.com/plivo/plivo/raw/master/scripts/plivo_install_beta.sh


i reinstalled it and doesnt seem to create /etc/ under plivo folder that it installed as well as the default.conf

Venky

unread,
Aug 15, 2011, 12:07:32 AM8/15/11
to plivo...@googlegroups.com
use the first one and install using that

Regards
Venky
Reply all
Reply to author
Forward
0 new messages