List Info

Thread: Hang while loading res_speech_lumenvox on FC




Hang while loading res_speech_lumenvox on FC
country flaguser name
United States
2007-08-23 19:04:11
We're working on a fix for the hang while loading
res_speech_lumenvox.so
on Fedora Core.

In the interim, if Jeff's suggestion about reverting to
other versions
of openssl doesn't work for you, you can work around the
problem by
adding a delay to Asterisk's module loader. Modify
main/loader.c and
add:

sleep(2); 

Right before the following code:


/* if the system supports RTLD_NOLOAD, we can just 'promote'
the flags
	   on the already-opened library to what we want... if not,
we
have to
	   close it and start over
	*/
#if defined(HAVE_RTLD_NOLOAD) &&
!defined(__Darwin__)
	if (!dlopen(fn, RTLD_NOLOAD | (wants_global ? RTLD_LAZY |
RTLD_GLOBAL : RTLD_NOW | RTLD_LOCAL))) {
		ast_log(LOG_WARNING, "Unable to promote flags on
module
'%s': %sn", resource_in, dlerror());
		while (!dlclose(lib));
		free(resource_being_loaded);
		return NULL;
	}
 

This will cause Asterisk to wait between loading modules.
This makes
Asterisk take longer to start, and is intended only as a
temporary fix.
I'll be sure to let the list know when it the issue is
worked out.

Thanks,

Stephen Keller
LumenVox Support
P: 877-977-0707, just say "Support"
F: 858-707-7072
SupportLumenVox.com
www.LumenVox.com <http://www.lumenvox.com/
> 

 <http://www.lumenvox.com/
> 

Winner "Best Innovation in Speech Recognition"
AVIOS SpeechTEK Award

 

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-speech-rec mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-sp
eech-rec

Re: Hang while loading res_speech_lumenvox on FC
country flaguser name
United Kingdom
2007-08-24 04:15:56
I was having this problem with Fedora Core 6 and asterisk
1.4.10.1.   
Adding this "sleep" seems to fix the module load
problem for me. 
(although it really slows down the asterisk startup!) 
Looking forward 
to the fix .

thanks,
Scott Stingel

www.evtmedia.com


Stephen Keller wrote:
> We're working on a fix for the hang while loading
res_speech_lumenvox.so
> on Fedora Core.
>
> In the interim, if Jeff's suggestion about reverting to
other versions
> of openssl doesn't work for you, you can work around
the problem by
> adding a delay to Asterisk's module loader. Modify
main/loader.c and
> add:
>
> sleep(2); 
>
> Right before the following code:
>
>
> /* if the system supports RTLD_NOLOAD, we can just
'promote' the flags
> 	   on the already-opened library to what we want... if
not, we
> have to
> 	   close it and start over
> 	*/
> #if defined(HAVE_RTLD_NOLOAD) &&
!defined(__Darwin__)
> 	if (!dlopen(fn, RTLD_NOLOAD | (wants_global ?
RTLD_LAZY |
> RTLD_GLOBAL : RTLD_NOW | RTLD_LOCAL))) {
> 		ast_log(LOG_WARNING, "Unable to promote flags on
module
> '%s': %sn", resource_in, dlerror());
> 		while (!dlclose(lib));
> 		free(resource_being_loaded);
> 		return NULL;
> 	}
>  
>
> This will cause Asterisk to wait between loading
modules. This makes
> Asterisk take longer to start, and is intended only as
a temporary fix.
> I'll be sure to let the list know when it the issue is
worked out.
>
> Thanks,
>
> Stephen Keller
> LumenVox Support
> P: 877-977-0707, just say "Support"
> F: 858-707-7072
> SupportLumenVox.com
> www.LumenVox.com <http://www.lumenvox.com/
> 
>
>  <http://www.lumenvox.com/
> 
>
> Winner "Best Innovation in Speech
Recognition"
> AVIOS SpeechTEK Award
>
>  
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.c
om--
>
> asterisk-speech-rec mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-sp
eech-rec
>
>
>   

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-speech-rec mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-sp
eech-rec

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )