Any new about this?<br><br>Thanks<br><br><div class="gmail_quote">On Thu, Mar 27, 2008 at 11:29 AM, equis software <<a href="mailto:equissoftware@gmail.com">equissoftware@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was trying to trap SIGHUP, but could be another signal because it didn't work.<br><br>I'm doing this<br>class MyScript():<br> def logsignal(self,signum, frame):<br> self.putCDR()<br><br> def run(self):<br>
signal.signal(signal.SIGHUP, self.logsignal)<br><br> def putCDR():<br> ....put my cdr in my db.....<br><br><br>I was tryin trap other signals to test this and work well<br><br>def run(self):<br>
signal.signal(signal.SIGALRM, self.logsignal)<br> signal.alarm(3)<br>
<br><br>Thanks a lot!<br><br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Wed, Mar 26, 2008 at 4:54 PM, Steve Edwards <<a href="mailto:asterisk.org@sedwards.com" target="_blank">asterisk.org@sedwards.com</a>> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
<div>On Wed, 26 Mar 2008, equis software wrote:<br>
<br>
> Hi!<br>
> I have some IVRs made in python.<br>
> If the caller hangup before the end of the script I canīt register in my<br>
> database the cdr.<br>
<br>
</div>From your description, I'm not sure exactly what you are asking, but 1 of<br>
these should solve your problem.<br>
<br>
1) Trap SIGHUP.<br>
<br>
2) Use the "h" extension.<br>
<br>
3) Use deadagi().<br>
<br>
Thanks in advance,<br>
------------------------------------------------------------------------<br>
<font color="#888888">Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000</font><br></div></div>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>
</blockquote></div><br>