Updated kamevapi

This commit is contained in:
Trial97
2019-10-01 10:08:05 +03:00
committed by Dan Christian Bogos
parent 1f106a62ce
commit 4f94e621fb
3 changed files with 4 additions and 2 deletions

2
go.mod
View File

@@ -17,7 +17,7 @@ require (
github.com/cenkalti/rpc2 v0.0.0-20180727162946-9642ea02d0aa
github.com/cgrates/aringo v0.0.0-20181115151919-f996da7890ea
github.com/cgrates/fsock v0.0.0-20190623100231-317895b42f1a
github.com/cgrates/kamevapi v0.0.0-20190605144325-ec679e017654
github.com/cgrates/kamevapi v0.0.0-20191001070356-51d06bab2926
github.com/cgrates/ltcache v0.0.0-20181016092649-92fb7fa77cca
github.com/cgrates/radigo v0.0.0-20181207143118-e5c8f3272ccc
github.com/cgrates/rpcclient v0.0.0-20190505150825-8fcc68b2c38b

2
go.sum
View File

@@ -57,6 +57,8 @@ github.com/cgrates/fsock v0.0.0-20190623100231-317895b42f1a h1:GTXhk4FSzdyLkJgK5
github.com/cgrates/fsock v0.0.0-20190623100231-317895b42f1a/go.mod h1:uWcTZ01eKJdWcoYBhsEXKgSlO6Vv8wT9qcR5JeJovBs=
github.com/cgrates/kamevapi v0.0.0-20190605144325-ec679e017654 h1:D2NqOOYKha71Ab6WfZBCJpWZOyr8BPpAm3q5a1OWFBI=
github.com/cgrates/kamevapi v0.0.0-20190605144325-ec679e017654/go.mod h1:pgHqPlPcEDIQbbs9wyBk7YZTcaVdxMqf3v04XU+mngI=
github.com/cgrates/kamevapi v0.0.0-20191001070356-51d06bab2926 h1:eb9F8blPHqBnAyLkW5U0eTTV0/j2tMrVTIBVxcm8bXY=
github.com/cgrates/kamevapi v0.0.0-20191001070356-51d06bab2926/go.mod h1:pgHqPlPcEDIQbbs9wyBk7YZTcaVdxMqf3v04XU+mngI=
github.com/cgrates/ltcache v0.0.0-20181016092649-92fb7fa77cca h1:Ejj4m0Ccl8dMMVnoHk4nQMlbR3w24llqQDy66DO9E0A=
github.com/cgrates/ltcache v0.0.0-20181016092649-92fb7fa77cca/go.mod h1:q7c996DUu8OrJRnewVSQzM+y/bRcxZAHoo+zCD8bFBo=
github.com/cgrates/radigo v0.0.0-20181207143118-e5c8f3272ccc h1:vOvPAyI9pNhUM5k/Wc3mYvwmGpDrMg41BMkz4AW1wfg=

View File

@@ -115,7 +115,7 @@ func (kam *KamailioAgent) Reload(sp servmanager.ServiceProvider) (err error) {
srvSessionS.GetIntenternalChan() <- sSIntConn
sS = utils.NewBiRPCInternalClient(sSIntConn.(*sessions.SessionS))
} else {
if sS, err = sp.NewConnection(utils.SessionS, sp.GetConfig().FsAgentCfg().SessionSConns); err != nil {
if sS, err = sp.NewConnection(utils.SessionS, sp.GetConfig().KamAgentCfg().SessionSConns); err != nil {
utils.Logger.Crit(fmt.Sprintf("<%s> Could not connect to %s: %s",
utils.KamailioAgent, utils.SessionS, err.Error()))
return