<div dir="ltr">Hi Andreas, no problems. I thought I was missing something...<div><br></div><div>There is a <span style="font-family:arial,sans-serif;font-size:13px">/usr/sbin/ngcp-fraud-daily-</span><u style="font-family:arial,sans-serif;font-size:13px"></u><span style="font-family:arial,sans-serif;font-size:13px">loc</span><span style="font-family:arial,sans-serif;font-size:13px">k script available though there is no </span><span style="font-family:arial,sans-serif;font-size:13px">/etc/ngcp-config/templates/</span><u style="font-family:arial,sans-serif;font-size:13px"></u><span style="font-family:arial,sans-serif;font-size:13px">etc</span><span style="font-family:arial,sans-serif;font-size:13px">/cron.d/ngcp-fraud-daily-</span><u style="font-family:arial,sans-serif;font-size:13px"></u><span style="font-family:arial,sans-serif;font-size:13px">lock.</span><span style="font-family:arial,sans-serif;font-size:13px">tt2</span><div>
<font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Anyways, let me know once you get it into the repo and also how to get the script if you can.</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">Thanks<br></font><div><br></div></div><div class="gmail_extra"><div class="gmail_quote">On Thu, May 2, 2013 at 5:19 PM, Andreas Granig <span dir="ltr"><<a href="mailto:agranig@sipwise.com" target="_blank">agranig@sipwise.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The reason it doesn't work for you is quite simple and stupid on our end: I'm afraid we forgot to include the /usr/sbin/ngcp-fraud-daily-<u></u>lock script in the debian package for 2.8.<br>
<br>
I'll push an update into the 2.8 repo within the next couple of hours. Once done, you'll get a /etc/ngcp-config/templates/<u></u>etc/cron.d/ngcp-fraud-daily-<u></u>lock.tt2 config where you can adapt how often to run the daily fraud script.<br>
<br>
Aplologies for that, and thanks for raising this issue!<br>
<br>
Andreas<div class="im"><br>
<br>
On 05/02/2013 07:10 AM, Martin Wong wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi, apologies for the erratic emails on this topic. Just trying to<br>
figure out how this works?<br>
<br>
Can someone explain what the basics are? I have created a billing<br>
profile, the rating works fine. Then I have under that billing profile<br>
an account with a few subscribers. Under that account, I've set a fraud<br>
daily limit of 0.50 (for example) and have made calls which have been<br>
rating correctly. Total of more than 0.50 worth of calls has been made.<br>
<br>
Have run the ngcp-fraud-auto-lock manually but it didn't lock it.<br>
<br>
I apologize but if I'm doing something wrong here, please let me know.<br>
<br>
Thanks<br>
<br>
<br>
On Thu, May 2, 2013 at 2:34 PM, Martin Wong<br>
<<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.<u></u>com.au</a><br></div><div class="im">
<mailto:<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@<u></u>binaryelements.com.au</a>>> wrote:<br>
<br>
Hi,<br>
<br>
can someone explain how this works? How does this get updated? Cash<br>
$0.05 under Spent this billing interval?<br>
<br>
And can this be done so that the fraud prevention script runs say<br>
every hour or is this too much?<br>
<br></div>
*<br>
Spent this billing interval<br>
*<br>
Cash:<br>
$ 0.05<div class="im"><br>
*<br>
Free time:<br>
0 s<br>
<br>
<br>
<br>
<br>
On Wed, May 1, 2013 at 4:44 PM, Martin Wong<br>
<<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@binaryelements.<u></u>com.au</a><br></div><div><div class="h5">
<mailto:<a href="mailto:martin.wong@binaryelements.com.au" target="_blank">martin.wong@<u></u>binaryelements.com.au</a>>> wrote:<br>
<br>
Hi guys, I don't get this ....<br>
<br>
below is a CDR record.<br>
<br>
Clearly, this is over the limit than my daily limit but I still<br>
can make outgoing calls.<br>
<br>
Does the destination_carrier_cost need to be populated? If so,<br>
I'm not sure how to get this. My billing profile has the call<br>
costs uploaded correctly. I assume the regex is correct as well<br>
cuz I can see the source_customer_cost to be 0.18 in this instance.<br>
<br>
Can someone help to see what other settings need to be done for<br>
the fraud lock to work?<br>
<br>
<br>
call_code:200<br>
call_id:<u></u>ZDhlNDVkYWM5MmJhM2NkZDM5MDE0Zm<u></u>NlZDY2MzUxOWQ.<br>
call_status:ok<br>
call_type:call<br>
destination_account_id:0<br>
destination_carrier_billing_<u></u>fee_id:<br>
destination_carrier_billing_<u></u>zone_id:<br>
destination_carrier_cost:0.00<br>
destination_carrier_free_time:<u></u>0<br>
destination_customer_billing_<u></u>fee_id:<br>
destination_customer_billing_<u></u>zone_id:<br>
destination_customer_cost:0.00<br>
destination_customer_free_<u></u>time:0<br>
destination_domain:125.213.<u></u><a href="tel:160.145" value="+61160145" target="_blank">160.145</a><br>
destination_domain_in:49.156.<u></u>17.189<br>
destination_external_contract_<u></u>id:<br>
destination_external_<u></u>subscriber_id:<br>
destination_provider_id:3<br>
destination_user:XXXXXXXX<br>
destination_user_dialed:<u></u>XXXXXXXX<br>
destination_user_id:0<br>
destination_user_in:XXXXXXXX<br>
duration:10.400<br>
id:388<br>
init_time:1367390374.753<br>
peer_auth_realm:<br>
peer_auth_user:<br>
rated_at:2013-05-01 16:40:06<br>
rating_status:ok<br>
source_account_id:6<br>
source_carrier_billing_fee_id:<u></u>69<br>
source_carrier_billing_zone_<u></u>id:1140<br>
source_carrier_cost:0.18<br>
source_carrier_free_time:0<br>
source_cli:0XXXXXXXX<br>
source_clir:0<br>
source_customer_billing_fee_<u></u>id:69<br>
source_customer_billing_zone_<u></u>id:1140<br>
source_customer_cost:0.18<br>
source_customer_free_time:0<br>
source_domain:xx.xx.xx.xx<br>
source_external_contract_id:<br>
source_external_subscriber_id:<br>
source_ip:xx.xx.xx.xx<br>
source_provider_id:1<br>
source_user:abcdeftest<br>
source_user_id:c1f84003-cca2-<u></u>42ce-b074-12ef7b765a27<br>
start_time:1367390386.340<br>
<br>
<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/<u></u>listinfo/spce-user</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/<u></u>listinfo/spce-user</a><br>
</blockquote></div><br></div></div></div>