Update kamailio config

This commit is contained in:
TeoV
2018-04-23 10:29:19 -04:00
committed by Dan Christian Bogos
parent de513f6d46
commit e82d9f41f8
5 changed files with 20 additions and 6 deletions

View File

@@ -73,6 +73,12 @@
"attributes_conns": [
{"address": "127.0.0.1:2012", "transport": "*json"}
],
"stats_conns": [
{"address": "127.0.0.1:2012", "transport": "*json"}
],
"thresholds_conns": [
{"address": "127.0.0.1:2012", "transport": "*json"}
],
"debit_interval": "10s",
},
@@ -80,7 +86,7 @@
"kamailio_agent": {
"enabled": true,
"evapi_conns":[ // instantiate connections to multiple Kamailio servers
{"address": "127.0.0.1:8448", "reconnects": 5}
{"address": "192.168.56.203:8448", "reconnects": 5}
],
"sessions_conns": [
{"address": "*internal"} // connection towards session service: <*internal>

View File

@@ -54,7 +54,7 @@ route[CGRATES_AUTH_REQUEST] {
evapi_async_relay("{\"event\":\"CGR_AUTH_REQUEST\",
\"tr_index\":\"$T(id_index)\",
\"tr_label\":\"$T(id_label)\",
\"cgr_subsystems\":\"*attributes;*resources;*accounts;*suppliers\",
\"cgr_subsystems\":\"*attributes;*resources;*accounts;*suppliers;*stats;*thresholds\",
\"RequestType\":\"$dlg_var(cgrReqType)\",
\"Tenant\":\"$dlg_var(cgrTenant)\",
\"Account\":\"$dlg_var(cgrAccount)\",
@@ -100,7 +100,7 @@ route[CGR_CALL_START] {
evapi_relay("{\"event\":\"CGR_CALL_START\",
\"h_entry\":\"$dlg(h_entry)\",
\"h_id\":\"$dlg(h_id)\",
\"cgr_subsystems\":\"*resources;*accounts\",
\"cgr_subsystems\":\"*attributes;*resources;*accounts;*stats;*thresholds\",
\"OriginID\":\"$dlg_var(cgrOriginID)\",
\"RequestType\":\"$dlg_var(cgrReqType)\",
\"Tenant\":\"$dlg_var(cgrTenant)\",
@@ -119,7 +119,7 @@ route[CGR_CALL_END] {
}
$var(callDur) = $TS - $dlg(start_ts);
evapi_relay("{\"event\":\"CGR_CALL_END\",
\"cgr_subsystems\":\"*resources;*accounts\",
\"cgr_subsystems\":\"*resources;*accounts;*stats;*thresholds\",
\"OriginID\":\"$dlg_var(cgrOriginID)\",
\"RequestType\":\"$dlg_var(cgrReqType)\",
\"Tenant\":\"$dlg_var(cgrTenant)\",

View File

@@ -61,7 +61,7 @@ loadmodule "outbound.so"
# ----------------- setting module-specific parameters ---------------
modparam("evapi", "bind_addr", "127.0.0.1:8448")
modparam("evapi", "bind_addr", "192.168.56.203:8448")
# ----- tm params -----
modparam("tm", "failure_reply_mode", 3)