<html><body bgcolor="#FFFFFF"><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><blockquote type="cite"><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; ">SWITCH_ADD_APP is indeed for dialplan apps.&nbsp;<span class="Apple-style-span" style="color: rgb(0, 0, 0); -webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); ">SWITCH_ADD_API is for adding API commands that are executed from the CLI</span></span></div></blockquote>-MC</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span>Sent from my iPhone</div><div><br>On Apr 23, 2010, at 7:19 AM, Vitalii Colosov &lt;<a href="mailto:vetali100@gmail.com">vetali100@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>OK I think I found, need to use:&nbsp;<span class="Apple-style-span" style="font-family: monospace; font-size: medium; ">SWITCH_ADD_APP</span><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="font-size: medium;"><br>
</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="font-size: medium;">Thank you very much!!!</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="font-size: medium;"><br>
</span></font><br><div class="gmail_quote">2010/4/23 Vitalii Colosov <span dir="ltr">&lt;<a href="mailto:vetali100@gmail.com"><a href="mailto:vetali100@gmail.com">vetali100@gmail.com</a></a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks Mathieu,<div>This really helped!&nbsp;</div><div>I was able to get Hello World string during the module load :-)&nbsp;</div><div><br></div><div>Moving to the next step, how can I define an application, let say "skel_app" inside this module?</div>

<div>In order to be able to execute it from dialplan.</div><div><br></div><div>I thought the following does this:&nbsp;SWITCH_ADD_API(api_interface, "skel", "Skel API", skel_function, "syntax");</div>

<div>But when I executed "skel" from dialplan, I got error: "Invalid application skel".</div><div><br></div><div>Could you hint me please?</div><div class="im"><div><br></div><div>Thank you very much!</div>
<div><br></div>
<div>Vitalie</div><div><br></div></div><div><br><br><div class="gmail_quote">2010/4/23 Mathieu Rene <span dir="ltr">&lt;<a href="mailto:mrene_lists@avgs.ca" target="_blank"><a href="mailto:mrene_lists@avgs.ca">mrene_lists@avgs.ca</a></a>&gt;</span><div><div></div>
<div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
Look at mod_skel in src/mod/applications<br>
<br>
Mathieu Rene<br>
Avant-Garde Solutions Inc<br>
Office: + 1 (514) 664-1044 x100<br>
Cell: +1 (514) 664-1044 x200<br>
<a href="mailto:mrene@avgs.ca" target="_blank"><a href="mailto:mrene@avgs.ca">mrene@avgs.ca</a></a><br>
<div><div></div><div><br>
<br>
<br>
<br>
On 2010-04-23, at 6:43 AM, Vitalii Colosov wrote:<br>
<br>
&gt; Hi dear group,<br>
&gt;<br>
&gt; I would like to start writing plugins (applications) for FreeSWITCH that will be called from dialplan:<br>
&gt;<br>
&gt; &lt;action application="my_cool_application"...&gt;<br>
&gt;<br>
&gt; Could you please provide me some steps following which I will be able to create "helloworld" C/C++ application that will be called from dialplan?<br>
&gt;<br>
&gt; Or some link if this is already described somewhere... I tried to google but did not find that.<br>
&gt;<br>
&gt; Then, if I will create something useful, I will contribute it to the community with pleasure... :-)<br>
&gt;<br>
&gt; Thank you very much!<br>
&gt;<br>
&gt; Vitalie<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-dev mailing list<br>
&gt; <a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank"><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></a><br>
<a href="http://www.freeswitch.org" target="_blank"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></a><br>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-dev mailing list</span><br><span><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>