Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] module question

Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mandra at gmail.com
Guest





PostPosted: Mon Feb 29, 2016 7:47 pm    Post subject: [Freeswitch-users] module question Reply with quote

Hey guys - I've been working on a ladspa module and I thought that after I make a change to it and recompile I can just run reload and hear my changes, but it's not working, so I tried unload and reload and that's not allowing me to hear my changes either. Restarting freeSWITCH does allow me to hear my changes. Any ideas why this would be happening. I'm running 1.6

I know about the how the modules shutdown function is supposed to work 
(https://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Reloading_Your_Module"N.B. your module's Shutdown function must accomplish a complete reversion of any setup that happens in it's Load function for a reload to work properly.") and this used to work without issue, so I'm wondering what might be going on here.

Any suggestions appreciated,


thanks, chris
Back to top
mandra at gmail.com
Guest





PostPosted: Tue Mar 01, 2016 9:23 am    Post subject: [Freeswitch-users] module question Reply with quote

More grist for the mill:I'm able to unload the module, and freeswitch reports the module unloaded, but if I make changes to the module and make and make install and then load the module again it doesn't reflect the changes made,  and resorts too old behavior.  The only way to see the new behavior is to restart fs.  it's like it's caching the module but it's not bc if you unload it and then exercise the API command free switch reports the command is not found. 


Is there something I need to configure to make this work maybe also the modules written in C++ if that matters. Thanks, it's really annoying to have to restart fs each time I want to see a change. 
Chris

On Monday, February 29, 2016, Chris Mandra <mandra@gmail.com (mandra@gmail.com)> wrote:
Quote:
Hey guys - I've been working on a ladspa module and I thought that after I make a change to it and recompile I can just run reload and hear my changes, but it's not working, so I tried unload and reload and that's not allowing me to hear my changes either. Restarting freeSWITCH does allow me to hear my changes. Any ideas why this would be happening. I'm running 1.6

I know about the how the modules shutdown function is supposed to work 
(https://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Reloading_Your_Module"N.B. your module's Shutdown function must accomplish a complete reversion of any setup that happens in it's Load function for a reload to work properly.") and this used to work without issue, so I'm wondering what might be going on here.

Any suggestions appreciated,


thanks, chris






--
mandra
c:410.258.5281
Back to top
nneul at mst.edu
Guest





PostPosted: Tue Mar 01, 2016 9:34 am    Post subject: [Freeswitch-users] module question Reply with quote

Are you sure the 'make install' is replacing the path you think it is?

I'd suggest as a test explicitly removing the .so and make sure that a reload/load fails. Then try the make install.

-- Nathan

On 03/01/2016 08:22 AM, Chris Mandra wrote:
Quote:
More grist for the mill:
I'm able to unload the module, and freeswitch reports the module unloaded, but if I make changes to the module and make
and make install and then load the module again it doesn't reflect the changes made, and resorts too old behavior. The
only way to see the new behavior is to restart fs. it's like it's caching the module but it's not bc if you unload it
and then exercise the API command free switch reports the command is not found.

Is there something I need to configure to make this work maybe also the modules written in C++ if that matters. Thanks,
it's really annoying to have to restart fs each time I want to see a change.
Chris

On Monday, February 29, 2016, Chris Mandra <mandra@gmail.com <mailto:mandra@gmail.com>> wrote:

Hey guys - I've been working on a ladspa module and I thought that after I make a change to it and recompile I can
just run reload and hear my changes, but it's not working, so I tried unload and reload and that's not allowing me
to hear my changes either. Restarting freeSWITCH does allow me to hear my changes. Any ideas why this would be
happening. I'm running 1.6

I know about the how the modules shutdown function is supposed to work
(https://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Reloading_Your_Module"N.B. your module's Shutdown
function must accomplish a complete reversion of any setup that happens in it's Load function for a reload to work
properly.") and this used to work without issue, so I'm wondering what might be going on here.

Any suggestions appreciated,

thanks, chris



--
mandra
c:410.258.5281


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger nneul@mst.edu
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mandra at gmail.com
Guest





PostPosted: Tue Mar 01, 2016 10:43 am    Post subject: [Freeswitch-users] module question Reply with quote

thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk)  it still reports it successfully reloads 



[
10:33
]
freeswitch@internal> reload mod_sc_dsp
+OK Reloading XML
+OK module unloaded
+OK module loaded
2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:978 Deleting Application 'test_dsp_run'


2016-03-01 15:33:05.511747 [DEBUG] switch_loadable_module.c:980 Write lock interface 'test_dsp_run' to wait for existing references.


2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:1033 Deleting API Function 'uuid_test_dsp'


2016-03-01 15:33:05.511747 [DEBUG] switch_loadable_module.c:1035 Write lock interface 'uuid_test_dsp' to wait for existing references.


2016-03-01 15:33:05.511747 [CONSOLE] switch_loadable_module.c:1876 Stopping: mod_test_dsp


2016-03-01 15:33:05.511747 [CONSOLE] switch_loadable_module.c:1896 mod_test_dsp unloaded.


2016-03-01 15:33:05.511747 [INFO] mod_enum.c:876 ENUM Reloaded


2016-03-01 15:33:05.511747 [CONSOLE] switch_loadable_module.c:1409 Successfully Loaded [mod_test_dsp]


2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:267 Adding Application 'test_dsp_run'


2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:313 Adding API Function 'uuid_test_dsp'


2016-03-01 15:33:05.511747 [INFO] switch_time.c:1191 Timezone reloaded 530 definitions


freeswitch@internal>                  freeswitch@internal>





[
10:33
]
how is that possible -what does it mean if when i delete the shared objects it still reports loading?

On Tue, Mar 1, 2016 at 9:33 AM, Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)> wrote:
Quote:
Are you sure the 'make install' is replacing the path you think it is?

I'd suggest as a test explicitly removing the .so and make sure that a reload/load fails. Then try the make install.

-- Nathan

On 03/01/2016 08:22 AM, Chris Mandra wrote:
Quote:
More grist for the mill:
I'm able to unload the module, and freeswitch reports the module unloaded, but if I make changes to the module and make
and make install and then load the module again it doesn't reflect the changes made,  and resorts too old behavior.  The
only way to see the new behavior is to restart fs.  it's like it's caching the module but it's not bc if you unload it
and then exercise the API command free switch reports the command is not found.

Is there something I need to configure to make this work maybe also the modules written in C++ if that matters. Thanks,
it's really annoying to have to restart fs each time I want to see a change.
Chris

On Monday, February 29, 2016, Chris Mandra <mandra@gmail.com (mandra@gmail.com) <mailto:mandra@gmail.com (mandra@gmail.com)>> wrote:

     Hey guys - I've been working on a ladspa module and I thought that after I make a change to it and recompile I can
     just run reload and hear my changes, but it's not working, so I tried unload and reload and that's not allowing me
     to hear my changes either. Restarting freeSWITCH does allow me to hear my changes. Any ideas why this would be
     happening. I'm running 1.6

     I know about the how the modules shutdown function is supposed to work
     (https://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Reloading_Your_Module"N.B. your module's Shutdown
     function must accomplish a complete reversion of any setup that happens in it's Load function for a reload to work
     properly.") and this used to work without issue, so I'm wondering what might be going on here.

     Any suggestions appreciated,

     thanks, chris



--
mandra
c:[url=tel:410.258.5281]410.258.5281[/url]


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger                       nneul@mst.edu (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
mandra
c:410.258.5281
Back to top
italo at freeswitch.org
Guest





PostPosted: Tue Mar 01, 2016 1:59 pm    Post subject: [Freeswitch-users] module question Reply with quote

You have, by any chance, installed FS with packages and then switched to compiling from source?

My guess is that you copied the first release of you module to the dir where the FS from packages looks for and by restarting freeswitch you are in fact starting the compiled from source one..

Ítalo Rossiitalo@freeswitch.org
IRC chat.freenode.net #freeswitch #freeswitch-dev
Bugs? https://freeswitch.org/jira
Docs? https://freeswitch.org/jira
Chat? https://hipchat.freeswitch.org/gUdAgy0m6




Quote:
On Mar 1 2016, at 12:44 pm, Chris Mandra <mandra@gmail.com> wrote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk) it still reports it successfully reloads



[
10:33
]
freeswitch@internal> reload mod_sc_dsp
+OK Reloading XML
+OK module unloaded
+OK module loaded
2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:978 Deleting Application 'test_dsp_run'


2016-03-01 15:33:05.511747 [DEBUG] switch_loadable_module.c:980 Write lock interface 'test_dsp_run' to wait for existing references.


2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:1033 Deleting API Function 'uuid_test_dsp'


2016-03-01 15:33:05.511747 [DEBUG] switch_loadable_module.c:1035 Write lock interface 'uuid_test_dsp' to wait for existing references.


2016-03-01 15:33:05.511747 [CONSOLE] switch_loadable_module.c:1876 Stopping: mod_test_dsp


2016-03-01 15:33:05.511747 [CONSOLE] switch_loadable_module.c:1896 mod_test_dsp unloaded.


2016-03-01 15:33:05.511747 [INFO] mod_enum.c:876 ENUM Reloaded


2016-03-01 15:33:05.511747 [CONSOLE] switch_loadable_module.c:1409 Successfully Loaded [mod_test_dsp]


2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:267 Adding Application 'test_dsp_run'


2016-03-01 15:33:05.511747 [NOTICE] switch_loadable_module.c:313 Adding API Function 'uuid_test_dsp'


2016-03-01 15:33:05.511747 [INFO] switch_time.c:1191 Timezone reloaded 530 definitions


freeswitch@internal> freeswitch@internal>





[
10:33
]
how is that possible -what does it mean if when i delete the shared objects it still reports loading?

On Tue, Mar 1, 2016 at 9:33 AM, Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)> wrote:
Quote:
Are you sure the 'make install' is replacing the path you think it is?

I'd suggest as a test explicitly removing the .so and make sure that a reload/load fails. Then try the make install.

-- Nathan

On 03/01/2016 08:22 AM, Chris Mandra wrote:
Quote:
More grist for the mill:
I'm able to unload the module, and freeswitch reports the module unloaded, but if I make changes to the module and make
and make install and then load the module again it doesn't reflect the changes made, and resorts too old behavior. The
only way to see the new behavior is to restart fs. it's like it's caching the module but it's not bc if you unload it
and then exercise the API command free switch reports the command is not found.

Is there something I need to configure to make this work maybe also the modules written in C++ if that matters. Thanks,
it's really annoying to have to restart fs each time I want to see a change.
Chris

On Monday, February 29, 2016, Chris Mandra <mandra@gmail.com (mandra@gmail.com) <mailto:mandra@gmail.com (mandra@gmail.com)>> wrote:

Hey guys - I've been working on a ladspa module and I thought that after I make a change to it and recompile I can
just run reload and hear my changes, but it's not working, so I tried unload and reload and that's not allowing me
to hear my changes either. Restarting freeSWITCH does allow me to hear my changes. Any ideas why this would be
happening. I'm running 1.6

I know about the how the modules shutdown function is supposed to work
(https://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Reloading_Your_Module"N.B. your module's Shutdown
function must accomplish a complete reversion of any setup that happens in it's Load function for a reload to work
properly.") and this used to work without issue, so I'm wondering what might be going on here.

Any suggestions appreciated,

thanks, chris



--
mandra
c:410.258.5281


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger nneul@mst.edu (nneul@mst.edu)
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
mandra
c:410.258.5281

Back to top
nneul at mst.edu
Guest





PostPosted: Tue Mar 01, 2016 2:22 pm    Post subject: [Freeswitch-users] module question Reply with quote

On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk) it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger nneul@mst.edu
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mandra at gmail.com
Guest





PostPosted: Tue Mar 01, 2016 3:30 pm    Post subject: [Freeswitch-users] module question Reply with quote

So, FS is reporting 
reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so
however that file doesn’t even exist

and yet it still says it’s loading it
how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)> wrote:
Quote:


