[asterisk-bugs] [JIRA] (ASTERISK-28040) "dialplan reload" is removing minus symbol from hints

Chris Savinovich (JIRA) noreply at issues.asterisk.org
Mon Sep 10 13:56:54 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=244749#comment-244749 ] 

Chris Savinovich edited comment on ASTERISK-28040 at 9/10/18 1:56 PM:
----------------------------------------------------------------------

>From Digium:  I can't replicate the issue.  Tried to replicate it using versions 13.15, 15, and 16 and in all instances the "-" stayed even after "dialplan reload".   Please post further details on how you replicate, and updated to the latest release of your branch.
Here are my steps:

ITN3*CLI>
ITN3*CLI> core show hints

    -= Registered Asterisk Dial Plan Hints =-
199 at cyberphone      : SIP/Phone-A           State:Unavailable     Presence:not_set         Watchers  0
----------------
- 7 hints registered
ITN3*CLI>
ITN3*CLI> dialplan reload
Dialplan reloaded.
[Sep 10 14:50:26] DEBUG[30790]: config.c:2199 config_text_file_load: Parsing /etc/asterisk/extensions.conf
    -- Time to scan old dialplan and merge leftovers back into the new: 0.002245 sec
    -- Time to restore hints and swap in new dialplan: 0.000018 sec
    -- Time to delete the old dialplan: 0.000139 sec
    -- Total time merge_contexts_delete: 0.002402 sec
    -- pbx_config successfully loaded 27 contexts (enable debug for details).
ITN3*CLI>
ITN3*CLI>
ITN3*CLI> core show hints

    -= Registered Asterisk Dial Plan Hints =-
199 at cyberphone      : SIP/Phone-A           State:Unavailable     Presence:not_set         Watchers  0
----------------
- 7 hints registered




was (Author: csavinovich):
>From Digium:  I can't replicate the issue.  Tried to replicate it using versions 13.15, 15, and 16 and in all instances the "-" stayed even after "dialplan reload".   Please post further details on how you replicate, and updated to the latest release of your branch.
Here are my steps:

    -= Registered Asterisk Dial Plan Hints =-
199 at cyberphone      : SIP/Phone-A           State:Unavailable     Presence:not_set         Watchers  0
----------------
- 7 hints registered
ITN3*CLI>
ITN3*CLI> dialplan reload
Dialplan reloaded.
[Sep 10 14:50:26] DEBUG[30790]: config.c:2199 config_text_file_load: Parsing /etc/asterisk/extensions.conf
    -- Time to scan old dialplan and merge leftovers back into the new: 0.002245 sec
    -- Time to restore hints and swap in new dialplan: 0.000018 sec
    -- Time to delete the old dialplan: 0.000139 sec
    -- Total time merge_contexts_delete: 0.002402 sec
    -- pbx_config successfully loaded 27 contexts (enable debug for details).
ITN3*CLI>
ITN3*CLI>
ITN3*CLI> core show hints

    -= Registered Asterisk Dial Plan Hints =-
199 at cyberphone      : SIP/Phone-A           State:Unavailable     Presence:not_set         Watchers  0
----------------
- 7 hints registered



> "dialplan reload" is removing minus symbol from hints
> -----------------------------------------------------
>
>                 Key: ASTERISK-28040
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28040
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/General
>    Affects Versions: 13.22.0
>         Environment: Using debian but should happen on any OS
>            Reporter: Daniel Zanutti
>            Severity: Minor
>
> Summary: When we do "dialplan reload", asterisk removes the minus symbol "-" from all hints.
> We are using the minus symbol "-" to differentiate customers on our PBX. So customerA has extension "customerA-100" and customer B has extension "customerB-100", this way we can have same extension number to different customers. Hints are being used to track presense and inform BLF.
> This works fine until we do a "dialplan reload" command. When this is done, all minus symbols are removed from hints.
> Sample:
> Before command:
> {noformat}
> pabx*CLI> core show hints
>     -= Registered Asterisk Dial Plan Hints =-
> customer-112 at local-su: SIP/customer-112       State:Idle            Presence:not_set         Watchers  1
> customer-116 at local-su: SIP/customer-116       State:Idle            Presence:not_set         Watchers  1
> customer-100 at local-su: SIP/customer-100       State:Idle            Presence:not_set         Watchers  1
> customer-102 at local-su: SIP/customer-102       State:Idle            Presence:not_set         Watchers  1
> customer-103 at local-su: SIP/customer-103       State:Idle            Presence:not_set         Watchers  1
> customer-105 at local-su: SIP/customer-105       State:Idle            Presence:not_set         Watchers  1
> {noformat}
> After issuing "dialplan reload":
> {noformat}
> pabx*CLI> core show hints
>     -= Registered Asterisk Dial Plan Hints =-
> customer116 at local-sub: SIP/customer116        State:Idle            Presence:not_set         Watchers  1
> customer112 at local-sub: SIP/customer112        State:InUse           Presence:not_set         Watchers  1
> customer105 at local-sub: SIP/customer105        State:Idle            Presence:not_set         Watchers  1
> customer100 at local-sub: SIP/customer100        State:Idle            Presence:not_set         Watchers  1
> customer103 at local-sub: SIP/customer103        State:Idle            Presence:not_set         Watchers  1
> customer102 at local-sub: SIP/customer102        State:Idle            Presence:not_set         Watchers  1
> {noformat}
> This is only solved after asterisk restart. The problem always happens so it's very easy to reproduce.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list