From 2556fb5e69224e2b16ff6d60ec0f6db901c2f587 Mon Sep 17 00:00:00 2001 From: DanB Date: Wed, 5 Mar 2014 12:06:09 +0100 Subject: [PATCH] Fix in documentation changed default CDRs port which is now 2080 --- data/freeswitch/conf/autoload_configs/json_cdr.conf.xml | 2 +- data/monit/cgrates.monit | 2 +- docs/cdrserver.rst | 2 +- utils/cgrcdr_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/freeswitch/conf/autoload_configs/json_cdr.conf.xml b/data/freeswitch/conf/autoload_configs/json_cdr.conf.xml index 32aebe155..8bf79c2f9 100644 --- a/data/freeswitch/conf/autoload_configs/json_cdr.conf.xml +++ b/data/freeswitch/conf/autoload_configs/json_cdr.conf.xml @@ -20,7 +20,7 @@ - + diff --git a/data/monit/cgrates.monit b/data/monit/cgrates.monit index 8e85e3fca..5bf88dc4d 100644 --- a/data/monit/cgrates.monit +++ b/data/monit/cgrates.monit @@ -5,5 +5,5 @@ check process CGRateS with pidfile /var/run/cgrates/cgr-engine.pid stop program = "/etc/init.d/cgrates stop" if failed host 127.0.0.1 port 2012 type TCP 4 times within 4 cycles then restart # Rater if failed host 127.0.0.1 port 2013 type TCP 4 times within 4 cycles then restart # History - if failed host 127.0.0.1 port 2022 type TCP 4 times within 4 cycles then restart # CDRS + if failed host 127.0.0.1 port 2080 type TCP 4 times within 4 cycles then restart # CDRS if 5 restarts within 20 cycles then timeout diff --git a/docs/cdrserver.rst b/docs/cdrserver.rst index c167837f9..9667a4481 100644 --- a/docs/cdrserver.rst +++ b/docs/cdrserver.rst @@ -36,7 +36,7 @@ Extra fields: any field coming in via the http request and not a member of prima Example of sample CDR generated simply using curl: :: - curl --data "curl --data "accid=iiaasbfdsaf&cdrhost=192.168.1.1&cdrsource=curl_cdr&reqtype=rated&direction=*out&tenant=192.168.56.66&tor=call&account=dan&subject=dan&destination=%2B4986517174963&answer_time=1383813746&duration=1&sip_user=Jitsi&subject2=1003" http://127.0.0.1:2022/cgr + curl --data "curl --data "accid=iiaasbfdsaf&cdrhost=192.168.1.1&cdrsource=curl_cdr&reqtype=rated&direction=*out&tenant=192.168.56.66&tor=call&account=dan&subject=dan&destination=%2B4986517174963&answer_time=1383813746&duration=1&sip_user=Jitsi&subject2=1003" http://127.0.0.1:2080/cgr CDR-FS_JSON diff --git a/utils/cgrcdr_test.go b/utils/cgrcdr_test.go index 2b55e2bb8..6d4410898 100644 --- a/utils/cgrcdr_test.go +++ b/utils/cgrcdr_test.go @@ -25,7 +25,7 @@ import ( ) /* -curl --data "accid=asbfdsaf&cdrhost=192.168.1.1&reqtype=rated&direction=*out&tenant=cgrates.org&tor=call&account=1001&subject=1001&destination=1002&time_answer=1383813746&duration=10&field_extr1=val_extr1&fieldextr2=valextr2" http://ipbxdev:2022/cgr +curl --data "accid=asbfdsaf&cdrhost=192.168.1.1&reqtype=rated&direction=*out&tenant=cgrates.org&tor=call&account=1001&subject=1001&destination=1002&time_answer=1383813746&duration=10&field_extr1=val_extr1&fieldextr2=valextr2" http://ipbxdev:2080/cgr */ func TestCgrCdrFields(t *testing.T) {