CDRS working syslog and mysql - sql is disabled missing field
This commit is contained in:
13
kamailio.cfg
13
kamailio.cfg
@@ -28,7 +28,7 @@ loadmodule "db_flatstore.so"
|
||||
cfgengine "native"
|
||||
fork=yes
|
||||
children=4
|
||||
#debug=3
|
||||
debug=3
|
||||
log_facility=LOG_LOCAL0
|
||||
log_prefix="{$mt $hdr(CSeq) $ci} "
|
||||
# RTPProxy settings
|
||||
@@ -63,11 +63,8 @@ modparam("dialog", "dlg_flag", DLG_FLAG)
|
||||
|
||||
# ACC
|
||||
# -- cdr accounting to database
|
||||
#modparam("acc", "db_extra", "from_user=$fU; from_domain=$fd; src_ip=$si; ruri_user=$rU; ruri_domain=$rd ; callid=$ci; cidhash=$dlg_var(cidhash)")
|
||||
#modparam("acc", "cdr_extra","src_user=$fU;src_domain=$fd;src_ip=$si;dst_user=$rU;dst_ouser=$tU;dst_domain=$rd;sip_code=$rs;sip_reason=$rr;callid=$dlg(callid);dst_ip=$Ri")
|
||||
# -- cdr accounting to database
|
||||
modparam("acc", "db_url", "flatstore:/var/log/acc")
|
||||
modparam("acc", "cdrs_table", "kam_users_cdrs")
|
||||
modparam("acc", "db_url", "mysql://kamailio:kamailiow@localhost/kamailio")
|
||||
modparam("acc", "cdrs_table", "acc_cdrs")
|
||||
modparam("acc", "cdr_enable", 1)
|
||||
modparam("acc", "cdr_skip", "nocdr")
|
||||
modparam("acc", "cdr_extra_nullable", 1)
|
||||
@@ -76,7 +73,7 @@ modparam("acc", "cdr_on_failed", 1)
|
||||
modparam("acc", "cdr_expired_dlg_enable", 1)
|
||||
modparam("acc", "cdr_start_on_confirmed", 1)
|
||||
modparam("acc", "cdr_facility", "LOG_LOCAL2")
|
||||
modparam("acc", "cdr_extra","src_user=$fU;src_domain=$fd;src_ip=$si;dst_user=$rU;dst_ouser=$tU;dst_domain=$rd;sip_code=$rs;sip_reason=$rr;callid=$dlg(callid);dst_ip=$Ri")
|
||||
modparam("acc", "cdr_extra","src_user=$fU;src_domain=$fd;src_ip=$si;dst_user=$rU;dst_ouser=$tU;dst_domain=$rd;callid=$dlg(callid);dst_ip=$Ri;direction=$avp(direction)")
|
||||
|
||||
# DIALOG
|
||||
modparam("dialog", "dlg_flag", DLG_FLAG)
|
||||
@@ -157,7 +154,9 @@ route[RELAY] {
|
||||
# update $du to set the destination address for proxying based on caller IP
|
||||
if ($siz==$avp(sip1) || $siz==$avp(sip2)) {
|
||||
$du = "sip:" + $avp(customerpbxip);
|
||||
$avp(direction)="inbound";
|
||||
} else {
|
||||
$avp(direction)="outbound";
|
||||
ds_select_dst("1","9");
|
||||
}
|
||||
# If auth is required perform it
|
||||
|
||||
Reference in New Issue
Block a user