mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated call tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
0222d17f96
commit
b4f79616e8
@@ -2,7 +2,7 @@
|
||||
exten => _1XXX,1,NoOp()
|
||||
same => n,Set(CGRMaxSessionTime=0); use it to disconnect automatically the call if CGRateS is not active
|
||||
same => n,DumpChan()
|
||||
same => n,Stasis(cgrates_auth,cgr_reqtype=*prepaid,cgr_supplier=supplier1,cgr_subsystems=*accounts*attributes*resources*stats*suppliers*thresholds)
|
||||
same => n,Stasis(cgrates_auth,cgr_reqtype=*prepaid,cgr_supplier=supplier1,"cgr_flags=*accounts,*attributes,*resources,*stats,*suppliers,*thresholds")
|
||||
same => n,Dial(PJSIP/${EXTEN},30,L(${CGRMaxSessionTime}))
|
||||
same => n,Hangup()
|
||||
|
||||
|
||||
Binary file not shown.
@@ -74,7 +74,7 @@ route[CGRATES_SIMPLEAUTH_REQUEST] {
|
||||
evapi_async_relay("{\"event\":\"CGR_AUTH_REQUEST\",
|
||||
\"tr_index\":\"$T(id_index)\",
|
||||
\"tr_label\":\"$T(id_label)\",
|
||||
\"cgr_subsystems\":\"*attributes\",
|
||||
\"cgr_flags\":\"*attributes\",
|
||||
\"cgr_context\":\"simpleauth\",
|
||||
\"reply_route\":\"CGR_SIMPLEAUTH_REPLY\",
|
||||
\"Account\":\"$fU\"}");
|
||||
@@ -113,7 +113,7 @@ route[CGRATES_SESSIONAUTH_REQUEST] {
|
||||
evapi_async_relay("{\"event\":\"CGR_AUTH_REQUEST\",
|
||||
\"tr_index\":\"$T(id_index)\",
|
||||
\"tr_label\":\"$T(id_label)\",
|
||||
\"cgr_subsystems\":\"*attributes;*accounts;*suppliers;*resources;*thresholds\",
|
||||
\"cgr_flags\":\"*attributes,*accounts,*suppliers,*resources,*thresholds\",
|
||||
\"reply_route\":\"CGR_SESSIONAUTH_REPLY\",
|
||||
\"Account\":\"$fU\",
|
||||
\"Destination\":\"$rU\",
|
||||
@@ -159,7 +159,7 @@ route[CGR_CALL_START] {
|
||||
evapi_relay("{\"event\":\"CGR_CALL_START\",
|
||||
\"h_entry\":\"$dlg(h_entry)\",
|
||||
\"h_id\":\"$dlg(h_id)\",
|
||||
\"cgr_subsystems\":\"*attributes;*accounts;*resources;*thresholds\",
|
||||
\"cgr_flags\":\"*attributes,*accounts,*resources,*thresholds\",
|
||||
\"OriginID\":\"$dlg_var(cgrOriginID)\",
|
||||
\"RequestType\":\"$dlg_var(cgrReqType)\",
|
||||
\"Tenant\":\"$dlg_var(cgrTenant)\",
|
||||
@@ -178,7 +178,7 @@ route[CGR_CALL_END] {
|
||||
}
|
||||
$var(callDur) = $TS - $dlg(start_ts);
|
||||
evapi_relay("{\"event\":\"CGR_CALL_END\",
|
||||
\"cgr_subsystems\":\"*accounts;*resources\",
|
||||
\"cgr_flags\":\"*accounts,*resources\",
|
||||
\"OriginID\":\"$dlg_var(cgrOriginID)\",
|
||||
\"RequestType\":\"$dlg_var(cgrReqType)\",
|
||||
\"Tenant\":\"$dlg_var(cgrTenant)\",
|
||||
|
||||
Reference in New Issue
Block a user