search for: answeredtime

Displaying 20 results from an estimated 63 matches for "answeredtime".

2005 Jul 23
2
ASTCC gives me only the time, but no cost
I try to track down an error that causes that Astcc just reports the time, but not the costs. I could narrow the problem down into this sub routine: sub calccost() { my ($adjconn, $adjcost, $answeredtime, $increment) = @_; eval { my $adjtime = int(($answeredtime + $increment - 1) / $increment) * $increment }; my $cost; print STDERR "Adjusted time is $adjtime, cost is $adjcost with $adjconn fee\n"; eval { $cost = int($adjcost * $adjtime / 60) }; $cost += $adjconn; print STDERR "...
2010 May 03
1
BADTIME FOR ANSWEREDTIME
Hello, I saw that Asterisk don't calcultate fine the ANSWEREDTIME. I want that when ANSWEREDTIME =~ 5.6 become 6 and if =~10.3 become 10 because, now, if ANSEREDTIME =~ 15.9, it become 15! it isn't correct How can I have a rounded ANSWEREDTIME ? Where have I to manipulate the sources? thank you -- Francois -------------- next part -------------- A non-te...
2007 Feb 20
2
Help! How to get ANSWEREDTIME after DIAL a ZAP channel?
Dear all, I tried to make a call with extensions.conf. exten=> _00[1-9].,1,Dial(zap/g1/${EXTEN}) exten=> _00[1-9].,2,NoOP(ANSWEREDTIME=${ANSWEREDTIME}) exten=> _00[1-9].,102,Hangup But the 2 and 102 will not be executed. So I can get the correct answered time via 2. Is any idea about it? Is it the problem of my ZAP channel's configuration? My zapata.conf is as below: [channels] language=en context=default busydetect=n...
2008 Aug 21
3
After Dial execution, using DIALEDTIME, ANSWEREDTIME
Hi, I noticed that when dial terminates it does not return to the dialplan, and therefore can not execute any entry after Dial(). Is there any trick to overcome this limitation ? How I am supposed to handle the returned vales DIALEDTIME, ANSWEREDTIME if I can not execute anything after Dial()? I made a workaround with DeadAGI (below) but it is unreliable: if 2 calls end nearly at the same time I do not know to whom belongs the ANSWEREDTIME value : exten => h,1,DeadAGI(myagi.agi,0,${DIALEDTIME},${ANSWEREDTIME},00) Any comment...
2007 May 05
1
${ANSWEREDTIME} Broken on 1.2.13?
No matter what I do, ${ANSWEREDTIME} is always 0, even on the most simplest dial plan such as: Using Asterisk 1.2.13 exten => 77,1,Answer exten => 77,2,Playback(custom/dax/S300) ; one minute file exten => 77,3,Noop(${ANSWEREDTIME}) exten => 77,4,Hangup -- Executing Answer("SIP/5402-b7b45f58", "&quot...
2010 May 05
0
BAD ROUND TIME FOR ANSWEREDTIME
Hello, I saw that Asterisk don't calcultate fine the ANSWEREDTIME for me. I want that when ANSWEREDTIME =~ 5.6 become 6 and if ANSWEREDTIME= 10.3 become 10 because, now, if ANSWEREDTIME =~ 15.9, it become 15! it isn't correct I could manipulate the app_dial.c to have my own result. But do you think that my idea is correct because, If a call is 15.999999...
2007 Feb 20
0
Can't get ANSWEREDTIME after hangup using ZAP
Dear all, I tried to make a call with PHP AGI. $rc = execute_agi("EXEC DIAL ZAP/g1/$myphonenumber|60|rhHL(" . ($max_total_seconds * 1000) . ":60000:30000) "); $rc = execute_agi("GET VARIABLE ANSWEREDTIME "); And I can't get the answered time after caller hangup in this method. But if I use a SIP channel as below: $rc = execute_agi("EXEC DIAL SIP/$mysiptrunk/$myphonenumber|60|rhHL(" . ($max_total_seconds * 1000) . ":60000:30000) "); $rc = execute_agi("GET VARIABLE...
2008 Jan 30
1
Queue - ${ANSWEREDTIME}
How to make ${ANSWEREDTIME} to work with Queue, so when the user hangs up, I can calculate how much time the each call lasts? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080129/b6f36622/attachment.htm
2006 May 30
1
Asterisk::AGI and DIALEDTIME
Hi List, In one of my AGIs (using DeadAGI) I grab the answered time using: my $res = $agi->exec ("DIAL $dialstring"); my $answeredtime = $agi->get_variable ("ANSWEREDTIME"); However this information differs from what's written in the Master.csv file (which happens to be the correct value!) Any ideas why? I'm using asterisk 1.2.7.1 and the lastest asterisk-perl distrib. Cheers, Jean-Michel. -- Jean-Miche...
2014 Sep 17
1
${ANSWEREDTIME} returning null
Hi, I am initiating a call using call files. In 'h' extension I am trying to collect the value of ANSWEREDTIME variable but it is returning null. While It works fine when call is not generated using call files instead is generated from softphone. any idea what might be wrong? thanks Anurag Rana http://newbie42.blogspot.in/ -------------- next part -------------- An HTML attachment was scrubbed... URL: &...
2007 Aug 28
1
deadagi and billsec or answeredtime
Hello, I want to create php rate script and I'm using Deadagi. But I allways get billsec 0 , or nothing. Can you help me to solve this problem... My extension.conf: exten => _123,1,DeadAgi(rate.php) exten => _123,2,hangup And my simple test php script rate.php #!/usr/local/bin/php -q <?php include_once (dirname(__FILE__)."/phpagi.php"); $AGI = new AGI();
2017 Dec 26
4
Answered time on channel
...to notify an external system when a call was answered and when the call hung up. In both requests the start time needs to be the same. My Dialplan looks something like this: [outbound] Exten => _X.,1,Dial(SIP/${EXTEN}@1.1.1.1,,U(call-answer-from-carrier)) Exten => h,1,NoOp(ANSWERED_TIME: ${ANSWEREDTIME} >>> DIAL_TIME: ${DIALEDTIME} >>> HANGUP_TIME: ${EPOCH} >>> ANSWERED TIME ${MATH(${EPOCH}-${ANSWEREDTIME},int)}) [call-answer-from-carrier] Exten => s,1,Noop(CALL WAS ANSWERED AT ${EPOCH} Exten => s,n,Agi(some_script.py) Now in theory the hangup time of the call (...
2005 Oct 07
1
ASTCC -- semantic note of 'callstart' in cdrs?
...#39;callstart' column of the cdrs table should really be called 'callend': $dialstr = "IAX2/$res->{path}/$phone|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)"; $res = $AGI->exec("DIAL $dialstr"); $answeredtime = $AGI->get_variable("ANSWEREDTIME"); $dialstatus = $AGI->get_variable("DIALSTATUS"); $callstart = localtime(); return $dialstatus; No? Eric.
2006 Jun 20
1
AGI: Dial and Recording my own CDR
Hi folks -- I have a FastAGI Perl script running, handling calls. It works great. At one point I have a Dial() command. If the called party hangs up, Dial() returns 0, and when I call my own recordCdr() function using the channel variables ANSWEREDTIME, DIALEDTIME and DIALSTATUS, everything is fine. However, if the called party picks up, and then the dialing party hangs up Dial() returns -1, ANSWEREDTIME and DIALEDTIME == 0 (or something like that) and DIALSTATUS returns AGI::No Response. How do I make sure to get the right billing information...
2009 Aug 25
1
How to detect if the call is being answered by Voice Mail?
...->agi->set_variable("stat_vars","$call_id:$conv_id:$DocPhone"); my $response = $self->agi->exec("Dial","Local/$DocPhone\@$out_context/n|20|g"); my $CallStatus = $self->agi->get_variable("DIALSTATUS"); my $ANSWEREDTIME=$self->agi->get_variable("ANSWEREDTIME"); to_log($self, "Physician Call Status: $CallStatus; ANSWEREDTIME: $ANSWEREDTIME", 2); return 0; } Is this not the correct way to do this? Or Are there any other methods? Thanks Bharath B. Reddy Bynaga...
2010 Jul 08
1
AGI get full variable
Dear All, I have "get full variable" AGI call to get the ANSWEREDTIME channel variable. I have originated the call to one extension, once answered I have called DeadAGI to control the call. I have problem that after hangup the call AGI "GET FULL VARIABLE" returns -1 for ANSWEREDTIME channel variable. What is the problem? Where I made wrong. Please sugg...
2009 May 12
1
enum agi interesting problem
...foreach my $enum (@enums) { $dialstring = $enum . "|90|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)"; $res = $AGI->exec("DIAL $dialstring"); $answeredtime = $AGI->get_variable("ANSWEREDTIME"); $dialstatus = $AGI->get_variable("DIALSTATUS"); print LOGFILE "Dialstring: $dialstr DIALSTATUS: $dialstatus\n";...
2005 Jun 06
2
Variables and status problems in AGI application
...n has to be done by DTMF everything works fine. However when the user is authenticated directly from the sip phone, the channel variables seems to disappear. Trying to retrieve the channel status always returns -1 instead of the 6 that happens normally. It also seems to affected the DIALSTATUS and ANSWEREDTIME variables. The only difference in the program is that in the DTMF mode, commands are sent to to the AGI channel. Is there a reason why? ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
2017 Dec 27
3
Answered time on channel
...all > was answered and when the call hung up. In both requests the start time > needs to be the same. My Dialplan looks something like this: > > > [outbound] > Exten => _X.,1,Dial(SIP/${EXTEN}@1.1.1.1,,U(call-answer-from-carrier)) > > Exten => h,1,NoOp(ANSWERED_TIME: ${ANSWEREDTIME} >>> DIAL_TIME: > ${DIALEDTIME} >>> HANGUP_TIME: ${EPOCH} >>> ANSWERED TIME ${MATH(${EPOCH}-${ > ANSWEREDTIME},int)}) > > [call-answer-from-carrier] > Exten => s,1,Noop(CALL WAS ANSWERED AT ${EPOCH} > Exten => s,n,Agi(some_script.py) > > Now...
2008 Jan 08
4
Bugs??
...en asterisk restarted the hanged calls removed from CLI with very high duration which damaged our billing system and customers accounts goes in high negative. First I tried to get call info from asterisk mysql CDR using billsec field but the same result then I create PERL AGI to get duration from ?ANSWEREDTIME? and same result. Please have a look to the following URL which I put the result of ?show channel <channelname>? you can see the DIALSTATUS=CONGESTION but Elapsed Time: 20h54m16s which really strange and out of my mind to control such as call. http://www.emafone.net/bugs.html Please advice...