<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><p style="box-sizing: border-box; margin-top: 0px !important; margin-bottom: 16px;" class=""><span style="box-sizing: border-box; font-weight: 600;" class="">OpenSIPS version you are running</span></p><div class="position-relative overflow-auto snippet-clipboard-content" style="box-sizing: border-box; position: relative !important; overflow: auto !important;"><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.899999618530273px; margin-top: 0px; margin-bottom: 16px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px;" class=""><code style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; padding: 0px; margin: 0px; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal;" class="">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
</code></pre><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class=""><span style="box-sizing: border-box; font-weight: 600;" class="">Describe the bug</span></p><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class="">I want to use <span style="box-sizing: border-box; font-weight: 600;" class="">qrouting module</span>, but somehow, I <span style="box-sizing: border-box; font-weight: 600;" class="">reload drouting</span> when i use cmd 'mi dr_reload' (or when opensips starts), I saw this log.</p><div class="position-relative overflow-auto snippet-clipboard-content" style="box-sizing: border-box; position: relative !important; overflow: auto !important;"><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.899999618530273px; margin-top: 0px; margin-bottom: 16px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px;" class=""><code style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; padding: 0px; margin: 0px; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; word-break: normal; border: 0px; display: inline; overflow: visible; line-height: inherit; word-wrap: normal;" class="">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
</code></pre><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class="">If I make a call, opensips will crash.</p><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class=""><span style="box-sizing: border-box; font-weight: 600;" class="">And, below is my db info:</span><br style="box-sizing: border-box;" class="">mysql> select * from qr_profiles\G<br style="box-sizing: border-box;" class="">*************************** 1. row ***************************<br style="box-sizing: border-box;" class="">id: 3<br style="box-sizing: border-box;" class="">profile_name: test<br style="box-sizing: border-box;" class="">warn_threshold_asr: -1<br style="box-sizing: border-box;" class="">warn_threshold_ccr: -1<br style="box-sizing: border-box;" class="">warn_threshold_pdd: -1<br style="box-sizing: border-box;" class="">warn_threshold_ast: -1<br style="box-sizing: border-box;" class="">warn_threshold_acd: -1<br style="box-sizing: border-box;" class="">crit_threshold_asr: -1<br style="box-sizing: border-box;" class="">crit_threshold_ccr: -1<br style="box-sizing: border-box;" class="">crit_threshold_pdd: -1<br style="box-sizing: border-box;" class="">crit_threshold_ast: -1<br style="box-sizing: border-box;" class="">crit_threshold_acd: -1<br style="box-sizing: border-box;" class="">warn_penalty_asr: 0.5<br style="box-sizing: border-box;" class="">warn_penalty_ccr: 0.5<br style="box-sizing: border-box;" class="">warn_penalty_pdd: 0.5<br style="box-sizing: border-box;" class="">warn_penalty_ast: 0.5<br style="box-sizing: border-box;" class="">warn_penalty_acd: 0.5<br style="box-sizing: border-box;" class="">crit_penalty_asr: 0.05<br style="box-sizing: border-box;" class="">crit_penalty_ccr: 0.05<br style="box-sizing: border-box;" class="">crit_penalty_pdd: 0.05<br style="box-sizing: border-box;" class="">crit_penalty_ast: 0.05<br style="box-sizing: border-box;" class="">crit_penalty_acd: 0.05<br style="box-sizing: border-box;" class="">1 row in set (0.00 sec)</p><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class="">mysql> select * from dr_gateways\G<br style="box-sizing: border-box;" class="">*************************** 1. row ***************************<br style="box-sizing: border-box;" class="">id: 1<br style="box-sizing: border-box;" class="">gwid: fs_01<br style="box-sizing: border-box;" class="">type: 1<br style="box-sizing: border-box;" class="">address: 192.168.88.131:5080<br style="box-sizing: border-box;" class="">strip: 0<br style="box-sizing: border-box;" class="">pri_prefix: NULL<br style="box-sizing: border-box;" class="">attrs: NULL<br style="box-sizing: border-box;" class="">probe_mode: 1<br style="box-sizing: border-box;" class="">state: 0<br style="box-sizing: border-box;" class="">socket: NULL<br style="box-sizing: border-box;" class="">description: NULL<br style="box-sizing: border-box;" class="">*************************** 2. row ***************************<br style="box-sizing: border-box;" class="">id: 2<br style="box-sizing: border-box;" class="">gwid: outbound_01<br style="box-sizing: border-box;" class="">type: 2<br style="box-sizing: border-box;" class="">address: 192.168.88.132:5080<br style="box-sizing: border-box;" class="">strip: 3<br style="box-sizing: border-box;" class="">pri_prefix: NULL<br style="box-sizing: border-box;" class="">attrs: NULL<br style="box-sizing: border-box;" class="">probe_mode: 1<br style="box-sizing: border-box;" class="">state: 0<br style="box-sizing: border-box;" class="">socket: NULL<br style="box-sizing: border-box;" class="">description: NULL<br style="box-sizing: border-box;" class="">*************************** 3. row ***************************<br style="box-sizing: border-box;" class="">id: 3<br style="box-sizing: border-box;" class="">gwid: outbound_02<br style="box-sizing: border-box;" class="">type: 2<br style="box-sizing: border-box;" class="">address: 192.168.88.132:5080<br style="box-sizing: border-box;" class="">strip: 3<br style="box-sizing: border-box;" class="">pri_prefix: NULL<br style="box-sizing: border-box;" class="">attrs: NULL<br style="box-sizing: border-box;" class="">probe_mode: 1<br style="box-sizing: border-box;" class="">state: 0<br style="box-sizing: border-box;" class="">socket: NULL<br style="box-sizing: border-box;" class="">description: NULL<br style="box-sizing: border-box;" class="">3 rows in set (0.00 sec)</p><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class="">mysql> select * from dr_rules\G<br style="box-sizing: border-box;" class="">*************************** 1. row ***************************<br style="box-sizing: border-box;" class="">ruleid: 1<br style="box-sizing: border-box;" class="">groupid: 1<br style="box-sizing: border-box;" class="">prefix: 123<br style="box-sizing: border-box;" class="">timerec: NULL<br style="box-sizing: border-box;" class="">priority: 0<br style="box-sizing: border-box;" class="">routeid: NULL<br style="box-sizing: border-box;" class="">gwlist: outbound_01,outbound_02<br style="box-sizing: border-box;" class="">sort_alg: Q<br style="box-sizing: border-box;" class="">sort_profile: NULL<br style="box-sizing: border-box;" class="">attrs: NULL<br style="box-sizing: border-box;" class="">description: NULL<br style="box-sizing: border-box;" class="">1 row in set (0.01 sec)</p><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class=""><span style="box-sizing: border-box; font-weight: 600;" class="">And opensips-cli info:</span><br style="box-sizing: border-box;" class="">(opensips-cli): mi qr_status</p><div class="overflow-auto highlight highlight-source-json position-relative" style="box-sizing: border-box; margin-bottom: 16px; position: relative !important; overflow: visible !important;"><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.899999618530273px; margin-top: 0px; margin-bottom: 0px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; word-break: normal;" class="">{
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"Partitions"</span>: [
{
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"Name"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>Default<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"Rules"</span>: [
{
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"Id"</span>: <span class="pl-c1" style="box-sizing: border-box; color: var(--color-prettylights-syntax-constant);">1</span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"Destinations"</span>: [
{
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"Gateway"</span>: {
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"GWID"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>outbound_01<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"ASR"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"CCR"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"PDD"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"AST"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"ACD"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>
}
},
{
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"Gateway"</span>: {
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"GWID"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>outbound_02<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"ASR"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"CCR"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"PDD"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"AST"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>,
<span class="pl-ent" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity-tag);">"ACD"</span>: <span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>-1.00/0<span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span>
}
}
]
}
]
}
]
}</pre><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.899999618530273px; margin-top: 0px; margin-bottom: 0px; word-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; word-break: normal;" class=""><span style="box-sizing: border-box; font-weight: 600; caret-color: rgb(36, 41, 47); color: rgb(36, 41, 47); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px; white-space: normal;" class="">Can anyone help me, thanks!</span></pre></div></div></div></div></body></html>