<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Why not simply use call files? Or have a small external perl script that queries your mysql table and generate call files when call request appears? I use that for dialer projects and it works great and you do not need to modify the asterisk code ;-)<div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>---<br>Andre Courchesne - Consultant<br><a href="http://www.net-forces.com/">http://www.net-forces.com</a><br>MSN: <a href="mailto:courchea@net-forces.com">courchea@net-forces.com</a><br>Skype: VoipForces<br><br><br><br>L'information contenue dans le présent document est la propriété de Andre Courchesne. Et est divulguée en toute confidentialité. Cette information ne doit pas être utilisée, divulguée à d'autres personnes ou reproduite sans le consentement écrit explicite de Andre Courchesne.<br><br>The information contained in this document is confidential and property of Andre Courchesne. It shall not be used, disclosed to others or reproduced without the express written consent of Andre Courchesne.</div></span>
</div>
<br><div><div>On 2011-09-27, at 1:34 PM, Tilghman Lesher wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Tuesday, September 27, 2011 08:46:11 AM Nick Khamis wrote:<br><blockquote type="cite">Hello Everyone,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am interested in the internal working of Asterisk, mainly how<br></blockquote><blockquote type="cite">asterisk actually makes a call. I was looking to modify the call<br></blockquote><blockquote type="cite">functionality to<br></blockquote><blockquote type="cite">query a database realtime for the call details. As is done with<br></blockquote><blockquote type="cite">peer/friend register, MOH etc... Out of the box, does asterisk use<br></blockquote><blockquote type="cite">call files to<br></blockquote><blockquote type="cite">make the calls? Any direction is greatly appreciated. If I am<br></blockquote><blockquote type="cite">successful in moving the call details to my/pgsql, I have no problem<br></blockquote><blockquote type="cite">sharing my<br></blockquote><blockquote type="cite">solution with everyone.<br></blockquote><blockquote type="cite">Providing "realtime call" will open a whole lot of possibilities for<br></blockquote><blockquote type="cite">those not wanting to use AGI, AMI etc..<br></blockquote><br>Realtime currently uses an outside request to know when to pull<br>information from the database. Realtime is not self-starting. Keeping<br>this in mind, how would Asterisk know when a new record was inserted<br>asynchronously into the database, to know when to query it? Are you<br>suggesting a new thread that does nothing but query the database on<br>a regular interval? That's potentially quite a lot of CPU.<br><br>-- <br>Tilghman<br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></div></blockquote></div><br></div></body></html>