On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk)  it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       nneul@mst.edu (nneul@mst.edu)
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






--
mandra
c:410.258.5281
Back to top
mandra at gmail.com
Guest





PostPosted: Tue Mar 01, 2016 6:13 pm    Post subject: [Freeswitch-users] module question Reply with quote

Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the issue. This is baffling. I've tried it in more one machine, same result. 

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com (mandra@gmail.com)> wrote:
Quote:
So, FS is reporting 
reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so
however that file doesn’t even exist

and yet it still says it’s loading it
how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <[url=javascript:_e(%7B%7D,'cvml','nneul@mst.edu');]nneul@mst.edu[/url]> wrote:
Quote:


On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk)  it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       [url=javascript:_e(%7B%7D,'cvml','nneul@mst.edu');]nneul@mst.edu[/url]
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
[url=javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');]consulting@freeswitch.org[/url]
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
[url=javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');]FreeSWITCH-users@lists.freeswitch.org[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






--
mandra
c:410.258.5281




--
mandra
c:410.258.5281
Back to top
mandra at gmail.com
Guest





PostPosted: Tue Mar 01, 2016 9:54 pm    Post subject: [Freeswitch-users] module question Reply with quote

Any other ideas?

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com (mandra@gmail.com)> wrote:
Quote:
Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the issue. This is baffling. I've tried it in more one machine, same result. 

On Tuesday, March 1, 2016, Chris Mandra <[url=javascript:_e(%7B%7D,'cvml','mandra@gmail.com');]mandra@gmail.com[/url]> wrote:
Quote:
So, FS is reporting 
reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so
however that file doesn’t even exist

and yet it still says it’s loading it
how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <nneul@mst.edu> wrote:
Quote:


On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk)  it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       nneul@mst.edu
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






--
mandra
c:410.258.5281




--
mandra
c:410.258.5281


--
mandra
c:410.258.5281
Back to top
steveayre at gmail.com
Guest





PostPosted: Wed Mar 02, 2016 3:43 am    Post subject: [Freeswitch-users] module question Reply with quote

When the file is loaded use find FreeSWITCH's PID and then use the 'lsof -p $PID | grep mod_' command... it'll show you a list of the modules FreeSWITCH currently has loaded. See if it's loading from a different path that way.


On 2 March 2016 at 02:52, Chris Mandra <mandra@gmail.com (mandra@gmail.com)> wrote:
Quote:
Any other ideas?

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com (mandra@gmail.com)> wrote:
Quote:
Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the issue. This is baffling. I've tried it in more one machine, same result. 

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com> wrote:
Quote:
So, FS is reporting 
reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so
however that file doesn’t even exist

and yet it still says it’s loading it
how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <nneul@mst.edu> wrote:
Quote:


On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk)  it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       nneul@mst.edu
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






