Just peeked at the source, that part is related to determining asterisk version. What ver of asterisk is running? If you’re not on 16 or 18, I recommend changing to one of those
The root cause is when we enable DPMA it should automatically install the package package asterisk18-res_digium_phone.x86_64 (or package asterisk16-res_digium_phone.x86_64 depending on the asterisk version).
In my case, I don’t why, but it doesn’t work.
Solution: installing the package manually, then I can enable DPMA.
Thanks to Sangoma support for its help in diagnosis