mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Fix in documentation changed default CDRs port which is now 2080
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<!-- HTTP(S) logging -->
|
<!-- HTTP(S) logging -->
|
||||||
<!-- URL where to POST JSON CDRs. Leave empty for no URL logging. Up to 20 URLs may be specified. -->
|
<!-- URL where to POST JSON CDRs. Leave empty for no URL logging. Up to 20 URLs may be specified. -->
|
||||||
<param name="url" value="http://127.0.0.1:2022/freeswitch_json"/>
|
<param name="url" value="http://127.0.0.1:2080/freeswitch_json"/>
|
||||||
<!-- Authentication scheme for the above URL. May be one of basic|digest|NTLM|GSS-NEGOTIATE|any-->
|
<!-- Authentication scheme for the above URL. May be one of basic|digest|NTLM|GSS-NEGOTIATE|any-->
|
||||||
<param name="auth-scheme" value="basic"/>
|
<param name="auth-scheme" value="basic"/>
|
||||||
<!-- Credentials in the form usernameassword if auth-scheme is used. Leave empty for no authentication. -->
|
<!-- Credentials in the form usernameassword if auth-scheme is used. Leave empty for no authentication. -->
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ check process CGRateS with pidfile /var/run/cgrates/cgr-engine.pid
|
|||||||
stop program = "/etc/init.d/cgrates stop"
|
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 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 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
|
if 5 restarts within 20 cycles then timeout
|
||||||
|
|||||||
@@ -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:
|
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
|
CDR-FS_JSON
|
||||||
|
|||||||
@@ -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) {
|
func TestCgrCdrFields(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user