This project is read-only.
1
Vote

DetermineVersion doesn't work properly with some versions of Asterisk

description

In my Asterisk, when I execute 'core show version' I get the following response: "Asterisk SVN-branch-11-r429270..." so the Regular Expression that gets the vernsion number doesn't find the proper string.

To fix this, I've modified this Regular Expression to recognise each version string.
This text "^Asterisk\s+\D*([0-9]+.[0-9]+.[0-9]+|[1-9][0-9]-r[0-9]+).*$" is for replace string pattern in the Common.ASTERISK_VERSION regular expression.

I hope this works for you

comments