Re: [asterisk-users] Passing call duration to an AGI Script

2007-06-03 Thread Adi Simon
Hi, What I did is first to dig a bit into the app_dial.c. I saw how the ANSWEREDTIME variable is created (end_time - answer_time). Then I added some lines to export the answer_time variable as a channel variable. I added these lines right after the answer_time decleration (line 1426 in ver

RE: [asterisk-users] Passing call duration to an AGI Script

2007-05-31 Thread Martin Smith
Hi Adi, AGI is probably best viewed like any other dialplan application (and with DeadAGI something that happens after, but anyway) -- in my opinion. I've seen people do some pretty wild stuff with it, but in the end, when I wonder if the Manager interface or AGI interface is most appropriate

Re: [asterisk-users] Passing call duration to an AGI Script

2007-05-31 Thread Adi Simon
Hi Martin, Thanks for your reply. Maybe I wasn't clear enough. I am already running AGI periodically inside a call and it runs just fine. I'm using a patch for asterisk (can be found here http://asterisk-backports.org/wiki/index.php/User_talk:KNK) to do so. In short i'm using it for a prepaid

Re: [asterisk-users] Passing call duration to an AGI Script

2007-05-31 Thread Luis Morales
Hi Adi, My be better if you send us the code about how did you do to catch and retrive the data from asterisk. Regards, Luis Morales On Fri, 2007-06-01 at 01:21 +0300, Adi Simon wrote: Hi Martin, Thanks for your reply. Maybe I wasn't clear enough. I am already running AGI periodically