<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">switch_api_execute :&nbsp;<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:&nbsp; <br>&nbsp;&nbsp; can i use the next code: <br>&nbsp; 1 :&nbsp; use&nbsp;&nbsp; api = switch_loadable_module_get_api_interface(cmd) .&nbsp; get the application's API . <br><br>&nbsp; 2 : &nbsp; run : api-&gt;function(arg, session,stream) <br>&nbsp;&nbsp; <br>
&nbsp; is the above is correct ?&nbsp; <br>&nbsp; <br>&nbsp;&nbsp; thank you very much ! <br><br><div class="gmail_quote">2009/9/11 Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;</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. &nbsp;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>
&gt; hello :<br>
&gt; &nbsp; &nbsp;How can i to call the funciton in another module ?<br>
&gt; example:<br>
&gt; &nbsp; I want to add code in mod_voicemail. to call rxfax. the function<br>
&gt; of mod_fax .<br>
&gt; &nbsp; what's the step to do ?<br>
&gt; &nbsp;thanks .<br>
<br></div></div></blockquote></div></blockquote></div><br></div></body></html>