[asterisk-bugs] [JIRA] (ASTERISK-28040) "dialplan reload" is removing minus symbol from hints
Daniel Zanutti (JIRA)
noreply at issues.asterisk.org
Thu Oct 4 09:24:54 CDT 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245069#comment-245069 ]
Daniel Zanutti commented on ASTERISK-28040:
-------------------------------------------
I tested again, problem persists. I'll attach sample environment.
{noformat}
plat*CLI> sip show subscriptions
Peer User Call ID Extension Last state Type Mailbox Expiry
177.139.91.172 100 883460539-5062- cliente-100 at loc Unavailable dialog-info+xml <none> 003600
177.139.91.172 100 1313622682-5062 cliente-101 at loc Unavailable dialog-info+xml <none> 003600
3 active SIP subscriptions
plat*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
cliente-10 at local-sub: SIP/cliente-10 State:Unavailable Presence:not_set Watchers 1
cliente-101 at local-su: SIP/cliente-101 State:Unavailable Presence:not_set Watchers 1
cliente-100 at local-su: SIP/cliente-100 State:Unavailable Presence:not_set Watchers 1
_[a-z]. at local-subscr: SIP/${EXTEN} State:Unavailable Presence: Watchers 0
----------------
- 4 hints registered
{noformat}
Then I did "dialplan reload" and hints has changed:
{noformat}
plat*CLI> dialplan reload
Dialplan reloaded.
plat*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
cliente10 at local-subs: SIP/cliente10 State:Unavailable Presence:not_set Watchers 1
_[a-z]. at local-subscr: SIP/${EXTEN} State:Unavailable Presence: Watchers 0
cliente100 at local-sub: SIP/cliente100 State:Unavailable Presence:not_set Watchers 1
cliente101 at local-sub: SIP/cliente101 State:Unavailable Presence:not_set Watchers 1
----------------
{noformat}
To reproduce the problem:
1) Register account "cliente-100"
2) Configure BLF to get information of account "cliente-101"
3) Do a core show hints
4) Confirm hint is "cliente-101"
5) Do a "dialplan reload"
6) Do a "core show hints" to confirm hint changed to "cliente101"
7) BLF will not work anymore to account cliente-101 (and probably all other hint related features)
2 accounts
"cliente-100" and "cliente-101", both with password "123".
* Hint "cliente-101" is being created dynamically.
> "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