[asterisk-users] Restarting MOH

Markus Weiler markus_weiler at mailworks.org
Tue Nov 13 13:09:37 CST 2012


hi,

try to catch in in a cron job per minute.

asterisk -rx 'module unload res_musiconhold.so'

Markus




Am 13.11.2012 19:15, schrieb Markus:
> Am 13.11.2012 19:01, schrieb Eric Wieling:
>> module unload res_musiconhold.so
>> and
>> module load res_musiconhold.so
>
> Great, that works, but only if no caller is listening to MOH at that 
> time. Since *all* my callers are listening to MOH and nothing else, 
> that means for me it's the same like an Asterisk restart.
>
> When I try to unload the module I get:
>
> "loader.c:542 ast_unload_resource: Soft unload failed, 
> 'res_musiconhold.so' has use count 2"
>
> Is there a way to force the unloading?
>
> Any other suggestions?
>
> Thank you!
> Markus
>
>
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list