[Freeswitch-dev] How do I issue a "load mod_sofia" from Erlang?
Mark Sobkow
m.sobkow at marketelsystems.com
Thu Nov 19 08:56:54 PST 2009
Mark Sobkow wrote:
> I need to automatically load mod_sofia after our Erlang synchronization
> process is complete. I tried the following, but it doesn't seem to work
> (no debug output and when I go into fs_cli I can still do a "load
> mod_sofia" without getting the "already loaded" errors.)
>
> freeswitch:bgapi( State#state.node, load, [mod_sofia] )
>
>
Turns out that the second argument is an array, but a char array, as in:
freeswitch:bgapi( State#state.node, load, "mod_sofia" )
Works beauty, eh?
--
Mark Sobkow
Senior Developer
MarkeTel Multi-Line Dialing Systems LTD.
428 Victoria Ave
Regina, SK S4N-0P6
Toll-Free: 800-289-8616-X533
Local: 306-359-6893-X533
Fax: 306-359-6879
Email: m.sobkow at marketelsystems.com
Web: http://www.marketelsystems.com
More information about the FreeSWITCH-dev
mailing list