From: Lonnie A. <li...@lo...> - 2020-10-24 23:13:41
|
Good point ... how about if ls -l /usr/lib/asterisk/modules/*pjsip.so >/dev/null 2>&1; then echo "pjsip installed" else echo "pjsip not installed" fi Lonnie > On Oct 24, 2020, at 5:57 PM, Michael Knill <mic...@ip...> wrote: > > Thanks Lonnie. > > Unfortunately I turn off PJSIP in modules.conf already so this method does not help me find whether its an SE version or not. > For example: > ||||| > | A | Release: astlinux-1.3.7.1 - Asterisk 13.29.2 > | s | Host Name: 3037-QGPSC-CM1.private.ipcaccess.net > | t | Last Boot: 2020-10-24 15:35 > | L | Linux: 3.16.74-astlinux x86_64 > | i | CPU: Intel Xeon E5-2670 v2 (2x) @ 2500 MHz > | n | RAM: 2011 MB > | u | Board Type: genx86_64 > | x | Hardware: VMware Guest VM > ||||| > 3037-QGPSC-CM1 kd # asterisk -rnx "pjsip show version" > No such command 'pjsip show version' (type 'core show help pjsip show version' for other possible commands) > 3037-QGPSC-CM1 kd # > > Regards > Michael Knill > > On 25/10/20, 9:43 am, "Lonnie Abelbeck" <li...@lo...> wrote: > > > >> On Oct 24, 2020, at 4:56 PM, Michael Knill <mic...@ip...> wrote: >> >> Hi Devs >> >> Just wondering with the astlinux-release file whether it can show if its an SE version or not e.g. ‘astlinux-1.4.0SE’. >> What uses this file? Would it break anything? >> >> Regards >> Michael Knill > > The SE version is only related to the Asterisk version and how it was built. > > The /etc/astlinux-release file relates the base system. > > If you need to programmatically know if pjsip is supported, one method is: > > (SE version, w/o pjsip) > # asterisk -rnx "pjsip show version" > No such command 'pjsip show version' (type 'core show help pjsip show' for other possible commands) > > (non-SE version, with pjsip) > # asterisk -rnx "pjsip show version" > PJPROJECT version currently running against: 2.10 > > > I would not mess with the /etc/astlinux-release file. > > Lonnie > > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel |