similar to: Asterisk::AGI and DIALEDTIME

Displaying 20 results from an estimated 1000 matches similar to: "Asterisk::AGI and DIALEDTIME"

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
2009 May 12
1
enum agi interesting problem
Hi, I am having a strange problem with enum and AGI. Here is what happens: I have in my agi something like that: foreach my $resolver ("e164.arpa", "e164.info", "e164.org") { my @enums = get_enums($phone, $resolver); foreach my $enum (@enums) { $dialstring = $enum .
2005 Oct 07
1
ASTCC -- semantic note of 'callstart' in cdrs?
Looking at the code, it would appear that the '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 =
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,
2017 Dec 26
4
Answered time on channel
Hi, I have a dial plan where I need 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}
2005 Oct 17
1
astcc missing to bill random calls?
Hello list, I just came into a strange problem wth astcc. the trouble is astcc.agi does not bill some calls. The calls are logged in the cdr-csv/Master.csv file, but with a duration of 0, billsec of 0, an empty dstchannel, and with a lastapp field of "hangup". I suppose that astcc.agi was not able to get the answeredime variable from the SIP channel... I have added a few functions to
2007 Sep 17
1
Problem with asterisk-perl-0.08 and Asterisk >= 1.2.20
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've been using for a long time asterisk-perl-0.08 for prepaid card applications, and I've identified a problem with the last releases of asterisk-1.2, installed with Trixbox. The command get_variable() raises a signal SIGPIPE when it is called (whatever the variable to get). I made tests with Asterisk 1.2.20, 1.2.21 and 1.2.22, and I
2017 Dec 27
3
Answered time on channel
It seems that what ever I set in my answer handler does not show up in the hangup handler. In order to do billing I can't rely on the g option where the caller hangs up the call. Looks like I can either use h or a hangup handler along with the shared function. On Tue, Dec 26, 2017 at 4:40 PM, Eric Wieling <ewieling at nyigc.com> wrote: > Don't use an 'h' extension, use
2006 Jan 12
3
Asterisk Prepaid Solution
Hi All, Any solution on how I can implement prepaid billing on asterisk? But not the calling card type, just a simple Custome rwill buy credit, consume then buy again. Also, is there a solution for that when you combine asterisk with ser? Regards, Ronald
2006 Mar 21
3
PSTN to Asterisk VOIP in Manila
Hi list, Does anyone know the legalities of connecting an Asterisk box to the PSTN in Manila or where I can find this info out? I know it is illegal in some countries. thanks -Matt
2005 May 30
0
perl agi : get_variable problem
Hi, I'm developping some AGI in perl (5.8.6) on i386 using Asterisk 1.0.5. I want to get some variables such as DIALSTATUS and ANSWEREDTIME after a $AGI->exec("Dial", "dial_string"); but here is what i get actually: DIALSTATUS= DIALEDTIME=ANSWER ANSWEREDTIME=18 I searched the archives and saw that $AGI->verbose could mess the access to variables, but I don't use
2005 Aug 12
3
Announcement to called party
I am trying to send an announcement to the called party using the A(x) parameter in Dial, however, the message is not being played. There is a pause between the Dial command being executed and the call being connected to the calling party of the same length as the announcement .gsm file, but the message itself is not being played. (I have tried this and timed it with different announcement files).
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
2009 Feb 18
1
Accumulated call time
Hi All, Asterisk 1.4.12 CentOS 5 My ISP account includes nearly 500 minutes of VOIP calls per month but the service is expensive for unbundled minutes. So I'm trying to find a way to keep an accumulated total of calls made through that trunk so that I can automatically switch to a lower-cost provider when my bundled minutes are used. The plan is to store the accumulated time in AstDB and
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-text attachment was scrubbed...
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:
2006 May 31
5
Asterisk crashes at startup
Hi List, Yesterday night after a power off due to a faulty UPS my asterisk doesn't want to start anymore. Here is what I get on the CLI: Asterisk Ready. *CLI> Disconnected from Asterisk server: Bad file descriptor. Executing last minute cleanups == Destroying musiconhold processes Asterisk uncleanly ending (0). I use 1.2.7 I think on a debian sarge and cdr_pgsql too. Any ideas?
2015 Feb 22
2
dialplan contexts syntax and terminology
I'm looking into the dialplan specifics: tleilax:~ # tleilax:~ # cat /etc/asterisk/extensions.conf [general] static=yes writeprotect=no [globals] CONSOLE=Console/dsp ; Console interface for demo TRUNK=DAHDI/r1 ; Trunk interface TRUNKX=DAHDI/r2 ; 2nd trunk interface TRUNKIAX=IAX2/ASTtest1:test at 10.10.10.16:4569 ; IAX trunk
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", "") in new stack -- Executing
2006 Apr 26
3
astcc: need partial pin code
I have not used astcc with pin codes so far, since I set-up the phone number as card number. Some of my users want now to dial in to the system and than use their card, which is their phone number. For that I would need a way of authentication, like a pin. I want to use something like: What is your card number: <user keys in the number> Enter your pin: <user enter a long pin>