[OpenSIPS-Users] opensips-cli dp_reload not working
Vic Jolin
adjolin at gmail.com
Thu Jun 25 14:33:55 EST 2020
Bogdan,
Below is the debug output when reloading dialplan
>From what I have noticed, after a successful dp_reload, and then making the
1st test call, the next calls will have the same context result as the
first one, even if the dialplan is different.
So, for example we tested and got context drgID=1 from the dialplan that
matches, the consecutive dial plan matches will have the same context.
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc8ad38: pr 0
next 0x7f458dc8b140 match_exp ^662261(.+) match_flags 0, subst_exp
^662261(.+), repl_exp 61\1 and attrs and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc8b140: pr 0
next 0x7f458dc96470 match_exp ^2266(.+) match_flags 0, subst_exp ^2266(.+),
repl_exp \1 and attrs user=2266; gateway=gtps and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96470: pr 0
next 0x7f458dc96800 match_exp ^6[0-9][0-9][0-9](.+) match_flags 0,
subst_exp ^6[0-9][0-9][0-9](.+), repl_exp \1 and attrs and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96800: pr 0
next 0x7f458dc96bc0 match_exp ^55551(.+) match_flags 0, subst_exp
^55551(.+), repl_exp 1\1 and attrs drgID=12 and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96bc0: pr 0
next 0x7f458dc96f88 match_exp ^979744(.+) match_flags 0, subst_exp
^979744(.+), repl_exp 44\1 and attrs user=9797; gateway=gtps and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc96f88: pr 0
next 0x7f458dc97308 match_exp ^8000(.+) match_flags 0, subst_exp ^8000(.+),
repl_exp \1 and attrs and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc97308: pr 0
next 0x7f458dc976d0 match_exp ^40011(.+) match_flags 0, subst_exp
^40011(.+), repl_exp 1\1 and attrs gateway=GTPS_VTTel and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc976d0: pr 0
next 0x7f458dc97a98 match_exp ^22001(.+) match_flags 0, subst_exp
^22001(.+), repl_exp 1\1 and attrs gateway=GTPS_VTTel and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc97a98: pr 0
next 0x7f458dc97e18 match_exp ^9000(.+) match_flags 0, subst_exp ^9000(.+),
repl_exp \1 and attrs and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc97e18: pr 0
next 0x7f458dc98198 match_exp ^400244(.+) match_flags 0, subst_exp
^400244(.+), repl_exp 44\1 and attrs and timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc98198: pr 65
next 0x7f458dc98568 match_exp ^12121(.+) match_flags 0, subst_exp
^12121(.+), repl_exp 1\1 and attrs user=1212; gateway=GTPS_VTTel and
timerec *
*Jun 25 07:46:14 [13757] DBG:dialplan:list_rule: RULE 0x7f458dc98568: pr 99
next (nil) match_exp ^30111(.+) match_flags 0, subst_exp ^30111(.+),
repl_exp 1\1 and attrs and timerec *
*Jun 25 07:46:14 [13757] DBG:core:db_free_columns: freeing result columns
at 0x7f45a142e5a0*
*Jun 25 07:46:14 [13757] DBG:core:db_free_rows: freeing 0 rows*
*Jun 25 07:46:14 [13757] DBG:core:db_free_result: freeing result set at
0x7f45a13fd7d0*
On Tue, Jun 23, 2020 at 12:41 AM Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:
> Vic,
>
> What is the exact opensips version you have ? (opensips -V)
>
> Also, please provide the log (in debug mode) generated during the reload
> attempt.
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
> https://www.opensips-solutions.com
>
> On 6/17/20 10:01 PM, Vic Jolin wrote:
>
> Bogdan,
>
> Hi, the dialplan loads properly on start up, it just doesn't reload on
> opensips-cli
>
> although when I do
> opensips-cli -x mi dp_reload
>
> It returns OK
>
> On Thu, Jun 18, 2020 at 2:29 AM Bogdan-Andrei Iancu <bogdan at opensips.org>
> wrote:
>
>> Hi,
>>
>> Do you see any errors in the logs, after reload ?
>>
>> Also, if you switch the DBG/4 log_level, do you see the logs for the
>> reload ?
>>
>> Maybe your tests are not accurate enough to spot the reload.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>> https://www.opensips-solutions.com
>>
>> On 6/17/20 9:18 PM, Vic Jolin wrote:
>>
>> Hi,
>>
>> I've been trying to get my dialplan to reload but Im still getting the
>> old dialplan when I test.
>> the old dialplan has attributes on it, but I removed it, and when I tried
>>
>> opensips-cli -x mi dp_reload
>>
>> I am still getting the old attribute.
>>
>> Anything else I should do or check?
>>
>> _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200625/8ed79524/attachment.html>
More information about the Users
mailing list