Hi all<div><br></div><div>i write this list because i&#39;m a new asterisk developer</div><div>and i have a project to add some features to asterisk</div><div><br></div><div>for outbound calls</div><div>we have to add a verification before DIAL to OUTSIDE</div>
<div>and add a verification before CDR to DB</div><div><br></div><div>for build modules there are not too much info.i already read</div><div><br></div><div><a href="http://www.russellbryant.net/blog/2008/06/19/how-to-write-an-asterisk-module-part-1/" target="_blank" style>http://www.russellbryant.net/blog/2008/06/19/how-to-write-an-asterisk-module-part-1/</a><br style>
<a href="http://www.russellbryant.net/blog/2008/06/20/how-to-write-an-asterisk-module-part-2/" target="_blank" style>http://www.russellbryant.net/blog/2008/06/20/how-to-write-an-asterisk-module-part-2/</a><br style><a href="http://www.russellbryant.net/blog/2008/06/30/how-to-write-an-asterisk-module-part-3/" target="_blank" style>http://www.russellbryant.net/blog/2008/06/30/how-to-write-an-asterisk-module-part-3/</a>
</div><div><br></div><div>very explicatory posts.</div><div><br></div><div>but i have some questios hope you can help me to answer.</div><div><br></div><div>How can i add some featuers before DIAL ?</div><div>due the R Bryllyant posts i need to manage handlers and add my own handler.</div>
<div><br></div><div>suppouse i build a gus_call_handler();</div><div><br></div><div>I was wondering how asterisk know when to apply my custom handler?</div><div>we want to add some features before DIAL, so how the mdule must be build? </div>
<div>to apply the verification before the DIAL</div><div>which handlers  must need to use.</div><div><br></div><div>We want to add a module with these 2 features,  before DIAL</div><div>and before CDR or after CDR, no matthers</div>
<div><br></div><div>I know i can modify the  </div><div>current code to add this features over the actual c sources, </div><div>but want to add this features like  module.</div><div><br></div><div>I take as example the add_on CDR.</div>
<div><br></div><div>if is not installed, the asterisk simply don&#39;t&#39; record cdr</div><div>if is installed , automatically start recording CDR&#39;s into a DB</div><div><br></div><div>this is what i want, install the module and add features to asterisk, not to</div>
<div>recompile all again.</div><div><br></div><div>thanks in advance for help.</div><div><br></div><div>Gustavo Villegas</div><div><br></div><div><br></div><div><br></div>