similar to: Getting DIALSTATUS via agi

Displaying 20 results from an estimated 500 matches similar to: "Getting DIALSTATUS via agi"

2009 Aug 17
0
Call back DIALSTATUS is empty
Hi, Here is my problem. I am trying to get the Status of the call if the user picked up the phone or not. It is coming as empty. Please help. Here is my extensions_additional.conf file code: [multi-dir-callback] include => multi-dir-callback-custom exten => _X.,1,Answer exten => _X.,n,Playback(beep) exten =>
2005 May 17
0
Problem with getting the value of variable DIALSTATUS in AGI script
Hello. ???? ????????? ?????? ?? ?????, ??????? ??????, ??? ????????, ?????? ?? ???????????? ?????, ? ????? ???????? +?????????? ? ??????? ??????. I wrote a small perl script, that just calls to the specified number and then receives the information about +the status of the call. This script is below: #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input =
2004 Dec 03
2
DIALSTATUS weirdness (CHANUNAVAIL instead of BUSY, NOANSWER instead of CHANUNAVAIL)
Just throwing this out here, hopefully someone can tell me why. *CLI> show version Asterisk CVS-HEAD-11/17/04-10:16:38 built by root@wanderer on a i686 running Linux Zap/g1 is pri_cpe to Bell Canada 5551234 is a normal POTS line I have busied out (handset offhook) exten => 1234,1,Dial(Zap/g1/5551234,,g) exten => 1234,n,NoOp(HANGUPCAUSE is ${HANGUPCAUSE} and DIALSTATUS is
2018 Mar 14
2
DIALSTATUS vs HANGUPCAUSE
Thanks Dovid! Indeed looks a bug but regardless of this, this problem made me think that the HANGUPCAUSE could be used for this purpose with benefits. I couldn't find an explanation about when DIALSTATUS would actually be better. The HANGUPCAUSE was reworked in version 11 ( https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause) but I didn't find someone actually stating it is a better
2007 Aug 03
2
DIALSTATUS not set
I'm trying to write a dialplan that will allow me to "stress" test it. I want to be able to dial an extension, or pretend that the extension is busy or out of order (so that I can see what to do) given the dialplan snippet: [outbound] exten => _X.,1,NoOp(${TEST}) exten => _X.,n,Dial(SIP/${EXTEN}) exten => Busy,1,Busy(2) exten => Busy,n,Hangup() exten =>
2018 Mar 14
2
DIALSTATUS vs HANGUPCAUSE
Hello list, Hope all doing well! I've been checking some cases when a Dial fails and dialplan execution continues to handle this. I am finding it a little confusing how we should handle the DIALSTATUS and the HANGUPCAUSE in this situation.... More specifically, I am facing a case in version 13.6.0 where I am getting a DIALSTATUS=BUSY and HANGUPCAUSE=19 after receiving a 480 SIP error. Seems
2004 Dec 04
1
more DIALSTATUS/HANGUPSTATUS woes with IAX2
Phone - TDM430P - home* - IAX2 - office* - PRI - Telco I dial a busy number from the Phone. Home* shows this in the CLI: -- Executing Macro("Zap/1-1", "dial-wu|2922004") in new stack -- Executing Dial("Zap/1-1", "IAX2/andrew@wu-ast/2922004||g") in new stack -- Called andrew@wu-ast/2922004 -- Call accepted by wu-ast (format gsm) --
2005 Jan 21
0
Manager API on gives the DIALSTATUS of the first picked up channel?
Hi All! Let me explain the problem. When using the Originate? command from the manager api, the dialstatus variable returns results? for whichever phone picks up first, and in this case it is the IAX/2? connection. It doesn't matter if Zap/G2/XXXXXXX is set as the channel,? or an extension either. What I am ultimately trying to do is get the? dialstatus of the Zap/X/XXXXXXX channel, i.e.,
2017 Jun 07
2
Upgraded server crashes on voicemail storage
Thank you for your time. I've put my replies to your questions in-line, below. On Wednesday, June 07, 2017 10:19:41 AM Antony Stone wrote: > On Tuesday 06 June 2017 17:54:59 Mike Diehl wrote: > > > Hi all, > > > > I'm upgrading to Asterisk 13.14.0 x86_64. During my beta testing, I've > > discovered that my server crashes as soon as I leave a
2005 Jan 21
0
Help DIALSTATUS gives ANSWER when line is BUSY?
I'm running Asterisk CVS-v1-0-12/20/04. I'm using PHP with Manager API Here is the code: #################################################################### # Make call #################################################################### $socket = fsockopen($ask_db,"5038", $errno, $errstr, $timeout); if (!$socket) { echo "$errstr ($errno)<br /\n"; } else {
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
2005 Sep 15
3
${DIALSTATUS} problems
Hi. I'm dialling two numbers - one that's unobtainable, one that's busy. ${DIALSTATUS} is coming back ANSWER each time right before the channels hang up. Am using the following dialplan macro to dial out. [macro-advdial] exten => s,1,Dial(${ARG1},20,g) ; Ring the interface, 20 seconds maximum exten => s,2,Goto(s-${DIALSTATUS},1) ; Jump based on status
2004 Dec 28
0
Two problems with the Perl AGI
Hi, I have a * 1.0.3 running on a Gentoo box and I installed Perl AGi from http://asterisk.gnuinter.net/files/asterisk-perl-0.08.tar.gz. When I write this : >#!/usr/bin/perl >use Asterisk::AGI; >my $AGI = new Asterisk::AGI; >$AGI->exec ('Dial SIP/kphone1|30|tTr'); >my $duration = $AGI->get_variable('ANSWEREDTIME'); >print STDERR "\n duration :
2010 Aug 07
0
Set outgoing number in filename of the recordings
Hi, Im not able to set the outgoing number in filename for asterisk recordings Following is what I have done in /var/lib/asterisk/agi-bin/recordingcheck file . . . include("phpagi.php"); /**********************************************************************************************************************/ $agi = new AGI(); $temp = $agi->get_variable("agi_dnid") ;
2008 Mar 11
2
AGI - calling functions, CHANNEL STATUS broken?
Greetings, I am writing an AGI script that needs to check on the idle/busy status of a number of SIP peers (mostly SPA9xx phones, with a few Polycoms and Snoms thrown in for fun). Is it possible to call Asterisk functions (e.g. SIPPEER) from AGI scripts? Based on my Googling, I would guess in the negative. I have tried various permutations of Set() and Eval() without success. I have also
2011 Mar 05
2
Help Asterisk / API / Perl
Hi i want use the API on my asterisk 1.6, but i have a small problems : In extension, i start it : exten => _X.,3,AGI(My-Script.agi) The perl agi file are started without problems but i want get into this script a lot of variable: Type (SIP or IAX) src (from cdr) but that's don't work: use Asterisk::AGI; use lib "/var/lib/asterisk/agi-bin"; $AGI = new
2009 Apr 08
1
Perl AGI
Hi all, I have the below peace of my AGI script...the problem here is that I cannot fetch the extension value to inside the script and assign it to another variable...I highlighted it in red #!/usr/bin/perl #use DBD::mysql; use DBI; use DBD::mysql; use Asterisk::AGI; ############################ #To read asterisk variable values. $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse();
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 =
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
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 .