[OpenSIPS-Users] Event E_QROUTING_BAD_DST will not be triggered

张永锋 fengz.strong at gmail.com
Wed Nov 10 11:53:16 EST 2021


Hi, guys

I use module qrouting of opensips which version is 3.2.3.
Now I have two problems and need help.

1. Event E_QROUTING_BAD_DST will not be triggered.
2. If a call ends by 480, ASR(Answer Serizure Ratio) and CCR(Call Completion Ratio) will be counted twice.

About question 2, use cmd "opensips-cli -x mi qr_status"
(opensips-cli): mi qr_status
{
    "Partitions": [
        {
            "Name": "Default",
            "Rules": [
                {
                    "Id": 1,
                    "Destinations": [
                        {
                            "Gateway": {
                                "GWID": "outbound_03",
                                "ASR": "-1.00/2", // I only made one call, so I expect it to be counted only once
                                "CCR": "-1.00/2",
                                "PDD": "-1.00/0",
                                "AST": "-1.00/0",
                                "ACD": "-1.00/0"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}
And,this call is request from gateway which is not outbound_03. In other words, inbound and outbound gw are different.

Some configuration files are as follows:
...
115 loadmodule "qrouting.so"
116 modparam("qrouting", "db_url", "mysql://opensips:opensipsrw@192.168.88.130:3306/opensips")
117 modparam("qrouting", "event_bad_dst_threshold", "1")
...
126 route {
...
243     # dynamic routing
244     xlog("before: $ru\n");
245     if (!do_routing(1)) {
246         # do lookup with method filtering
247         if (!lookup("location","m")) {
248             t_reply(404, "Not Found");
249             exit;
250         }
251     } else {
252         xlog("after: $ru\n");
253     }
258 }

299 event_route[E_QROUTING_BAD_DST] {
300     xlog("test\n");
301 }

Any suggestions will be thankful.


More information about the Users mailing list