Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] AGI-python script


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
equissoftware at gmail...
Guest





PostPosted: Thu Mar 27, 2008 9:29 am    Post subject: [asterisk-users] AGI-python script Reply with quote

I was trying to trap SIGHUP, but could be another signal because it didn't
work.

I'm doing this
class MyScript():
def logsignal(self,signum, frame):
self.putCDR()

def run(self):
signal.signal(signal.SIGHUP, self.logsignal)

def putCDR():
....put my cdr in my db.....
I was tryin trap other signals to test this and work well

def run(self):
signal.signal(signal.SIGALRM, self.logsignal)
signal.alarm(3)


Thanks a lot!


On Wed, Mar 26, 2008 at 4:54 PM, Steve Edwards <asterisk.org at sedwards.com>
wrote:

Quote:
On Wed, 26 Mar 2008, equis software wrote:

Quote:
Hi!
I have some IVRs made in python.
If the caller hangup before the end of the script I can?t register in my
database the cdr.

From your description, I'm not sure exactly what you are asking, but 1 of
these should solve your problem.

1) Trap SIGHUP.

2) Use the "h" extension.

3) Use deadagi().

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080327/13cc09bb/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services