Jump to content

Recommended Posts

Posted

Hello

Setup version  version: 4.3.93

https://docs.2600hz.com/supported/applications/crossbar/doc/rates/

to test Added 3 different Call rates for India   with  outgoing calls  from  +44 , second rate for  caller id +852  and third rate  ( without caller id , i.e any other caller id)   as per caller_id_numbers , Rates of  0.05 , 0.06, 0.04

 

But even when calling from +44 Caller id or +852 caller ID or any other, it always pics first in que  rate of   - IN-919-UKCLI"

Though calls arrive on phone with callers IDs that i selected and also see them correctly in CDR

 

        I am pasting CDR , by hiding digits

2023-11-01 02:55 PDT   +8525XXXXXXX                       91921XXXXX                                    1 min    $-0.05  

2023-11-01 03:01 PDT  +13156XXXXX                91921XXXXXXX         1 min            $-     0.05

2023-11-01 03:00 PDT  +4474XXXXXXX           91921XXXXXXX                1 min                                             $-0.05

---------

Rates as fetched are below

{[{<<"caller_id_numbers">>,<<"^\\+?44.+$">>}, {<<"weight">>,30}, {<<"routes">>,[<<"^\\+?919.+$">>]}, {<<"rate_surcharge">>,<<"0">>}, {<<"rate_suffix">>,<<"UKCLI">>}, {<<"rate_name">>,<<"outbound_IN_919">>}, {<<"rate_minimum">>,<<"60">>}, {<<"rate_increment">>,<<"60">>}, {<<"rate_cost">>,<<"0.05">>}, {<<"prefix">>,<<"919">>}, {<<"iso_country_code">>,<<"IN">>}, {<<"direction">>,[<<"outbound">>]}, {<<"description">>,<<"India Mobile">>}, {<<"id">>,<<"IN-919-UKCLI">>}]}

---------------

{[{<<"weight">>,30},   {<<"routes">>,[<<"^\\+?919.+$">>]},   {<<"rate_surcharge">>,<<"0">>},   {<<"rate_suffix">>,<<"NOCLI">>},   {<<"rate_name">>,<<"outbound_IN_919">>},   {<<"rate_minimum">>,<<"60">>},   {<<"rate_increment">>,<<"60">>},   {<<"rate_cost">>,<<"0.06">>},   {<<"prefix">>,<<"919">>},   {<<"iso_country_code">>,<<"IN">>},   {<<"direction">>,[<<"outbound">>]},   {<<"description">>,<<"India Mobile">>},   {<<"id">>,<<"IN-919-NOCLI">>}]}

---------------------------------------------

{[{<<" caller_id_numbers">>,<<"^\\+?852.+$">>},   {<<"weight">>,30},   {<<"routes">>,[<<"^\\+?919.+$">>]},   {<<"rate_surcharge">>,<<"0">>},   {<<"rate_suffix">>,<<"HKCLI">>},   {<<"rate_name">>,<<"outbound_IN_919">>},   {<<"rate_minimum">>,<<"60">>},   {<<"rate_increment">>,<<"60">>},   {<<"rate_cost">>,<<"0.04">>},   {<<"prefix">>,<<"919">>},   {<<"iso_country_code">>,<<"IN">>},   {<<"direction">>,[<<"outbound">>]},   {<<"description">>,<<"India Mobile">>},   {<<"id">>,<<"IN-919-HKCLI">>}]}

 

 

 

 
  • Administrators
Posted

Check in your `system_config/hotornot` doc, the `filter_list` key (or run `sup kapps_config get hotornot filter_list`) and see if there is an entry in that list for "caller_id_numbers". If not, you'll need to add it to the list of filter options

Posted
On 11/3/2023 at 11:19 PM, mc_ said:

Check in your `system_config/hotornot` doc, the `filter_list` key (or run `sup kapps_config get hotornot filter_list`) and see if there is an entry in that list for "caller_id_numbers". If not, you'll need to add it to the list of filter options

It is there

 "default_rate_cost": 0,
            "default_rate_increment": 60,
            "default_rate_internal_cost": 0,
            "default_rate_minimum": 60,
            "default_rate_nocharge_time": 0,
            "default_rate_surcharge": 0,
            "default_ratedeck": "ratedeck",
            "filter_list": [
                "direction",
                "route_options",
                "routes",
                "caller_id_numbers"
            ],
            "sort_by_weight": true,
            "trie_build_timeout_ms": 60000,
            "trie_lru_expires_s": 86400,
            "trie_module": "hon_trie",
            "use_trie": false,
            "filter_by_resource_id": false,
            "should_publish_system_alert": {
                "inbound": true,
                "outbound": true,
                "both": true
            }
        }

Posted

I have noticed one thing  that []   i.e ( Brackets are missing)

 

it shows for example {<<" caller_id_numbers">>,<<"^\\+?852.+$">>}

and not

{<<" caller_id_numbers">>,[<<"^\\+?852.+$">>]}

 

 

if i add simply as 852 in excel file in caller_id_numbers table     in that case it shows as {<<" caller_id_numbers">>,"852">>}

if i add as \+?852.+$   in caller_id_numbers  in excel file it shows up as  {<<" caller_id_numbers">>,<<"^\\+?852.+$">>}  without bracket

Looks like conversion is not taking place correctly,  so when billing it is not picking  correct rate based on caller id

Can you suggest a way to fix it..

  • Administrators
Posted

I'll be honest, no idea what you're talking about? When did Excel come into play here? Do you mean the CSV ratedeck you uploaded to Crossbar?

  • 7 months later...
Posted
On 11/3/2023 at 11:19 PM, mc_ said:

Check in your `system_config/hotornot` doc, the `filter_list` key (or run `sup kapps_config get hotornot filter_list`) and see if there is an entry in that list for "caller_id_numbers". If not, you'll need to add it to the list of filter options

Hello

Should  

"filter_by_resource_id": false,     value be          be changed to true?

if so, please guide command

In filter list  caller_id_numbers  is present , as you can see below

 

 

>>>>

 

"default_rate_cost": 0,
            "default_rate_increment": 60,
            "default_rate_internal_cost": 0,
            "default_rate_minimum": 60,
            "default_rate_nocharge_time": 0,
            "default_rate_surcharge": 0,
            "default_ratedeck": "ratedeck",
            "filter_list": [
                "direction",
                "route_options",
                "routes",
                "caller_id_numbers"
            ],
            "sort_by_weight": true,
            "trie_build_timeout_ms": 60000,
            "trie_lru_expires_s": 86400,
            "trie_module": "hon_trie",
            "use_trie": false,
            "filter_by_resource_id": false,
            "should_publish_system_alert": {
                "inbound": true,
                "outbound": true,
                "both": true
            }
        }

×
×
  • Create New...