mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Adding JanusConn to config
This commit is contained in:
@@ -1184,6 +1184,9 @@ const CGRATES_CFG_JSON = `
|
||||
"enabled": false, // enables the Janus agent: <true|false>
|
||||
"url": "/janus",
|
||||
"sessions_conns": ["*internal"],
|
||||
"janus_conns":[ // instantiate connections to multiple Asterisk servers
|
||||
{"address": "127.0.0.1:8088", "type": "*ws"}
|
||||
],
|
||||
"request_processors": [ // request processors to be applied to Janus messages
|
||||
],
|
||||
},
|
||||
|
||||
@@ -23,11 +23,18 @@ import (
|
||||
"github.com/cgrates/rpcclient"
|
||||
)
|
||||
|
||||
// JanusConn represents one connection to Janus server
|
||||
type JanusConn struct {
|
||||
Address string // Address to reach Janus
|
||||
Type string // Connection type
|
||||
}
|
||||
|
||||
// JanusAgentCfg the config for an Janus Agent
|
||||
type JanusAgentCfg struct {
|
||||
Enabled bool
|
||||
URL string
|
||||
SessionSConns []string
|
||||
JanusConns []*JanusConn // connections towards Janus
|
||||
RequestProcessors []*RequestProcessor
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user