Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: mod_spidermonkey
-
Labels:None
-
Platform:Linux x86/gcc
-
CPU Info:unknown
-
FreeSWITCH GIT Revision:unknown
-
Reproduced with GIT HEAD?:unknown
Description
Steps to reproduce the problem:
1) Call the extension 333 to execute the script
<extension name="test" >
<condition field="destination_number" expression="^333$">
<action application="javascript" data="test2.js"/>
</condition>
</extension>
2) From mod_event_socket run this:
api jsapi test.js
Content-Type: api/response
Content-Length: 14
-ERR no reply
(It always return -ERR no reply)
3) Then repeat step 1
4) When you shutdown you will see this in the log
2008-11-21 13:34:39 [NOTICE] switch_loadable_module.c:536 switch_loadable_module_unprocess() Deleting API Function 'jsapi'
2008-11-21 13:34:39 [DEBUG] switch_loadable_module.c:538 switch_loadable_module_unprocess() Write lock interface 'jsapi' to wait for existing references.
2008-11-21 13:34:39 [CONSOLE] switch_loadable_module.c:1231 do_shutdown() Stopping: mod_spidermonkey
2008-11-21 13:34:39 [NOTICE] switch_event.c:1177 switch_event_unbind() Event Binding deleted for mod_spidermonkey:MESSAGE_QUERY
2008-11-21 13:34:39 [DEBUG] switch_loadable_module.c:427 switch_loadable_module_unprocess() Write lock interface 'sofia' to wait for existing references.
2008-11-21 13:34:49 [ERR] switch_loadable_module.c:431 switch_loadable_module_unprocess() Giving up on 'sofia' waiting for existing references.
...........
2008-11-21 13:34:49 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:50 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:51 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:52 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:53 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
1) Call the extension 333 to execute the script
<extension name="test" >
<condition field="destination_number" expression="^333$">
<action application="javascript" data="test2.js"/>
</condition>
</extension>
2) From mod_event_socket run this:
api jsapi test.js
Content-Type: api/response
Content-Length: 14
-ERR no reply
(It always return -ERR no reply)
3) Then repeat step 1
4) When you shutdown you will see this in the log
2008-11-21 13:34:39 [NOTICE] switch_loadable_module.c:536 switch_loadable_module_unprocess() Deleting API Function 'jsapi'
2008-11-21 13:34:39 [DEBUG] switch_loadable_module.c:538 switch_loadable_module_unprocess() Write lock interface 'jsapi' to wait for existing references.
2008-11-21 13:34:39 [CONSOLE] switch_loadable_module.c:1231 do_shutdown() Stopping: mod_spidermonkey
2008-11-21 13:34:39 [NOTICE] switch_event.c:1177 switch_event_unbind() Event Binding deleted for mod_spidermonkey:MESSAGE_QUERY
2008-11-21 13:34:39 [DEBUG] switch_loadable_module.c:427 switch_loadable_module_unprocess() Write lock interface 'sofia' to wait for existing references.
2008-11-21 13:34:49 [ERR] switch_loadable_module.c:431 switch_loadable_module_unprocess() Giving up on 'sofia' waiting for existing references.
...........
2008-11-21 13:34:49 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:50 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:51 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:52 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)
2008-11-21 13:34:53 [CRIT] sofia.c:696 sofia_profile_thread_run() Waiting for 1 session(s)