Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

<CGRateS@v0.10.4><go1.23.1> distributed freeswitch_agent problem with sessions

51 views
Skip to first unread message

Marcin Kowalczyk

unread,
Apr 25, 2025, 11:56:55 AMApr 25
to CGRateS
Hi,
We are upgrading from very, very old rc7 release to setup with centralized sessions server and many freeswitch agents. Config is following:

fs1< [8021]-cgrates agent ---> cgrates_sessions_host



  cgrates-agent.json: |    {
      "general": {
        "log_level": 7,
        "reconnects": 5,
        "default_request_type": "*pseudoprepaid",
        "node_id": "agent",
        "default_category": "USD*call",
        "default_tenant": "phonehq"
      },

      "data_db": {
        "db_type": "*internal"
      },

      "stor_db": {
        "db_type": "*internal"
      },

      "listen": {
        "rpc_json": ":2012",
        "rpc_gob": ":2013"
      },
      "rpc_conns": {
        "sessions": {
          "strategy": "*first",
          "conns": [
            {
              "address": "{{ .Values.common.app.release }}-cgrates.{{ .Release.Namespace }}.svc.cluster.local:2012",
              "transport": "*json",
              "connect_attempts": "5",
              "reconnects": "1",
              "max_reconnect_interval": "5s"
            }
          ]
        }
      },

      "freeswitch_agent": {
        "enabled": true,
        "subscribe_park": true,
        "sessions_conns": [
          "sessions"
        ],

        "event_socket_conns":[
          {"address": "127.0.0.1:8021", "password": "ClueCon", "reconnects": -1,"alias":"main"},
          {"address": "127.0.0.1:8022", "password": "ClueCon", "reconnects": -1,"alias":"forward"}
        ],
        "create_cdr": true,
        "extra_fields": [
          "~variable_sip_ph_X-Carrier",
          "~variable_sip_ph_X-Carrier-dst",
          "~variable_sip_ph_X-Carrier-price",
          "~variable_sip_h_X-Forwarded-For",
          "~variable_sip_ph_X-Price",
          "~variable_sip_h_X-Real-IP",
          "~variable_sip_ph_X-User-price",
          "~variable_sip_ph_X-iso",
          "~variable_CH_CLIENT_MSISDN",
          "~variable_CH_EXPOSED_MSISDN",
          "~variable_CH_CALL_USER",
          "~variable_CH_CALL_ID"
        ]
      }
    }

Central sessions config is following:

  cgrates-main.json: |
    {
      "general": {
        "log_level": 7,
        "default_request_type": "*pseudoprepaid",
        "node_id": "main"
      },
      "listen": {
        "rpc_json": ":2012",
        "rpc_gob": ":2013",
        "http": ":2080"
      },

      "data_db": {
        "db_type": "*redis",
        "db_host": "preprod-cgrates.wwazeh.ng.0001.euw1.cache.amazonaws.com",
        "query_timeout":"900s"
      },

      "rpc_conns": {
        "conn1": {
          "strategy": "*first",
          "conns": [
            {
              "address": "preprod-cgrates.voip.svc.cluster.local:2012",
              "transport": "*json"
            }
          ]
        }
      },

      "stor_db": {
        "db_password": "pass",
        "db_user": "cgrates_admin",
        "db_type": "*postgres",
        "db_host": "preprod-voip.c1k6ymeoalwy.eu-west-1.rds.amazonaws.com",
        "db_port": 5432,
        "sslmode": "require"
      },

      "schedulers": {
        "enabled": true,
        "cdrs_conns": ["conn1"]
      },

      "rals": {
        "enabled": true,
        "thresholds_conns": ["*localhost"],
        "stats_conns": ["*localhost"],
        "rp_subject_prefix_matching": true,
        "remove_expired": true
      },
      "caches":{
        "*destinations": {"limit": -1, "ttl":"30m", "precache": true},
        "*reverse_destinations": {"limit": -1, "ttl":"30m", "precache": true},
        "*rating_plans": {"limit": 10000, "ttl":"5m","precache": true},
        "*rating_profiles": {"limit": 10000, "ttl":"5m", "precache": true},
        "*actions": {"limit": 10000, "ttl":"15m", "precache": true},
        "*action_plans": {"limit": 10000, "ttl":"15m", "precache": true},
        "*account_action_plans": {"limit": 10000, "ttl":"5m", "precache": true},
        "*action_triggers": {"limit": 10000, "ttl":"5m", "precache": true},
        "*shared_groups": {"limit": 10000, "ttl":"5m", "precache": true},
        "*resource_profiles": {"limit": 10000, "ttl":"5m", "precache": true},
        "*resources": {"limit": 10000, "ttl":"5m", "precache": true},
        "*statqueues": {"limit": 10000, "ttl":"5m", "precache": true},
        "*statqueue_profiles": {"limit": 10000, "ttl":"5m", "precache": true},
        "*thresholds": {"limit": 10000, "ttl":"5m", "precache": true},
        "*threshold_profiles": {"limit": 10000, "ttl":"5m", "precache": true},
        "*filters": {"limit": 10000, "ttl":"5m", "precache": true},
        "*supplier_profiles": {"limit": 10000, "ttl":"5m", "precache": true},
        "*attribute_profiles": {"limit": 10000, "ttl":"5m", "precache": true},
        "*resource_filter_indexes" :{"limit": 10000, "ttl":"5m", "precache": true},
        "*stat_filter_indexes" : {"limit": 10000, "ttl":"5m", "precache": true},
        "*threshold_filter_indexes" : {"limit": 10000, "ttl":"5m", "precache": true},
        "*supplier_filter_indexes" : {"limit": 10000, "ttl":"5m", "precache": true},
        "*attribute_filter_indexes" : {"limit": 10000, "ttl":"5m", "precache": true},
        "*charger_filter_indexes" : {"limit": 10000, "ttl":"5m", "precache": true},
        "*dispatcher_profiles" : {"limit": 10000, "ttl":"5m", "precache": true},
        "*dispatcher_hosts" : {"limit": 10000, "ttl":"5m", "precache": true},
        "*dispatcher_routes" : {"limit": 10000, "ttl":"5m", "precache": false}
      },
    "cdrs": {
        "enabled": true,
        "stats_conns": ["*localhost"],
        "chargers_conns": ["*internal"],
        "rals_conns": ["*localhost"],
        "online_cdr_exports":["live-export"],
        "sessions_cost_retries": 5,
        "extra_fields": [
          "ACD",
          "PDD",
          "variable_sip_ph_X-Carrier",
          "variable_sip_ph_X-Carrier-dst",
          "variable_sip_ph_X-Carrier-price",
          "variable_sip_h_X-Forwarded-For",
          "variable_sip_ph_X-Price",
          "variable_sip_h_X-Real-IP",
          "variable_sip_ph_X-User-price",
          "variable_sip_ph_X-iso",
          "variable_CH_CLIENT_MSISDN",
          "variable_CH_EXPOSED_MSISDN",
          "variable_CH_CALL_USER",
          "variable_CH_CALL_ID"
        ]
      },
      "chargers": {
        "enabled": true,
        "attributes_conns": ["*internal"]
      },
      "sessions": {
        "enabled": true,
        "rals_conns": ["*localhost"],
        "cdrs_conns": ["*localhost"],
        "resources_conns": [],
        "suppliers_conns": [],
        "attributes_conns": ["*localhost"],
        "stats_conns": ["*localhost"],
        "thresholds_conns": ["*localhost"],
        "chargers_conns": ["*internal"],
        "store_session_costs": true,
        "debit_interval": "5s",
        "channel_sync_interval":"30s",
        "alterable_fields": [
          "ACD",
          "PDD",
          "variable_sip_ph_X-Carrier",
          "variable_sip_ph_X-Carrier-dst",
          "variable_sip_ph_X-Carrier-price",
          "variable_sip_h_X-Forwarded-For",
          "variable_sip_ph_X-Price",
          "variable_sip_h_X-Real-IP",
          "variable_sip_ph_X-User-price",
          "variable_sip_ph_X-iso",
          "variable_CH_CLIENT_MSISDN",
          "variable_CH_EXPOSED_MSISDN",
          "variable_CH_CALL_USER",
          "variable_CH_CALL_ID"
        ],
        "listen_bijson": ":2014"
      },

      "attributes": {
        "enabled": true,
        "string_indexed_fields": ["*req.Destination"],
        "process_runs": 2
      },

      "resources": {
        "enabled": false,
        "string_indexed_fields": ["*req.Account"]
      },

      "stats": {
        "enabled": true,
        "string_indexed_fields": ["*req.Account","*req.RunID","*req.Destination"]
      },

      "thresholds": {
        "enabled": true,
        "string_indexed_fields": ["*req.Account"]
      },

      "suppliers": {
        "enabled": false,
        "resources_conns": [],
        "stats_conns": ["*internal"],
        "string_indexed_fields": ["*req.Account"]
      },
      "apiers": {
        "enabled": true,
        "scheduler_conns": ["*internal"]
      },
      "loaders": [
        {
          "id": "CustomLoader",
          "enabled": true,
          "dry_run": false,
          "run_delay": 0,
          "lockfile_path": ".cgr.lock",
          "caches_conns": ["conn1"]
        }
      ]
    }

Now what we can see that  for example 41sec call gets billed way less than it shoud

"{""Cost"": 0.0033, ""CGRID"": ""08470ace79c1cc2578e71a08ca65fac00569154c"", ""Rates"": {""e7a19bf"": [{""Value"": 0.02, ""RateUnit"": 60000000000, ""RateIncrement"": 1000000000, ""GroupIntervalStart"": 0}]}, ""RunID"": ""CustomerCharges"", ""Usage"": 10000000000, ""Rating"": {""31d7325"": {""MaxCost"": 0, ""RatesID"": ""e7a19bf"", ""TimingID"": ""60713cd"", ""ConnectFee"": 0, ""RoundingMethod"": ""*up"", ""MaxCostStrategy"": """", ""RatingFiltersID"": ""91ebbcf"", ""RoundingDecimals"": 4}}, ""Charges"": [{""RatingID"": ""31d7325"", ""Increments"": [{""Cost"": 0.00033, ""Usage"": 1000000000, ""AccountingID"": ""4c41a1a"", ""CompressFactor"": 5}], ""CompressFactor"": 2}], ""Timings"": {""60713cd"": {""Years"": [], ""Months"": [], ""WeekDays"": [], ""MonthDays"": [], ""StartTime"": ""00:00:00""}}, ""StartTime"": ""2025-04-25T15:51:32Z"", ""Accounting"": {""4c41a1a"": {""Units"": 0.00033, ""RatingID"": """", ""AccountID"": ""phonehq:bccxaup"", ""BalanceUUID"": ""a965c8db-8ce5-413b-87f4-fe0193144c8b"", ""ExtraChargeID"": """"}}, ""RatingFilters"": {""91ebbcf"": {""Subject"": ""*out:phonehq:USD*call:*any"", ""RatingPlanID"": ""RP_2025-04-25_111525_PHONEHQ_CALL"", ""DestinationID"": ""GB_Landline"", ""DestinationPrefix"": ""441""}}, ""AccountSummary"": {""ID"": ""bccxaup"", ""Tenant"": ""phonehq"", ""Disabled"": false, ""AllowNegative"": false, ""BalanceSummaries"": [{""ID"": ""in-tokens"", ""Type"": ""*generic"", ""UUID"": ""a9d1d4e5-996d-4970-b785-d64dcf5d2afd"", ""Value"": 100, ""Disabled"": false}, {""ID"": ""out-tokens"", ""Type"": ""*generic"", ""UUID"": ""23b9a661-abd6-44e6-a9d6-e261897db426"", ""Value"": 100, ""Disabled"": false}, {""ID"": ""transcription"", ""Type"": ""*generic"", ""UUID"": ""708079fc-b9f4-4a9f-8f59-8698746ca7ea"", ""Value"": 100, ""Disabled"": false}, {""ID"": ""*default"", ""Type"": ""*monetary"", ""UUID"": ""a965c8db-8ce5-413b-87f4-fe0193144c8b"", ""Value"": 9.6892, ""Disabled"": false}]}}"


ngrep on agent host (havin freeswitch)





#
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #75
{"method":"SessionSv1.AuthorizeEvent","params":[{"GetAttributes":true,"AuthorizeResources":false,"GetMaxUsage":true,"ProcessThresholds":true,"ProcessStats":true,"GetSuppliers":false,"ForceDuration":false,"SuppliersMaxCost":"","SuppliersIgnoreErrors":false,"AttributeIDs":null,"ThresholdIDs":null,"StatIDs":null,"Tenant":"phonehq","ID":"e84e4df","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"0001-01-01T00:00:00Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_PARK","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":10800000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""},"Limit":null,"Offset":null}],"id":17}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #76
{"id":17,"result":{"Attributes":null,"ResourceAllocation":null,"MaxUsage":10800000000000,"Suppliers":null,"ThresholdIDs":[],"StatQueueIDs":[]},"error":null}

##
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #78
{"method":"SessionSv1.InitiateSession","params":[{"GetAttributes":true,"AllocateResources":false,"InitSession":true,"ForceDuration":false,"ProcessThresholds":true,"ProcessStats":true,"AttributeIDs":null,"ThresholdIDs":null,"StatIDs":null,"Tenant":"phonehq","ID":"d98b2a1","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_ANSWER","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":0,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":18}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #79
{"id":18,"result":{"Attributes":null,"ResourceAllocation":null,"MaxUsage":10800000000000,"ThresholdIDs":[],"StatQueueIDs":[]},"error":null}

##########
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #89
{"method":"SessionSv1.TerminateSession","params":[{"TerminateSession":true,"ForceDuration":false,"ReleaseResources":false,"ProcessThresholds":true,"ProcessStats":true,"ThresholdIDs":null,"StatIDs":null,"Tenant":"phonehq","ID":"9f1d289","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"NORMAL_CLEARING","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":2180000000,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_HANGUP_COMPLETE","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":45000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":19}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #90
{"id":19,"result":"OK","error":null}

##
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #92
{"method":"SessionSv1.ProcessCDR","params":[{"Tenant":"phonehq","ID":"e82c061","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"NORMAL_CLEARING","OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":2180000000,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_HANGUP_COMPLETE","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":45000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":20}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #93
{"id":20,"result":null,"error":"PARTIALLY_EXECUTED"}

#####################





ngrep on sessions-host









#############
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #636
{"method":"SessionSv1.AuthorizeEvent","params":[{"GetAttributes":true,"AuthorizeResources":false,"GetMaxUsage":true,"ProcessThresholds":true,"ProcessStats":true,"GetSuppliers":false,"ForceDuration":false,"SuppliersMaxCost":"","SuppliersIgnoreErrors":false,"AttributeIDs":null,"ThresholdIDs":null,"StatIDs":null,"Tenant":"phonehq","ID":"e84e4df","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"0001-01-01T00:00:00Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_PARK","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":10800000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""},"Limit":null,"Offset":null}],"id":17}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #637
{"method":"AttributeSv1.ProcessEvent","params":[{"AttributeIDs":null,"Context":"*sessions","ProcessRuns":null,"Tenant":"phonehq","ID":"e84e4df","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"0001-01-01T00:00:00Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_PARK","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":10800000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":117}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #638
{"id":117,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #639
{"method":"Responder.GetMaxSessionTime","params":[{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","TimeStart":"2025-04-25T15:51:30Z","TimeEnd":"2025-04-25T18:51:30Z","LoopIndex":0,"DurationIndex":0,"FallbackSubject":"","RatingInfos":null,"Increments":null,"ToR":"*voice","ExtraFields":{"ACD":"0","DisconnectCause":"","FsConnID":"0","PDD":"0","Supplier":"","variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""},"MaxRate":0,"MaxRateUnit":0,"MaxCostSoFar":0,"CgrID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","ForceDuration":false,"PerformRounding":false,"DenyNegativeAccount":false}],"id":118}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #640
{"id":118,"result":10800000000000,"error":null}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #641
{"method":"ThresholdSv1.ProcessEvent","params":[{"ThresholdIDs":null,"Tenant":"phonehq","ID":"e84e4df","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"0001-01-01T00:00:00Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_PARK","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":10800000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":119}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #642
{"id":119,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #643
{"method":"StatSv1.ProcessEvent","params":[{"StatIDs":null,"Tenant":"phonehq","ID":"e84e4df","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"0001-01-01T00:00:00Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_PARK","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":10800000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":120}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #644
{"id":120,"result":null,"error":"NOT_FOUND"}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #645
{"id":17,"result":{"Attributes":null,"ResourceAllocation":null,"MaxUsage":10800000000000,"Suppliers":null,"ThresholdIDs":[],"StatQueueIDs":[]},"error":null}

###
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #648
{"method":"SessionSv1.InitiateSession","params":[{"GetAttributes":true,"AllocateResources":false,"InitSession":true,"ForceDuration":false,"ProcessThresholds":true,"ProcessStats":true,"AttributeIDs":null,"ThresholdIDs":null,"StatIDs":null,"Tenant":"phonehq","ID":"d98b2a1","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_ANSWER","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":0,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":18}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #649
{"method":"AttributeSv1.ProcessEvent","params":[{"AttributeIDs":null,"Context":"*sessions","ProcessRuns":null,"Tenant":"phonehq","ID":"d98b2a1","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_ANSWER","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":0,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":121}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #650
{"id":121,"result":null,"error":"NOT_FOUND"}

##
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #652
{"method":"ThresholdSv1.ProcessEvent","params":[{"ThresholdIDs":null,"Tenant":"phonehq","ID":"d98b2a1","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_ANSWER","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":0,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":122}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #653
{"method":"Responder.MaxDebit","params":[{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","TimeStart":"2025-04-25T15:51:32Z","TimeEnd":"2025-04-25T15:51:37Z","LoopIndex":0,"DurationIndex":5000000000,"FallbackSubject":"","RatingInfos":null,"Increments":null,"ToR":"*voice","ExtraFields":null,"MaxRate":0,"MaxRateUnit":0,"MaxCostSoFar":0,"CgrID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","ForceDuration":false,"PerformRounding":false,"DenyNegativeAccount":false}],"id":123}

##
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #655
{"id":122,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #656
{"method":"StatSv1.ProcessEvent","params":[{"StatIDs":null,"Tenant":"phonehq","ID":"d98b2a1","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_ANSWER","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":0,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":124}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #657
{"id":124,"result":null,"error":"NOT_FOUND"}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #658
{"id":18,"result":{"Attributes":null,"ResourceAllocation":null,"MaxUsage":10800000000000,"ThresholdIDs":[],"StatQueueIDs":[]},"error":null}

##
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #660
{"method":"ThresholdSv1.ProcessEvent","params":[{"ThresholdIDs":null,"Tenant":"phonehq","ID":"12c57d38-af8c-4a2d-a262-845ce548422b","Time":null,"Event":{"Account":"bccxaup","BalanceID":"*default","EventSource":"AccountS","EventType":"BalanceUpdate","Units":9.69085}}],"id":125}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #661
{"id":125,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #662
{"id":123,"result":{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","ToR":"*voice","Cost":0.00165,"Timespans":[{"TimeStart":"2025-04-25T15:51:32Z","TimeEnd":"2025-04-25T15:51:37Z","Cost":0.00165,"RateInterval":{"Timing":{"Years":[],"Months":[],"MonthDays":[],"WeekDays":[],"StartTime":"00:00:00","EndTime":""},"Rating":{"ConnectFee":0,"RoundingMethod":"*up","RoundingDecimals":4,"MaxCost":0,"MaxCostStrategy":"","Rates":[{"GroupIntervalStart":0,"Value":0.02,"RateIncrement":1000000000,"RateUnit":60000000000}]},"Weight":50},"DurationIndex":5000000000,"Increments":[{"Duration":1000000000,"Cost":0.00033,"BalanceInfo":{"Unit":null,"Monetary":{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Value":9.69085,"RateInterval":null},"AccountID":"phonehq:bccxaup"},"CompressFactor":5}],"RoundIncrement":null,"MatchedSubject":"*out:phonehq:USD*call:*any","MatchedPrefix":"441","MatchedDestId":"GB_Landline","RatingPlanId":"RP_2025-04-25_111525_PHONEHQ_CALL","CompressFactor":1}],"RatedUsage":5000000000,"AccountSummary":{"Tenant":"phonehq","ID":"bccxaup","BalanceSummaries":[{"UUID":"a9d1d4e5-996d-4970-b785-d64dcf5d2afd","ID":"in-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"23b9a661-abd6-44e6-a9d6-e261897db426","ID":"out-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"708079fc-b9f4-4a9f-8f59-8698746ca7ea","ID":"transcription","Type":"*generic","Value":100,"Disabled":false},{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Type":"*monetary","Value":9.69085,"Disabled":false}],"AllowNegative":false,"Disabled":false}},"error":null}

##############
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #676
{"method":"Responder.MaxDebit","params":[{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","TimeStart":"2025-04-25T15:51:37Z","TimeEnd":"2025-04-25T15:51:42Z","LoopIndex":1,"DurationIndex":10000000000,"FallbackSubject":"","RatingInfos":null,"Increments":null,"ToR":"*voice","ExtraFields":null,"MaxRate":0,"MaxRateUnit":0,"MaxCostSoFar":0.00165,"CgrID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","ForceDuration":false,"PerformRounding":false,"DenyNegativeAccount":false}],"id":126}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #677
{"method":"ThresholdSv1.ProcessEvent","params":[{"ThresholdIDs":null,"Tenant":"phonehq","ID":"8d40bfbd-9688-42b3-8d24-d90442f3f2cd","Time":null,"Event":{"Account":"bccxaup","BalanceID":"*default","EventSource":"AccountS","EventType":"BalanceUpdate","Units":9.6892}}],"id":127}

##
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #679
{"id":127,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #680
{"id":126,"result":{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","ToR":"*voice","Cost":0.00165,"Timespans":[{"TimeStart":"2025-04-25T15:51:37Z","TimeEnd":"2025-04-25T15:51:42Z","Cost":0.00165,"RateInterval":{"Timing":{"Years":[],"Months":[],"MonthDays":[],"WeekDays":[],"StartTime":"00:00:00","EndTime":""},"Rating":{"ConnectFee":0,"RoundingMethod":"*up","RoundingDecimals":4,"MaxCost":0,"MaxCostStrategy":"","Rates":[{"GroupIntervalStart":0,"Value":0.02,"RateIncrement":1000000000,"RateUnit":60000000000}]},"Weight":50},"DurationIndex":10000000000,"Increments":[{"Duration":1000000000,"Cost":0.00033,"BalanceInfo":{"Unit":null,"Monetary":{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Value":9.6892,"RateInterval":null},"AccountID":"phonehq:bccxaup"},"CompressFactor":5}],"RoundIncrement":null,"MatchedSubject":"*out:phonehq:USD*call:*any","MatchedPrefix":"441","MatchedDestId":"GB_Landline","RatingPlanId":"RP_2025-04-25_111525_PHONEHQ_CALL","CompressFactor":1}],"RatedUsage":5000000000,"AccountSummary":{"Tenant":"phonehq","ID":"bccxaup","BalanceSummaries":[{"UUID":"a9d1d4e5-996d-4970-b785-d64dcf5d2afd","ID":"in-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"23b9a661-abd6-44e6-a9d6-e261897db426","ID":"out-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"708079fc-b9f4-4a9f-8f59-8698746ca7ea","ID":"transcription","Type":"*generic","Value":100,"Disabled":false},{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Type":"*monetary","Value":9.6892,"Disabled":false}],"AllowNegative":false,"Disabled":false}},"error":null}

##
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #682
{"method":"CDRsV1.StoreSessionCost","params":[{"Cost":{"CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","CostSource":"*sessions","Usage":10000000000,"CostDetails":{"CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","StartTime":"2025-04-25T15:51:32Z","Usage":10000000000,"Cost":0.0033,"Charges":[{"RatingID":"31d7325","Increments":[{"Usage":1000000000,"Cost":0.00033,"AccountingID":"4c41a1a","CompressFactor":5}],"CompressFactor":2}],"AccountSummary":{"Tenant":"phonehq","ID":"bccxaup","BalanceSummaries":[{"UUID":"a9d1d4e5-996d-4970-b785-d64dcf5d2afd","ID":"in-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"23b9a661-abd6-44e6-a9d6-e261897db426","ID":"out-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"708079fc-b9f4-4a9f-8f59-8698746ca7ea","ID":"transcription","Type":"*generic","Value":100,"Disabled":false},{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Type":"*monetary","Value":9.6892,"Disabled":false}],"AllowNegative":false,"Disabled":false},"Rating":{"31d7325":{"ConnectFee":0,"RoundingMethod":"*up","RoundingDecimals":4,"MaxCost":0,"MaxCostStrategy":"","TimingID":"60713cd","RatesID":"e7a19bf","RatingFiltersID":"91ebbcf"}},"Accounting":{"4c41a1a":{"AccountID":"phonehq:bccxaup","BalanceUUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","RatingID":"","Units":0.00033,"ExtraChargeID":""}},"RatingFilters":{"91ebbcf":{"DestinationID":"GB_Landline","DestinationPrefix":"441","RatingPlanID":"RP_2025-04-25_111525_PHONEHQ_CALL","Subject":"*out:phonehq:USD*call:*any"}},"Rates":{"e7a19bf":[{"GroupIntervalStart":0,"Value":0.02,"RateIncrement":1000000000,"RateUnit":60000000000}]},"Timings":{"60713cd":{"Years":[],"Months":[],"MonthDays":[],"WeekDays":[],"StartTime":"00:00:00"}}}},"CheckDuplicate":true,"Tenant":"phonehq"}],"id":128}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #683
{"id":128,"result":"OK","error":null}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #684
{"method":"CDRsV1.ProcessEvent","params":[{"Flags":["*chargers:false","*attributes:false"],"Tenant":"phonehq","ID":"931d37a","Time":null,"Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":0.0033,"CostDetails":"{\"CGRID\":\"08470ace79c1cc2578e71a08ca65fac00569154c\",\"RunID\":\"CustomerCharges\",\"StartTime\":\"2025-04-25T15:51:32Z\",\"Usage\":10000000000,\"Cost\":0.0033,\"Charges\":[{\"RatingID\":\"31d7325\",\"Increments\":[{\"Usage\":1000000000,\"Cost\":0.00033,\"AccountingID\":\"4c41a1a\",\"CompressFactor\":5}],\"CompressFactor\":2}],\"AccountSummary\":{\"Tenant\":\"phonehq\",\"ID\":\"bccxaup\",\"BalanceSummaries\":[{\"UUID\":\"a9d1d4e5-996d-4970-b785-d64dcf5d2afd\",\"ID\":\"in-tokens\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"23b9a661-abd6-44e6-a9d6-e261897db426\",\"ID\":\"out-tokens\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"708079fc-b9f4-4a9f-8f59-8698746ca7ea\",\"ID\":\"transcription\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"a965c8db-8ce5-413b-87f4-fe0193144c8b\",\"ID\":\"*default\",\"Type\":\"*monetary\",\"Value\":9.6892,\"Disabled\":false}],\"AllowNegative\":false,\"Disabled\":false},\"Rating\":{\"31d7325\":{\"ConnectFee\":0,\"RoundingMethod\":\"*up\",\"RoundingDecimals\":4,\"MaxCost\":0,\"MaxCostStrategy\":\"\",\"TimingID\":\"60713cd\",\"RatesID\":\"e7a19bf\",\"RatingFiltersID\":\"91ebbcf\"}},\"Accounting\":{\"4c41a1a\":{\"AccountID\":\"phonehq:bccxaup\",\"BalanceUUID\":\"a965c8db-8ce5-413b-87f4-fe0193144c8b\",\"RatingID\":\"\",\"Units\":0.00033,\"ExtraChargeID\":\"\"}},\"RatingFilters\":{\"91ebbcf\":{\"DestinationID\":\"GB_Landline\",\"DestinationPrefix\":\"441\",\"RatingPlanID\":\"RP_2025-04-25_111525_PHONEHQ_CALL\",\"Subject\":\"*out:phonehq:USD*call:*any\"}},\"Rates\":{\"e7a19bf\":[{\"GroupIntervalStart\":0,\"Value\":0.02,\"RateIncrement\":1000000000,\"RateUnit\":60000000000}]},\"Timings\":{\"60713cd\":{\"Years\":[],\"Months\":[],\"MonthDays\":[],\"WeekDays\":[],\"StartTime\":\"00:00:00\"}}}","CostSource":"*sessions","Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","RunID":"CustomerCharges","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_ANSWER","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":10000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":129}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #685
{"method":"StatSv1.ProcessEvent","params":[{"StatIDs":null,"Tenant":"phonehq","ID":"931d37a","Time":null,"Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":0.0033,"CostDetails":"{\"CGRID\":\"08470ace79c1cc2578e71a08ca65fac00569154c\",\"RunID\":\"CustomerCharges\",\"StartTime\":\"2025-04-25T15:51:32Z\",\"Usage\":10000000000,\"Cost\":0.0033,\"Charges\":[{\"RatingID\":\"31d7325\",\"Increments\":[{\"Usage\":1000000000,\"Cost\":0.00033,\"AccountingID\":\"4c41a1a\",\"CompressFactor\":5}],\"CompressFactor\":2}],\"AccountSummary\":{\"Tenant\":\"phonehq\",\"ID\":\"bccxaup\",\"BalanceSummaries\":[{\"UUID\":\"a9d1d4e5-996d-4970-b785-d64dcf5d2afd\",\"ID\":\"in-tokens\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"23b9a661-abd6-44e6-a9d6-e261897db426\",\"ID\":\"out-tokens\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"708079fc-b9f4-4a9f-8f59-8698746ca7ea\",\"ID\":\"transcription\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"a965c8db-8ce5-413b-87f4-fe0193144c8b\",\"ID\":\"*default\",\"Type\":\"*monetary\",\"Value\":9.6892,\"Disabled\":false}],\"AllowNegative\":false,\"Disabled\":false},\"Rating\":{\"31d7325\":{\"ConnectFee\":0,\"RoundingMethod\":\"*up\",\"RoundingDecimals\":4,\"MaxCost\":0,\"MaxCostStrategy\":\"\",\"TimingID\":\"60713cd\",\"RatesID\":\"e7a19bf\",\"RatingFiltersID\":\"91ebbcf\"}},\"Accounting\":{\"4c41a1a\":{\"AccountID\":\"phonehq:bccxaup\",\"BalanceUUID\":\"a965c8db-8ce5-413b-87f4-fe0193144c8b\",\"RatingID\":\"\",\"Units\":0.00033,\"ExtraChargeID\":\"\"}},\"RatingFilters\":{\"91ebbcf\":{\"DestinationID\":\"GB_Landline\",\"DestinationPrefix\":\"441\",\"RatingPlanID\":\"RP_2025-04-25_111525_PHONEHQ_CALL\",\"Subject\":\"*out:phonehq:USD*call:*any\"}},\"Rates\":{\"e7a19bf\":[{\"GroupIntervalStart\":0,\"Value\":0.02,\"RateIncrement\":1000000000,\"RateUnit\":60000000000}]},\"Timings\":{\"60713cd\":{\"Years\":[],\"Months\":[],\"MonthDays\":[],\"WeekDays\":[],\"StartTime\":\"00:00:00\"}}}","CostSource":"*sessions","Destination":"441134960000","DisconnectCause":"","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":0,"RequestType":"*prepaid","RunID":"CustomerCharges","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_ANSWER","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":10000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":130}

##
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #687
{"id":130,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #688
{"id":129,"result":"OK","error":null}

##################################################################
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #754
{"method":"SessionSv1.TerminateSession","params":[{"TerminateSession":true,"ForceDuration":false,"ReleaseResources":false,"ProcessThresholds":true,"ProcessStats":true,"ThresholdIDs":null,"StatIDs":null,"Tenant":"phonehq","ID":"9f1d289","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"NORMAL_CLEARING","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":2180000000,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_HANGUP_COMPLETE","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":45000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":19}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #755
{"method":"Responder.MaxDebit","params":[{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","TimeStart":"2025-04-25T15:51:32Z","TimeEnd":"2025-04-25T15:52:17Z","LoopIndex":0,"DurationIndex":45000000000,"FallbackSubject":"","RatingInfos":null,"Increments":null,"ToR":"*voice","ExtraFields":null,"MaxRate":0,"MaxRateUnit":0,"MaxCostSoFar":0,"CgrID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","ForceDuration":false,"PerformRounding":false,"DenyNegativeAccount":false}],"id":131}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #756
{"method":"ThresholdSv1.ProcessEvent","params":[{"ThresholdIDs":null,"Tenant":"phonehq","ID":"010b17bf-7cb4-4408-a582-a1fb54cda976","Time":null,"Event":{"Account":"bccxaup","BalanceID":"*default","EventSource":"AccountS","EventType":"BalanceUpdate","Units":9.67435}}],"id":132}

##
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #758
{"id":132,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #759
{"id":131,"result":{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","ToR":"*voice","Cost":0.01485,"Timespans":[{"TimeStart":"2025-04-25T15:51:32Z","TimeEnd":"2025-04-25T15:52:17Z","Cost":0.01485,"RateInterval":{"Timing":{"Years":[],"Months":[],"MonthDays":[],"WeekDays":[],"StartTime":"00:00:00","EndTime":""},"Rating":{"ConnectFee":0,"RoundingMethod":"*up","RoundingDecimals":4,"MaxCost":0,"MaxCostStrategy":"","Rates":[{"GroupIntervalStart":0,"Value":0.02,"RateIncrement":1000000000,"RateUnit":60000000000}]},"Weight":50},"DurationIndex":45000000000,"Increments":[{"Duration":1000000000,"Cost":0.00033,"BalanceInfo":{"Unit":null,"Monetary":{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Value":9.67435,"RateInterval":null},"AccountID":"phonehq:bccxaup"},"CompressFactor":45}],"RoundIncrement":null,"MatchedSubject":"*out:phonehq:USD*call:*any","MatchedPrefix":"441","MatchedDestId":"GB_Landline","RatingPlanId":"RP_2025-04-25_111525_PHONEHQ_CALL","CompressFactor":1}],"RatedUsage":45000000000,"AccountSummary":{"Tenant":"phonehq","ID":"bccxaup","BalanceSummaries":[{"UUID":"a9d1d4e5-996d-4970-b785-d64dcf5d2afd","ID":"in-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"23b9a661-abd6-44e6-a9d6-e261897db426","ID":"out-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"708079fc-b9f4-4a9f-8f59-8698746ca7ea","ID":"transcription","Type":"*generic","Value":100,"Disabled":false},{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Type":"*monetary","Value":9.67435,"Disabled":false}],"AllowNegative":false,"Disabled":false}},"error":null}

##
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #761
{"method":"Responder.RefundRounding","params":[{"Category":"USD*call","Tenant":"phonehq","Subject":"48884409002","Account":"bccxaup","Destination":"441134960000","TimeStart":"0001-01-01T00:00:00Z","TimeEnd":"0001-01-01T00:00:00Z","LoopIndex":0,"DurationIndex":0,"FallbackSubject":"","RatingInfos":null,"Increments":[{"Duration":0,"Cost":0.0000499999999999997,"BalanceInfo":{"Unit":null,"Monetary":{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"","Value":0,"RateInterval":null},"AccountID":"phonehq:bccxaup"},"CompressFactor":1}],"ToR":"*voice","ExtraFields":null,"MaxRate":0,"MaxRateUnit":0,"MaxCostSoFar":0,"CgrID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","ForceDuration":false,"PerformRounding":false,"DenyNegativeAccount":false}],"id":133}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #762
{"id":133,"result":{"ID":"phonehq:bccxaup","BalanceMap":{"*generic":[{"Uuid":"a9d1d4e5-996d-4970-b785-d64dcf5d2afd","ID":"in-tokens","Value":100,"ExpirationDate":"0001-01-01T00:00:00Z","Weight":10,"DestinationIDs":{"*any":true},"RatingSubject":"","Categories":{"in-tokens":true},"SharedGroups":{},"Timings":null,"TimingIDs":{},"Disabled":false,"Factor":null,"Blocker":false},{"Uuid":"23b9a661-abd6-44e6-a9d6-e261897db426","ID":"out-tokens","Value":100,"ExpirationDate":"0001-01-01T00:00:00Z","Weight":10,"DestinationIDs":{"*any":true},"RatingSubject":"","Categories":{"out-tokens":true},"SharedGroups":{},"Timings":null,"TimingIDs":{},"Disabled":false,"Factor":null,"Blocker":false},{"Uuid":"708079fc-b9f4-4a9f-8f59-8698746ca7ea","ID":"transcription","Value":100,"ExpirationDate":"0001-01-01T00:00:00Z","Weight":10,"DestinationIDs":{"*any":true},"RatingSubject":"","Categories":{"transcription":true},"SharedGroups":{},"Timings":null,"TimingIDs":{},"Disabled":false,"Factor":null,"Blocker":false}],"*monetary":[{"Uuid":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Value":9.6743,"ExpirationDate":"0001-01-01T00:00:00Z","Weight":0,"DestinationIDs":null,"RatingSubject":"","Categories":null,"SharedGroups":null,"Timings":null,"TimingIDs":null,"Disabled":false,"Factor":null,"Blocker":false}]},"UnitCounters":null,"ActionTriggers":null,"AllowNegative":false,"Disabled":false,"UpdateTime":"2025-04-25T15:52:17.122432805Z"},"error":null}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #763
{"method":"CDRsV1.StoreSessionCost","params":[{"Cost":{"CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","CostSource":"*sessions","Usage":45000000000,"CostDetails":{"CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","RunID":"CustomerCharges","StartTime":"2025-04-25T15:51:32Z","Usage":45000000000,"Cost":0.0149,"Charges":[{"RatingID":"2d5c945","Increments":[{"Usage":1000000000,"Cost":0.00033,"AccountingID":"3ccaa06","CompressFactor":45},{"Usage":0,"Cost":0.0000499999999999997,"AccountingID":"8695692","CompressFactor":1}],"CompressFactor":1}],"AccountSummary":{"Tenant":"phonehq","ID":"bccxaup","BalanceSummaries":[{"UUID":"a9d1d4e5-996d-4970-b785-d64dcf5d2afd","ID":"in-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"23b9a661-abd6-44e6-a9d6-e261897db426","ID":"out-tokens","Type":"*generic","Value":100,"Disabled":false},{"UUID":"708079fc-b9f4-4a9f-8f59-8698746ca7ea","ID":"transcription","Type":"*generic","Value":100,"Disabled":false},{"UUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","ID":"*default","Type":"*monetary","Value":9.6743,"Disabled":false}],"AllowNegative":false,"Disabled":false},"Rating":{"2d5c945":{"ConnectFee":0,"RoundingMethod":"*up","RoundingDecimals":4,"MaxCost":0,"MaxCostStrategy":"","TimingID":"6110f9d","RatesID":"7228f6a","RatingFiltersID":"c3faac5"}},"Accounting":{"3ccaa06":{"AccountID":"phonehq:bccxaup","BalanceUUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","RatingID":"","Units":0.00033,"ExtraChargeID":""},"8695692":{"AccountID":"phonehq:bccxaup","BalanceUUID":"a965c8db-8ce5-413b-87f4-fe0193144c8b","RatingID":"*rounding","Units":0.0000499999999999997,"ExtraChargeID":""}},"RatingFilters":{"c3faac5":{"DestinationID":"GB_Landline","DestinationPrefix":"441","RatingPlanID":"RP_2025-04-25_111525_PHONEHQ_CALL","Subject":"*out:phonehq:USD*call:*any"}},"Rates":{"7228f6a":[{"GroupIntervalStart":0,"Value":0.02,"RateIncrement":1000000000,"RateUnit":60000000000}]},"Timings":{"6110f9d":{"Years":[],"Months":[],"MonthDays":[],"WeekDays":[],"StartTime":"00:00:00"}}}},"CheckDuplicate":true,"Tenant":"phonehq"}],"id":134}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #764
{"id":134,"result":null,"error":"SERVER_ERROR: EXISTS"}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #765
{"method":"ThresholdSv1.ProcessEvent","params":[{"ThresholdIDs":null,"Tenant":"phonehq","ID":"9f1d289","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"NORMAL_CLEARING","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":2180000000,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_HANGUP_COMPLETE","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":45000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":135}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #766
{"id":135,"result":null,"error":"NOT_FOUND"}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #767
{"method":"StatSv1.ProcessEvent","params":[{"StatIDs":null,"Tenant":"phonehq","ID":"9f1d289","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"NORMAL_CLEARING","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":2180000000,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_HANGUP_COMPLETE","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":45000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":136}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #768
{"id":136,"result":null,"error":"NOT_FOUND"}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #769
{"id":19,"result":"OK","error":null}

##
T 10.50.87.46:51976 -> 10.50.97.232:2012 [AP] #771
{"method":"SessionSv1.ProcessCDR","params":[{"Tenant":"phonehq","ID":"e82c061","Time":"2025-04-25T15:51:30Z","Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","Category":"USD*call","Cost":-1,"Destination":"441134960000","DisconnectCause":"NORMAL_CLEARING","OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":2180000000,"RequestType":"*prepaid","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_HANGUP_COMPLETE","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":45000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":20}

#
T 127.0.0.1:40042 -> 127.0.0.1:2012 [AP] #772
{"method":"CDRsV1.ProcessEvent","params":[{"Flags":["*chargers:false","*attributes:false"],"Tenant":"phonehq","ID":"1eaee23","Time":null,"Event":{"ACD":0,"Account":"bccxaup","AnswerTime":"2025-04-25T15:51:32Z","CGRID":"08470ace79c1cc2578e71a08ca65fac00569154c","Category":"USD*call","Cost":0.0149,"CostDetails":"{\"CGRID\":\"08470ace79c1cc2578e71a08ca65fac00569154c\",\"RunID\":\"CustomerCharges\",\"StartTime\":\"2025-04-25T15:51:32Z\",\"Usage\":45000000000,\"Cost\":0.0149,\"Charges\":[{\"RatingID\":\"2d5c945\",\"Increments\":[{\"Usage\":1000000000,\"Cost\":0.00033,\"AccountingID\":\"3ccaa06\",\"CompressFactor\":45},{\"Usage\":0,\"Cost\":0.0000499999999999997,\"AccountingID\":\"8695692\",\"CompressFactor\":1}],\"CompressFactor\":1}],\"AccountSummary\":{\"Tenant\":\"phonehq\",\"ID\":\"bccxaup\",\"BalanceSummaries\":[{\"UUID\":\"a9d1d4e5-996d-4970-b785-d64dcf5d2afd\",\"ID\":\"in-tokens\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"23b9a661-abd6-44e6-a9d6-e261897db426\",\"ID\":\"out-tokens\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"708079fc-b9f4-4a9f-8f59-8698746ca7ea\",\"ID\":\"transcription\",\"Type\":\"*generic\",\"Value\":100,\"Disabled\":false},{\"UUID\":\"a965c8db-8ce5-413b-87f4-fe0193144c8b\",\"ID\":\"*default\",\"Type\":\"*monetary\",\"Value\":9.6743,\"Disabled\":false}],\"AllowNegative\":false,\"Disabled\":false},\"Rating\":{\"2d5c945\":{\"ConnectFee\":0,\"RoundingMethod\":\"*up\",\"RoundingDecimals\":4,\"MaxCost\":0,\"MaxCostStrategy\":\"\",\"TimingID\":\"6110f9d\",\"RatesID\":\"7228f6a\",\"RatingFiltersID\":\"c3faac5\"}},\"Accounting\":{\"3ccaa06\":{\"AccountID\":\"phonehq:bccxaup\",\"BalanceUUID\":\"a965c8db-8ce5-413b-87f4-fe0193144c8b\",\"RatingID\":\"\",\"Units\":0.00033,\"ExtraChargeID\":\"\"},\"8695692\":{\"AccountID\":\"phonehq:bccxaup\",\"BalanceUUID\":\"a965c8db-8ce5-413b-87f4-fe0193144c8b\",\"RatingID\":\"*rounding\",\"Units\":0.0000499999999999997,\"ExtraChargeID\":\"\"}},\"RatingFilters\":{\"c3faac5\":{\"DestinationID\":\"GB_Landline\",\"DestinationPrefix\":\"441\",\"RatingPlanID\":\"RP_2025-04-25_111525_PHONEHQ_CALL\",\"Subject\":\"*out:phonehq:USD*call:*any\"}},\"Rates\":{\"7228f6a\":[{\"GroupIntervalStart\":0,\"Value\":0.02,\"RateIncrement\":1000000000,\"RateUnit\":60000000000}]},\"Timings\":{\"6110f9d\":{\"Years\":[],\"Months\":[],\"MonthDays\":[],\"WeekDays\":[],\"StartTime\":\"00:00:00\"}}}","CostSource":"*sessions","Destination":"441134960000","DisconnectCause":"NORMAL_CLEARING","FsConnID":0,"OriginHost":"main","OriginID":"bd1c3068-2d67-455f-b221-ce365da9b924","PDD":2180000000,"RequestType":"*prepaid","RunID":"CustomerCharges","SetupTime":"2025-04-25T15:51:30Z","Source":"FS_CHANNEL_HANGUP_COMPLETE","Subject":"48884409002","Supplier":"","Tenant":"phonehq","ToR":"*voice","Usage":45000000000,"variable_CH_CALL_ID":"19","variable_CH_CALL_USER":"1","variable_CH_CLIENT_MSISDN":"441134960000","variable_CH_EXPOSED_MSISDN":"48884409002","variable_sip_h_X-Forwarded-For":"54.77.99.114","variable_sip_h_X-Real-IP":"","variable_sip_ph_X-Carrier":"","variable_sip_ph_X-Carrier-dst":"","variable_sip_ph_X-Carrier-price":"","variable_sip_ph_X-Price":"","variable_sip_ph_X-User-price":"","variable_sip_ph_X-iso":""}}],"id":137}

#
T 127.0.0.1:2012 -> 127.0.0.1:40042 [AP] #773
{"id":137,"result":null,"error":"EXISTS"}

#
T 10.50.97.232:2012 -> 10.50.87.46:51976 [AP] #774
{"id":20,"result":null,"error":"PARTIALLY_EXECUTED"}

##############################################################################################################################################################################################################################


Can you please me know if is kind of bug/miss-configuration? 

REgards
Marcin

Armir Veliaj

unread,
Apr 28, 2025, 11:02:59 AMApr 28
to CGRateS
Hello Marcin,

For the first cost details you mentioned for the 41-second call, after checking, the rating seems to be correct. The usage shows 10 seconds (10,000,000,000 ns) there, and based on the Rate and RateUnit, as per the calculation:
Usage / RateUnit * Rate = Cost
(10,000,000,000 / 60,000,000,000) * 0.02 = 0.0033
This is the exact value that also appears in your initial cost.

In the ngrep you provided, there is a CDR that shows Usage of 45 seconds and a Cost of 0.0149, which is correctly billed based on the Rate and RateUnit.
So, I’m not sure how you got the cost details you are referring to for the 41-second call.

Regarding the errors you're having, please send us the cgr-engine logs as well, so we can check those too.

Thanks,
Armir
Reply all
Reply to author
Forward
0 new messages