Skip to content

Cannot determine Asterisk version issue #597

@adertisnoc

Description

@adertisnoc

Hello,
we are using your library long ago, but we found that the component cannot determine our PBX systems version.
There is some SEVERE messages in the log:
SEVERE: Unable to determine asterisk version, assuming Asterisk 16... you should expect problems to follow.

We found that there are some regular expressions for the versions, but the definied ones cannot fit our server version. Our PBX boxes are built from the official github source code of Asterisk project.

Here is our version string:

vt1*CLI> core show version
Asterisk certified-18.9-cert7 built by ....

I think the problem is with the regex, but im not a Java developer. Could you please fix it?

The possible issue is in the AsteriskVersion.java:
private static final String VERSION_PATTERN_CERTIFIED_18 = "^\\s*Asterisk certified/(GIT-)?18[-. ].*";

Thanks,
Zoltan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions