Skip to content

Commit

Permalink
cgrates: adjust auth documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Mar 22, 2018
1 parent 3c7ac2d commit 654418d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions modules/cgrates/README
Expand Up @@ -623,7 +623,7 @@ route {
$cgr(SetupTime) = "" + $Ts;
$cgr(RequestType) = "*prepaid";
$cgr(Destination) = $rU;
async(cgrates_cmd("SessionSv1.AuthorizeEvent"), auth_reply);
async(cgrates_cmd("SMGenericV1.GetMaxUsage"), auth_reply);
}

route [auth_reply]
Expand Down Expand Up @@ -652,7 +652,8 @@ eply);
route [auth_reply]
{
if ($rc < 0) {
xlog("Call not authorized: code=$cgrret!\n");
xlog("Call not authorized: MaxUsage=$cgrret(MaxUsage)!\n
");
send_reply("403", "Forbidden");
exit;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/cgrates/doc/cgrates_admin.xml
Expand Up @@ -885,7 +885,7 @@ route {
$cgr(SetupTime) = "" + $Ts;
$cgr(RequestType) = "*prepaid";
$cgr(Destination) = $rU;
async(cgrates_cmd("SessionSv1.AuthorizeEvent"), auth_reply);
async(cgrates_cmd("SMGenericV1.GetMaxUsage"), auth_reply);
}

route [auth_reply]
Expand Down Expand Up @@ -916,7 +916,7 @@ route {
route [auth_reply]
{
if ($rc &lt; 0) {
xlog("Call not authorized: code=$cgrret!\n");
xlog("Call not authorized: MaxUsage=$cgrret(MaxUsage)!\n");
send_reply("403", "Forbidden");
exit;
}
Expand Down

0 comments on commit 654418d

Please sign in to comment.