[Freeswitch-dev] How do I issue a "load mod_sofia" from Erlang?
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?
MarkeTel Multi-Line Dialing Systems LTD.
428 Victoria Ave
Regina, SK S4N-0P6
Email: m.sobkow at marketelsystems.com
More information about the FreeSWITCH-dev