<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">switch_api_execute : <a href="http://docs.freeswitch.org/group__mods.html#g0061fcba2f3bc30e61b59df815816dca">http://docs.freeswitch.org/group__mods.html#g0061fcba2f3bc30e61b59df815816dca</a><div><br><div><div>On Sep 11, 2009, at 3:26 AM, daqiang wang wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">thanks your reply: <br> can i use the next code: <br> 1 : use api = switch_loadable_module_get_api_interface(cmd) . get the application's API . <br><br> 2 : run : api->function(arg, session,stream) <br> <br>
is the above is correct ? <br> <br> thank you very much ! <br><br><div class="gmail_quote">2009/9/11 Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com">mike@jerris.com</a>></span><br><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; position: static; z-index: auto; ">
We don't allow calling functions between modules. You can look at the<br>
api interface for a way to trigger things between modules or possibly<br>
the event system.<br>
<br>
Mike<br>
<div><div></div><div class="h5"><br>
On Sep 11, 2009, at 1:30 AM, daqiang wang wrote:<br>
<br>
> hello :<br>
> How can i to call the funciton in another module ?<br>
> example:<br>
> I want to add code in mod_voicemail. to call rxfax. the function<br>
> of mod_fax .<br>
> what's the step to do ?<br>
> thanks .<br>
<br></div></div></blockquote></div></blockquote></div><br></div></body></html>