89
89
<programlisting format =" linespecific" >
90
90
...
91
91
if (!cgrates_auth("$fU", "$rU")) {
92
- sl_send_reply(" 403" , "Forbidden");
92
+ sl_send_reply(403, "Forbidden");
93
93
exit;
94
94
}
95
95
xlog("Call is allowed to run $cgr_ret seconds\n");
@@ -662,7 +662,7 @@ modparam("cgrates", "compat_mode", 1)
662
662
$cgr(RequestType) = "*prepaid"; # do prepaid accounting
663
663
$cgr(AttributeIDs) := '["+5551234"]'; # treat as array
664
664
if (!cgrates_auth("$fU", "$rU")) {
665
- sl_send_reply(" 403" , "Forbidden");
665
+ sl_send_reply(403, "Forbidden");
666
666
exit;
667
667
}
668
668
}
@@ -679,7 +679,7 @@ modparam("cgrates", "compat_mode", 1)
679
679
$cgr_opt(Tenant) = $fd; # set the From domain as a tenant
680
680
$cgr(RequestType) = "*prepaid"; # do prepaid accounting
681
681
if (!cgrates_auth("$fU", "$rU")) {
682
- sl_send_reply(" 403" , "Forbidden");
682
+ sl_send_reply(403, "Forbidden");
683
683
exit;
684
684
}
685
685
@@ -848,7 +848,7 @@ route [auth_reply]
848
848
{
849
849
if ($rc < 0) {
850
850
xlog("Call not authorized: code=$cgr_ret!\n");
851
- send_reply(" 403" , "Forbidden");
851
+ send_reply(403, "Forbidden");
852
852
exit;
853
853
}
854
854
...
@@ -923,7 +923,7 @@ route [auth_reply]
923
923
{
924
924
if ($rc < 0) {
925
925
xlog("Call not authorized: code=$cgr_ret!\n");
926
- send_reply(" 403" , "Forbidden");
926
+ send_reply(403, "Forbidden");
927
927
exit;
928
928
}
929
929
...
@@ -948,7 +948,7 @@ route [auth_reply]
948
948
{
949
949
if ($rc < 0) {
950
950
xlog("Call not authorized: MaxUsage=$cgr_ret(MaxUsage)!\n");
951
- send_reply(" 403" , "Forbidden");
951
+ send_reply(403, "Forbidden");
952
952
exit;
953
953
}
954
954
...
0 commit comments