similar to: AGI Transfer?

Displaying 20 results from an estimated 10000 matches similar to: "AGI Transfer?"

2006 Jan 06
3
transfer application
I am having trouble understanding how to use this. I want to transfer certain incoming calls from an IAX ITSP based on caller ID. From what I can make of the docs, I thought I need to do something like this... exten => _NXXNXXXXXX,n(nocid),transfer(1000) exten => _NXXNXXXXXX,n,noop(boo,${TRANSFERSTATUS}) exten => _NXXNXXXXXX,n,hangup exten =>
2009 May 05
4
AMI + AGI for outbound click to dial
Hey Gang, Trying to figure out how I can do the following (have each part working individually but drawing a blank on combining) 1) click on-screen which sends an AMI originate (works fine) 2) the originated call is to an internal extension that looks up the number to be dialed (works) 3) then via Perl, adding in a SIPAddHeader for answer-after=0.. (works separate from the above) What I
2020 Jan 24
4
Perl AGI: read variable with quotes
Hi Gang I have stumbled of this problem. I need the P-Asserted-Identity header in an AGI scrip. In the Dial-Plan I do: same => n,Set(PAI=${PJSIP_HEADER(read,P-Asserted-Identity)}) In the AGI I do: my $pai = $AGI->get_variable(PAI); This works fine, unless the PAI contains quotes: P-Asserted-Identity: <sip:1000 at 1.2.3.4:5060;user=phone> I get "<sip:1000 at
2009 Jun 04
2
broken pipe in perl agi
Hi gang, Since I'm getting no joy from device_Status or SIPPEER in 1.4.26-rc1, I thought I would do an AGI to read my hints and check for line in use that way. The AGI works fine from a prompt, but returns the dreaded "utils.c:966 ast_carefulwrite: write() returned error: Broken pipe" when I try to run it from the dialplan. Here is my dialplan snippet;
2010 May 11
4
AGI and Severe Weather Alerts
All, I am toying with an idea of using an AGI to be able to 'call' my phone, or phones, in case of severe weather warnings. I have been tinkering with a script that reads from weather underground for the forecast, based off a PHP version of a weather AGI I found on the net. It seems rather trivial to have the AGI as a script, that does nothing unless a condition is met, and
2013 Mar 14
1
AGI
Hi everybody, Does any one knows how to place a call from a shell agi? I guess is something like echo Exec Dial(DAHDI/g2/2010,,W). Algo how i get the dnid variable? Thanks.
2010 Jul 30
2
agi macro problem
I am trying this approach to see who picked the line: Here is what i am doing: EXEC DIAL SIP/ vaso &Zap/35||M(testing^30086) Macro: [macro-testing] exten => s,1,DumpChan() exten => s,2,AGI(whopicked.rb) exten => s,3,Hangup()
2019 Apr 10
7
Forking AGI or GoSub
I have an AGI that can sometimes take time complete. I don't want the dialplan to be held up by the agi. Is there any way to call it and have Asterisk continue with the dialplan? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190410/4c704231/attachment.html>
2006 Mar 16
4
New one on me: How to UN-transfer
I'm using a Snom 320 in a CAP position and the receptionist wants to do blind transfers. OK, no problem so far. Now she has asked me how to UN-transfer a call, as in, she transfers a call and wants to hook the call back before it connects (she wanted to tell the caller additional information for example) I don't think that this is possible as once my dialplan starts using Dial()
2009 Sep 08
2
1.2 AGI Deadlock
I am running 1.2.34 (also tried on 1.2.32) and whenever I launch an AGI, I get the "avoided deadlock" message below. *CLI> == Spawn extension (CONTEXT3, 6080, 8) exited non-zero on 'SIP/3211-1-081c40a8' -- Executing NoOp("SIP/3211-1-081c40a8", "") in new stack -- Executing AGI("SIP/3211-1-081c40a8", "diallocal.agi") in new
2013 Mar 06
2
AGI Script
> > Hi every body, > > Please if some one could help me with this: > I'm writing an AGU Perl Script which basically makes a call using an extension provided by other asterisk box to an E1. The asterisk version is 1.6.0.28, so it hasn't the Wellington know AGI class. The code is as follows: > > ============================= > #!/usr/bin/perl > use strict; >
2011 Feb 19
4
AGI script dies after receivefax
Hi all, I've got a perl agi script that exec()'s the FFA version of receivefax to... receive a fax. However, after the fax is received, the script seems to die. This is what I have: $main::agi->exec("receivefax","/tmp/${$}.tiff|fs"); $main::agi->verbose("FAX COMPLETE",1); I never see the "FAX COMPLETE" message on the console, I've set
2007 Dec 04
1
Explain AGI and AMI
Hi, Can anyone explain the difference between Asterisk Gateway Interface and Asterisk Management Interface ? Is it correct to consider AGI scope to focus on call handling and AMI scope to anything which can be done with Asterisk froma loading new modules to originating calls ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Feb 11
1
Asterisk perl AGI confusing variables
Hello all, I'm struck with a very strange problem today. I've an AGI with some code subroutine snippet as follows: sub enable_sbc($) { my $carrier = shift; my $tmp = substr($carrier,1); my $jkh = $tmp; $server_port = $ast_agi->get_variable("SIPPEER($jkh,port)"); $ser_ip = $ast_agi->get_variable("SIPPEER($tmp,ip)");
2007 Dec 07
2
PHP AGI script
I've got a very nice PHP AGI script but I want to be able to do some database cleanup when the user hangs up the phone. I wish everyone would hang up when they were suposed to, but some people don't. So what does Asterisk send to an AGI file when the line has been disconnected? If I remember reading somewhere correctly, I don't need to use DeadAGI. Instead I'm able to use
2010 Aug 11
2
channel variables in AGI
Hello, How to take the values of channel variables like 'agi_uniqueid' and 'agi_callerid' in agi script. For example #!/bin/bash -x T="$agi_uniqueid" I want to save value of 'agi_uniqueid' channel variable into a variable called 'T' in my script -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Dec 14
1
AGI with PHP
Hi All, I'm having problems getting results from a PHP file. This is what the CLI is showing. -- Executing [111 at internal:1] AGI("Console/dsp", "GoTalk.php") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/GoTalk.php [Dec 14 11:57:25] ERROR[20260]: utils.c:1019 ast_carefulwrite: write() returned error: Broken pipe If I run the PHP file from
2008 Mar 23
6
Access rights between AGI and Web server?
Hello I run AGI scripts from extensions.conf to save data into an SQLite database file, but this file must also be accessible in read-write mode by PHP scripts served by Lighttpd. As far as I can tell, Asterisk runs by default as root:wheel. I don't know if AGI scripts also run as root:wheel. Lighttpd runs as www:www, and if I create a new SQLite database through PHP scripts, they're
2016 Jan 06
2
No joy with my first AGI Python script
It's very simple but it doesn't work. Here's the entire script. #! /usr/bin/python import sys env = {} def comm(cmd): sys.stdout.write(cmd.strip() + '\n') sys.stdout.flush() return sys.stdin.readline().strip() while 1: line = sys.stdin.readline().strip() if line == '': break key,data = line.split(':') if key[:4] == 'agi_':
2010 Jun 30
2
Pbx_lua vs. calling lua thru AGI?
Hello I'm taking a look at how to write scripts to be called from the dialplan, and saw pbx_lua mentioned. I'd like to know more about this feature, such as what the difference is with just calling the Lua interpreter through AGI (same difference as between php-cgi and mod_php?), whether it's production-ready, etc. Thank you for any help.