--
mandra
c:[url=tel:410.258.5281]410.258.5281[/url]




--
mandra
c:[url=tel:410.258.5281]410.258.5281[/url]




--
mandra
c:[url=tel:410.258.5281]410.258.5281[/url]

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mandra at gmail.com
Guest





PostPosted: Wed Mar 02, 2016 7:15 am    Post subject: [Freeswitch-users] module question Reply with quote

Thank you for writing Stephen, I've already tried that, and that's how I know it's reporting what it's reporting and how it doesn't make any sense.

Fs is reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so


however that file doesn’t even exist

and yet it still says it’s loading it
how is that possible?
On Wednesday, March 2, 2016, Steven Ayre <steveayre@gmail.com (steveayre@gmail.com)> wrote:
Quote:
When the file is loaded use find FreeSWITCH's PID and then use the 'lsof -p $PID | grep mod_' command... it'll show you a list of the modules FreeSWITCH currently has loaded. See if it's loading from a different path that way.


On 2 March 2016 at 02:52, Chris Mandra <[url=javascript:_e(%7B%7D,'cvml','mandra@gmail.com');]mandra@gmail.com[/url]> wrote:
Quote:
Any other ideas?

On Tuesday, March 1, 2016, Chris Mandra <[url=javascript:_e(%7B%7D,'cvml','mandra@gmail.com');]mandra@gmail.com[/url]> wrote:
Quote:
Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the issue. This is baffling. I've tried it in more one machine, same result. 

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com> wrote:
Quote:
So, FS is reporting 
reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so
however that file doesn’t even exist

