[OpenSIPS-Users] Log err when reload qrouting module
张永锋
fengz.strong at gmail.com
Sun Nov 7 05:01:50 EST 2021
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 16:23:54 Nov 3 2021 with gcc 8
Describe the bug
I want to use qrouting module, but somehow, I reload drouting when i use cmd 'mi dr_reload' (or when opensips starts), I saw this log.
Nov 5 11:44:59 localhost opensips[68317]: WARNING:qrouting:qr_set_profile: profile '365012441' not found
Nov 5 11:44:59 localhost opensips[68317]: ERROR:qrouting:qr_rld_create_rule: failed to set profile 365012441 for rule 1
If I make a call, opensips will crash.
And, below is my db info:
mysql> select * from qr_profiles\G
*************************** 1. row ***************************
id: 3
profile_name: test
warn_threshold_asr: -1
warn_threshold_ccr: -1
warn_threshold_pdd: -1
warn_threshold_ast: -1
warn_threshold_acd: -1
crit_threshold_asr: -1
crit_threshold_ccr: -1
crit_threshold_pdd: -1
crit_threshold_ast: -1
crit_threshold_acd: -1
warn_penalty_asr: 0.5
warn_penalty_ccr: 0.5
warn_penalty_pdd: 0.5
warn_penalty_ast: 0.5
warn_penalty_acd: 0.5
crit_penalty_asr: 0.05
crit_penalty_ccr: 0.05
crit_penalty_pdd: 0.05
crit_penalty_ast: 0.05
crit_penalty_acd: 0.05
1 row in set (0.00 sec)
mysql> select * from dr_gateways\G
*************************** 1. row ***************************
id: 1
gwid: fs_01
type: 1
address: 192.168.88.131:5080
strip: 0
pri_prefix: NULL
attrs: NULL
probe_mode: 1
state: 0
socket: NULL
description: NULL
*************************** 2. row ***************************
id: 2
gwid: outbound_01
type: 2
address: 192.168.88.132:5080
strip: 3
pri_prefix: NULL
attrs: NULL
probe_mode: 1
state: 0
socket: NULL
description: NULL
*************************** 3. row ***************************
id: 3
gwid: outbound_02
type: 2
address: 192.168.88.132:5080
strip: 3
pri_prefix: NULL
attrs: NULL
probe_mode: 1
state: 0
socket: NULL
description: NULL
3 rows in set (0.00 sec)
mysql> select * from dr_rules\G
*************************** 1. row ***************************
ruleid: 1
groupid: 1
prefix: 123
timerec: NULL
priority: 0
routeid: NULL
gwlist: outbound_01,outbound_02
sort_alg: Q
sort_profile: NULL
attrs: NULL
description: NULL
1 row in set (0.01 sec)
And opensips-cli info:
(opensips-cli): mi qr_status
{
"Partitions": [
{
"Name": "Default",
"Rules": [
{
"Id": 1,
"Destinations": [
{
"Gateway": {
"GWID": "outbound_01",
"ASR": "-1.00/0",
"CCR": "-1.00/0",
"PDD": "-1.00/0",
"AST": "-1.00/0",
"ACD": "-1.00/0"
}
},
{
"Gateway": {
"GWID": "outbound_02",
"ASR": "-1.00/0",
"CCR": "-1.00/0",
"PDD": "-1.00/0",
"AST": "-1.00/0",
"ACD": "-1.00/0"
}
}
]
}
]
}
]
}
Can anyone help me, thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211107/3a120787/attachment.html>
More information about the Users
mailing list