define blackList

127 views
Skip to first unread message

Abdullah Dhiab

unread,
May 24, 2023, 11:54:55 AM5/24/23
to CGRateS
Gents,
is it possible to define a blacklist of certain numbers on cgrates side so that cgrates guide freeswitch to hangup before ringing? And how to make it.

appreciated.

Dhiab

gezim....@itsyscom.com

unread,
May 25, 2023, 3:38:20 AM5/25/23
to CGRateS

Hi  Abdullah,

The blacklisting of numbers can be achieved with the use of Attributes service.The first step involves creating a filter within an attribute profile,and then by  using the attributes  change the destination to a non-existing number.This filter should match the blacklisted destination numbers.Once these calls to these destinations  are matched by the filter and modified by Attributes Service ,it  will  further process non-existing number and take decisions in freeswitch dialplan.

Best Regards,
Gezim

Abdullah Dhiab

unread,
May 25, 2023, 10:25:38 AM5/25/23
to CGRateS
Hi Gezim,
thanks for your help. im testing your suggestion and will update you..

regards\Abdullah

Abdullah Dhiab

unread,
May 25, 2023, 12:54:17 PM5/25/23
to CGRateS
thank you  Gezim, it works well as needed
appreciated..


blacklist_v03_SUCC.json

Abdullah Dhiab

unread,
May 25, 2023, 1:23:49 PM5/25/23
to CGRateS
Hi  Gezim, 
i just noticed that it works fine for prepaid but postpaid it connects call? you may refer to attached log

thanks

blackList_postpaid_prepaid.json

gezim....@itsyscom.com

unread,
Jun 1, 2023, 5:56:31 AM6/1/23
to CGRateS
Hi  Abdullah, The blacklisting  can be achieved only  for *prepaid and *pseudoprepaid  RequestTypes ,since we only do authorization for both of those methods . Best Regards, Gezim

Abdullah Dhiab

unread,
Jun 1, 2023, 11:49:18 AM6/1/23
to CGRateS
ok got it, thank you Gezim..
Reply all
Reply to author
Forward
0 new messages