[Freeswitch-users] Running show codec via fs_cli
Michael Jerris
mike at jerris.com
Thu Jan 5 17:42:23 MSK 2017
what version of freeswitch?
On Thu, Jan 5, 2017 at 1:54 AM Lợi Đặng <loi.dangthanh at gmail.com> wrote:
> Hi Brian, tks for pointing out the scenario.
> afaik,
> 1. In start, FS firstly open db connection
> 2. In loading core modules, CORE_PCM_MODULE, FS put codec informations
> into sqlitedb (default)
> 3. `show codecs` in mod_commands just to retrieve that these informations
> from db.
> Everythings ok when FS is running foreground, I can check the log in
> console and it's straightforward.
>
> The problem was, when I'm running FS in background, looks like step 2 was
> not executed, so my step 3 return `0 total`.
> Not sure what happened, since logfile module is loaded after loading core
> module, so that I could not check logfile for details in step 1 and 2.
>
> Not sure if there is difference between running in foreground and
> background affect this.
>
> rgds,
>
> Loi Dang Thanh
> Phone : +84. 1224.735.448
> Email : loi.dangthanh at gmail.com
>
>
>
> On Thu, Jan 5, 2017 at 6:59 AM, Brian West <brian at freeswitch.org> wrote:
>
> That probably means your sqlite db is toast or you started with the db
> disabled, When you type show codecs, it doesn't actually walk the in memory
> data to show you that, Its pulling it from the database on disk, same with
> channels and many others.
>
> /b
>
>
> On Wed, Jan 4, 2017 at 4:15 AM, Lợi Đặng <loi.dangthanh at gmail.com> wrote:
>
> Hi guys, I'm connecting to my backgrounded FS via fs_cli, things are
> pretty straightforward, and connection is OK. But I found this:
> `show codec` returns 0 total.
>
> I can make sure CORE_PCM_MODULE is loaded, via log file and api
> `module_exists`.
>
> Then I tried to `reload` CORE_PCM_MODULE, and guess what, `show codec`
> works properly, contains codecs informations.
>
> Same issue happened with CORE_SPEEX_MODULE and CORE_VPX_MODULE as well.
>
> FS running normally before and after reloading module(s).
> Not sure if this is a bug on `show codec` or I just miss something.
>
> More information, connecting to a foreground running FS doesn't have the
> same issue.
>
> rgds,
>
> Loi Dang Thanh
> Phone : +84. 1224.735.448
> Email : loi.dangthanh at gmail.com
>
>
>
>
>
> _________________________________________________________________________
>
>
> Professional FreeSWITCH Consulting Services:
>
>
> consulting at freeswitch.org
>
>
> http://www.freeswitchsolutions.com
>
>
>
>
>
> Official FreeSWITCH Sites
>
>
> http://www.freeswitch.org
>
>
> http://confluence.freeswitch.org
>
>
> http://www.cluecon.com
>
>
>
>
>
> FreeSWITCH-users mailing list
>
>
> FreeSWITCH-users at lists.freeswitch.org
>
>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>
>
> http://www.freeswitch.org
>
>
>
>
> --
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Brian West*
> brian at freeswitch.org
>
>
>
> *Twitter: @FreeSWITCH , @briankwest*
> http://www.freeswitchbook.com (50% Discount using code FreeSwitch50)
> http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50)
> https://www.gofundme.com/freeswitch_ubuntu
>
> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *Skype:*briankwest
>
>
>
>
>
> _________________________________________________________________________
>
>
> Professional FreeSWITCH Consulting Services:
>
>
> consulting at freeswitch.org
>
>
> http://www.freeswitchsolutions.com
>
>
>
>
>
> Official FreeSWITCH Sites
>
>
> http://www.freeswitch.org
>
>
> http://confluence.freeswitch.org
>
>
> http://www.cluecon.com
>
>
>
>
>
> FreeSWITCH-users mailing list
>
>
> FreeSWITCH-users at lists.freeswitch.org
>
>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>
>
> http://www.freeswitch.org
>
>
>
>
> _________________________________________________________________________
>
> Professional FreeSWITCH Consulting Services:
>
> consulting at freeswitch.org
>
> http://www.freeswitchsolutions.com
>
>
>
> Official FreeSWITCH Sites
>
> http://www.freeswitch.org
>
> http://confluence.freeswitch.org
>
> http://www.cluecon.com
>
>
>
> FreeSWITCH-users mailing list
>
> FreeSWITCH-users at lists.freeswitch.org
>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170105/6e3ef42f/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list