Skip to content

[BUG]There is statistical error in qrouting module #2684

@fengzstrong

Description

@fengzstrong

OpenSIPS version you are running

version: opensips 3.2.3 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: f953b30a0
main.c compiled on 13:04:13 Nov  5 2021 with gcc 8

Describe the bug

If outbound gateway end call by 480(or other codes > 400), ASR and CCR will be accounted twice

To Reproduce

  1. Use qrouting module
  2. Make a call, and end call by 480
  3. Use cmd 'opensips-cli -x mi qr_status'
{
    "Partitions": [
        {
            "Name": "Default",
            "Rules": [
                {
                    "Id": 1,
                    "Destinations": [
                        {
                            "Gateway": {
                                "GWID": "outbound_02",
                                "ASR": "-1.00/2",
                                "CCR": "-1.00/2",
                                "PDD": "-1.00/0",
                                "AST": "-1.00/0",
                                "ACD": "-1.00/0"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

Expected behavior

Just account once.

It may be related to the callback function here

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions