On 8/8/07, <b class="gmail_sendername">Mike</b> &lt;<a href="mailto:list@virtutel.ca">list@virtutel.ca</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;d be most thankful for some link to a page that shows how to write such a<br>function in Asterisk.</blockquote><div><br>There is a test application in the source tree (not built by default I believe), but it doesn&#39;t look like anyone has made an equivalent sample function.
<br><br>However, many of the functions in 1.4 are pretty simple, and would be a good jumping off point.&nbsp; Take func_sha1.c for example: 83 lines in the file, 4 functions and one macro.&nbsp; You could copy that and do the proper renaming to make MY_FUNKY_NEW_FUNC that does exactly what func_sha1 does (or alternatively, nothing by getting rid of the bulk of the sha1() function therein.
<br><br>How big it gets as you add whatever magic that function should perform is up to you of course.<br><br></div></div>-- <br>j.