Added support for asterisk13 in AMI

This commit is contained in:
Skrusty 2014-10-28 21:22:14 +00:00
parent a76d37a7f1
commit afc7f39b04
3 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,7 @@ namespace AsterNET.Manager
ASTERISK_1_8 = 18,
ASTERISK_10 = 100,
ASTERISK_11 = 110,
ASTERISK_12 = 120
ASTERISK_12 = 120,
ASTERISK_13 = 130
}
}

View file

@ -1459,6 +1459,8 @@ namespace AsterNET.Manager
return Manager.AsteriskVersion.ASTERISK_11;
else if (version.StartsWith("12."))
return Manager.AsteriskVersion.ASTERISK_12;
else if (version.StartsWith("13."))
return Manager.AsteriskVersion.ASTERISK_13;
else
throw new ManagerException("Unknown Asterisk version " + version);
}

View file

@ -1,3 +1,6 @@
28.10.2014 (skrusty)
added support for Asterisk 13 in version parser in ManagerConnection.cs and AsteriskVersion.cs
12.06.2014 (mrmad)
Removed TraceCallerThread functionality.
Changed ManagerReader worker thread creation logic (no longer uses Util.ThreadClass). Thread defaulted to stop automatically when application. ends.