and yet it still says it’s loading it
how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <nneul@mst.edu> wrote:
Quote:


On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk)  it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       nneul@mst.edu
Missouri S&T Information Technology    [url=tel:%28573%29%20612-1412](573) 612-1412[/url]
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






--
mandra
c:[url=tel:410.258.5281]410.258.5281[/url]




--
mandra
c:[url=tel:410.258.5281]410.258.5281[/url]




--
mandra
c:[url=tel:410.258.5281]410.258.5281[/url]

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
[url=javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org');]consulting@freeswitch.org[/url]
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
[url=javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');]FreeSWITCH-users@lists.freeswitch.org[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org






--
mandra
c:410.258.5281
Back to top
nneul at mst.edu
Guest





PostPosted: Wed Mar 02, 2016 8:38 am    Post subject: [Freeswitch-users] module question Reply with quote

Is there any chance you are running freeswitch chroot'd?

On 03/02/2016 06:14 AM, Chris Mandra wrote:
Quote:
Thank you for writing Stephen, I've already tried that, and that's how I know it's reporting what it's reporting and how
it doesn't make any sense.

Fs is reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

however that file doesnt even exist

and yet it still says its loading it

how is that possible?


On Wednesday, March 2, 2016, Steven Ayre <steveayre@gmail.com <mailto:steveayre@gmail.com>> wrote:

When the file is loaded use find FreeSWITCH's PID and then use the 'lsof -p $PID | grep mod_' command... it'll show
you a list of the modules FreeSWITCH currently has loaded. See if it's loading from a different path that way.

On 2 March 2016 at 02:52, Chris Mandra <mandra@gmail.com <javascript:_e(%7B%7D,'cvml','mandra@gmail.com');>> wrote:

Any other ideas?


On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com <javascript:_e(%7B%7D,'cvml','mandra@gmail.com');>> wrote:

Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the issue.
This is baffling. I've tried it in more one machine, same result.

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com> wrote:

So, FS is reporting

reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

however that file doesnt even exist

and yet it still says its loading it

how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <nneul@mst.edu> wrote:



On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk) it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's
likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the
strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger nneul@mst.edu
Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412>
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
mandra
c:410.258.5281 <tel:410.258.5281>



--
mandra
c:410.258.5281 <tel:410.258.5281>



--
mandra
c:410.258.5281 <tel:410.258.5281>

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@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@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
mandra
c:410.258.5281


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger nneul@mst.edu
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mandra at gmail.com
Guest





PostPosted: Wed Mar 02, 2016 9:30 am    Post subject: [Freeswitch-users] module question Reply with quote

No, not chroot'd. I'm compiling a bunch of my own classes, could be my makefile?

On Wednesday, March 2, 2016, Nathan Neulinger <nneul@mst.edu (nneul@mst.edu)> wrote:
Quote:
Is there any chance you are running freeswitch chroot'd?

On 03/02/2016 06:14 AM, Chris Mandra wrote:
Quote:
Thank you for writing Stephen, I've already tried that, and that's how I know it's reporting what it's reporting and how
it doesn't make any sense.

Fs is reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

however that file doesn’t even exist

and yet it still says it’s loading it

how is that possible?


On Wednesday, March 2, 2016, Steven Ayre <[url=javascript:;]steveayre@gmail.com[/url] <mailto:[url=javascript:;]steveayre@gmail.com[/url]>> wrote:

     When the file is loaded use find FreeSWITCH's PID and then use the 'lsof -p $PID | grep mod_' command... it'll show
     you a list of the modules FreeSWITCH currently has loaded. See if it's loading from a different path that way.

     On 2 March 2016 at 02:52, Chris Mandra <[url=javascript:;]mandra@gmail.com[/url] <javascript:_e(%7B%7D,'cvml','[url=javascript:;]mandra@gmail.com[/url]');>> wrote:

         Any other ideas?


         On Tuesday, March 1, 2016, Chris Mandra <[url=javascript:;]mandra@gmail.com[/url] <javascript:_e(%7B%7D,'cvml','[url=javascript:;]mandra@gmail.com[/url]');>> wrote:

             Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the issue.
             This is baffling. I've tried it in more one machine, same result.

             On Tuesday, March 1, 2016, Chris Mandra <[url=javascript:;]mandra@gmail.com[/url]> wrote:

                 So, FS is reporting

                 reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

                 however that file doesn’t even exist

                 and yet it still says it’s loading it

                 how is that possible?


                 On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <[url=javascript:;]nneul@mst.edu[/url]> wrote:



                     On 03/01/2016 09:41 AM, Chris Mandra wrote:
                     > thanks for the reply Nathan - this is really weird:
                     >
                     > after i remove the .so files (and make sure they're gone from my disk)  it still reports it successfully reloads
                     >

                     Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's
                     likely pulling it in
                     from a different location.

                     Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the
                     strace and look for what
                     file/path it searched/etc.

                     -- Nathan

                     ------------------------------------------------------------
                     Nathan Neulinger [url=javascript:;]nneul@mst.edu[/url]
                     Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412>
                     System Administrator - Architect

                     _________________________________________________________________________
                     Professional FreeSWITCH Consulting Services:
                     [url=javascript:;]consulting@freeswitch.org[/url]
                     http://www.freeswitchsolutions.com

                     Official FreeSWITCH Sites
                     http://www.freeswitch.org
                     http://confluence.freeswitch.org
                     http://www.cluecon.com

                     FreeSWITCH-users mailing list
                     [url=javascript:;]FreeSWITCH-users@lists.freeswitch.org[/url]
                     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
                     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
                     http://www.freeswitch.org




                 --
                 mandra
                 c:410.258.5281 <tel:410.258.5281>



             --
             mandra
             c:410.258.5281 <tel:410.258.5281>



         --
         mandra
         c:410.258.5281 <tel:410.258.5281>

         _________________________________________________________________________
         Professional FreeSWITCH Consulting Services:
         [url=javascript:;]consulting@freeswitch.org[/url] <javascript:_e(%7B%7D,'cvml','[url=javascript:;]consulting@freeswitch.org[/url]');>
         http://www.freeswitchsolutions.com

         Official FreeSWITCH Sites
         http://www.freeswitch.org
         http://confluence.freeswitch.org
         http://www.cluecon.com

         FreeSWITCH-users mailing list
         [url=javascript:;]FreeSWITCH-users@lists.freeswitch.org[/url] <javascript:_e(%7B%7D,'cvml','[url=javascript:;]FreeSWITCH-users@lists.freeswitch.org[/url]');>
         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
         http://www.freeswitch.org




--
mandra
c:410.258.5281


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
[url=javascript:;]consulting@freeswitch.org[/url]
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
[url=javascript:;]FreeSWITCH-users@lists.freeswitch.org[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger                       [url=javascript:;]nneul@mst.edu[/url]
Missouri S&T Information Technology    (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
[url=javascript:;]consulting@freeswitch.org[/url]
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
[url=javascript:;]FreeSWITCH-users@lists.freeswitch.org[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
mandra
c:410.258.5281
Back to top
nneul at mst.edu
Guest





PostPosted: Wed Mar 02, 2016 9:53 am    Post subject: [Freeswitch-users] module question Reply with quote

Next thing I'd try would be the strace while doing the reload to see if maybe it is loading from a different path - i.e.
maybe it never closed the handle to the .so or something.

-- Nathan

On 03/02/2016 08:29 AM, Chris Mandra wrote:
Quote:
No, not chroot'd. I'm compiling a bunch of my own classes, could be my makefile?

On Wednesday, March 2, 2016, Nathan Neulinger <nneul@mst.edu <mailto:nneul@mst.edu>> wrote:

Is there any chance you are running freeswitch chroot'd?

On 03/02/2016 06:14 AM, Chris Mandra wrote:
Quote:
Thank you for writing Stephen, I've already tried that, and that's how I know it's reporting what it's reporting
and how
Quote:
it doesn't make any sense.

Fs is reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

however that file doesnt even exist

and yet it still says its loading it

how is that possible?


On Wednesday, March 2, 2016, Steven Ayre <steveayre@gmail.com <javascript:;> <mailto:steveayre@gmail.com
<javascript:;>>> wrote:
Quote:

When the file is loaded use find FreeSWITCH's PID and then use the 'lsof -p $PID | grep mod_' command...
it'll show
Quote:
you a list of the modules FreeSWITCH currently has loaded. See if it's loading from a different path that way.

On 2 March 2016 at 02:52, Chris Mandra <mandra@gmail.com <javascript:;>
<javascript:_e(%7B%7D,'cvml','mandra@gmail.com <javascript:;>');>> wrote:
Quote:

Any other ideas?


On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com <javascript:;>
<javascript:_e(%7B%7D,'cvml','mandra@gmail.com <javascript:;>');>> wrote:
Quote:

Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the
issue.
Quote:
This is baffling. I've tried it in more one machine, same result.

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com <javascript:;>> wrote:

So, FS is reporting

reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

however that file doesnt even exist

and yet it still says its loading it

how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <nneul@mst.edu <javascript:;>> wrote:



On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk) it still reports it
successfully reloads
Quote:

Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it
loaded. It's
Quote:
likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the
strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger nneul@mst.edu <javascript:;>
Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412>
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org <javascript:;>
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@lists.freeswitch.org <javascript:;>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
mandra
c:410.258.5281 <tel:410.258.5281>



--
mandra
c:410.258.5281 <tel:410.258.5281>



--
mandra
c:410.258.5281 <tel:410.258.5281>

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org <javascript:;> <javascript:_e(%7B%7D,'cvml','consulting@freeswitch.org <javascript:;>');>
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@lists.freeswitch.org <javascript:;>
<javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org <javascript:;>');>
Quote:
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
mandra
c:410.258.5281


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org <javascript:;>
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@lists.freeswitch.org <javascript:;>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger nneul@mst.edu <javascript:;>
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org <javascript:;>
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@lists.freeswitch.org <javascript:;>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
mandra
c:410.258.5281


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger nneul@mst.edu
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
kworm at sofnet.com
Guest





PostPosted: Wed Mar 02, 2016 9:57 am    Post subject: [Freeswitch-users] module question Reply with quote

Assuming the name of your module is mod_test_dsp.so I would, as root, do a “find / -name mod_test_dsp.so -print” and see if there is more than one file in the filesystem somewhere. If there is more than one then delete all of them but the path you expect. Perhaps it is loading from LD_PATH somehow but I still do not see how lsof of the PID could show a file that does not exist unless it is chroot’ed. Strace or gdb may be the last resort to figure it out.

Quote:
On Mar 2, 2016, at 8:29 AM, Chris Mandra <mandra@gmail.com> wrote:

No, not chroot'd. I'm compiling a bunch of my own classes, could be my makefile?

On Wednesday, March 2, 2016, Nathan Neulinger <nneul@mst.edu> wrote:
Is there any chance you are running freeswitch chroot'd?

On 03/02/2016 06:14 AM, Chris Mandra wrote:
Quote:
Thank you for writing Stephen, I've already tried that, and that's how I know it's reporting what it's reporting and how
it doesn't make any sense.

Fs is reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

however that file doesn’t even exist

and yet it still says it’s loading it

how is that possible?


On Wednesday, March 2, 2016, Steven Ayre <steveayre@gmail.com <mailto:steveayre@gmail.com>> wrote:

When the file is loaded use find FreeSWITCH's PID and then use the 'lsof -p $PID | grep mod_' command... it'll show
you a list of the modules FreeSWITCH currently has loaded. See if it's loading from a different path that way.

On 2 March 2016 at 02:52, Chris Mandra <mandra@gmail.com <javascript:_e(%7B%7D,'cvml','mandra@gmail.com');>> wrote:

Any other ideas?


On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com <javascript:_e(%7B%7D,'cvml','mandra@gmail.com');>> wrote:

Thanks for your responses so far guys. Italo, its only built from source so I don't think that's the issue.
This is baffling. I've tried it in more one machine, same result.

On Tuesday, March 1, 2016, Chris Mandra <mandra@gmail.com> wrote:

So, FS is reporting

reporting this: /usr/local/freeswitch/mod/mod_test_dsp.so

however that file doesn’t even exist

and yet it still says it’s loading it

how is that possible?


On Tue, Mar 1, 2016 at 12:34 PM, Nathan Neulinger <nneul@mst.edu> wrote:



On 03/01/2016 09:41 AM, Chris Mandra wrote:
Quote:
thanks for the reply Nathan - this is really weird:

after i remove the .so files (and make sure they're gone from my disk) it still reports it successfully reloads


Ok, so issue 'lsof -p PID_OF_FREESWITCH' and look for the path to the .so file that it loaded. It's
likely pulling it in
from a different location.

Or 'strace -v -f -s 500 -o /tmp/trc -p PID_OF_FREESWITCH', then issue the reload, then kill the
strace and look for what
file/path it searched/etc.

-- Nathan

------------------------------------------------------------
Nathan Neulinger nneul@mst.edu
Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412>
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
mandra
c:410.258.5281 <tel:410.258.5281>



--
mandra
c:410.258.5281 <tel:410.258.5281>



--
mandra
c:410.258.5281 <tel:410.258.5281>

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@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@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@lists.freeswitch.org');>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
mandra
c:410.258.5281


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
------------------------------------------------------------
Nathan Neulinger nneul@mst.edu
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
mandra
c:410.258.5281
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services