[Freeswitch-dev] how to call the function of another module ?

daqiang wang wangdq.no1 at gmail.com
Fri Sep 11 00:26:29 PDT 2009


thanks your reply:
   can i use the next code:
  1 :  use   api = switch_loadable_module_get_api_interface(cmd) .  get the
application's API .

  2 :   run : api->function(arg, session,stream)

  is the above is correct ?

   thank you very much !

2009/9/11 Michael Jerris <mike at jerris.com>

> We don't allow calling functions between modules.  You can look at the
> api interface for a way to trigger things between modules or possibly
> the event system.
>
> Mike
>
> On Sep 11, 2009, at 1:30 AM, daqiang wang wrote:
>
> > hello :
> >    How can i to call the funciton in another module ?
> > example:
> >   I want to add code in mod_voicemail. to call rxfax. the function
> > of mod_fax .
> >   what's the step to do ?
> >  thanks .
>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090911/97d7c91d/attachment.html 


More information about the FreeSWITCH-dev mailing list