search for: agi_uniqueid

Displaying 20 results from an estimated 54 matches for "agi_uniqueid".

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: ht...
2009 Apr 23
3
AGI PHP script
...$agivars = array(); while (!feof(STDIN)) { $agivar = trim(fgets(STDIN)); if ($agivar === '') { break; } $agivar = explode(':', $agivar); $agivars[$agivar[0]] = trim($agivar[1]); } extract($agivars); // Variable Declarations $agi_uniqueid; $agi_callerid; $agi_calleridname; $agi_extension; $agi_uniqueid; $UNIQUEID = $agi_uniqueid; $CALLERID = $agi_callerid; $EXTEN = $agi_extension; $attachment = "/var/lib/asterisk/sounds/NewHire/Newhire-$UNIQUEID-$CALLERID-$EXTEN.wav "; $from = "... at xxx.com"; $to =&q...
2009 May 04
3
AGI PHP
...$agivars = array(); while (!feof(STDIN)) { $agivar = trim(fgets(STDIN)); if ($agivar === '') { break; } $agivar = explode(':', $agivar); $agivars[$agivar[0]] = trim($agivar[1]); } extract($agivars); // Variable Declarations $agi_uniqueid; $agi_callerid; $agi_calleridname; $agi_extension; $agi_uniqueid; $UNIQUEID = $agi_uniqueid; $CALLERID = $agi_callerid; $CallerName = $agi_calleridname; $EXTEN = $agi_extension; $Q1 = "Did Not Answer"; $Q2 = "Did Not Answer"; $Q3 = "Did Not Answer"; $Q4 = &...
2009 Sep 09
1
UNIQUEID not the same in Dialplan as passed to AGI
...her than the one in the dial plan -- but sometimes it is also a second behind. Here's an example from the dialplan, with the corresponding argument passed to the AGI: -- Executing [s at macro-internal-call:7] NoOp("SIP/10.0.0.4-082a0658", "1252500374.334") in new stack agi_uniqueid: 1252500374.335 And here's an example where the UNIQUEID is one second and one fraction point behind: -- Executing [s at macro-internal-call:7] NoOp("SIP/10.0.0.4-0825ef60", "1252500762.337") in new stack agi_uniqueid: 1252500763.338 Any advice would be greatly appre...
2006 Jan 16
2
AGI variables
When I read variables in AGI scripts, I see only the follwing 13 variables agi_request agi_channel agi_language agi_type agi_uniqueid agi_callerid agi_dnid agi_rdnis agi_context agi_extension agi_priority agi_enhanced agi_accountcode beside these, I found following variables documented on several sites. agi_calleridname agi_callingpres agi_callingani2 agi_callington agi_callingtns Where can I find list of agi variables? than...
2006 May 15
1
GET DATA and STREAM FILE commands, don´t work
...xecuting AGI("SIP/8070-609b", "teste.bsh") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/teste.bsh AGI Tx >> agi_request: teste.bsh AGI Tx >> agi_channel: SIP/8070-609b AGI Tx >> agi_language: en AGI Tx >> agi_type: SIP AGI Tx >> agi_uniqueid: 1147466306.21 AGI Tx >> agi_callerid: 8070 AGI Tx >> agi_calleridname: Michely Germano AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: 2100 AGI Tx >> agi_rdnis: unk...
2007 May 14
3
Proper AGI use with MySQL
...uot;simple" AGI script that provides some IVR functionality. It connects to a MySQL database in order to create a call record and capture IVR data. During the IVR process, we need to store the time the call started, so basically we INSERT a new MySQL row with callstart = NOW(), uniqueid = AGI(agi_uniqueid). As the user selects different options, we update the row to reflect the user's selection. There are a couple of options within the IVR that allows the user to speak with a live customer service rep. So, in those cases, we do a AGI exec to Dial out to the customer service queue and transfer th...
2009 Feb 26
3
Getting SIP field P-Asserted-Identity from EAGI
Hi, using EAGI variables like agi_request agi_channel agi_language agi_type agi_uniqueid agi_callerid agi_dnid agi_rdnis agi_context agi_extension agi_priority agi_enhanced agi_accountcode I get a lot of data about a call, but I need to obtain P-Asserted-Identity value from a SIP call. Are tehe any eagi variable to get that? Or have you any solution?? Thanks!!! -------------- next...
2006 Jan 27
0
pb with callerid
...-- Launched AGI Script /var/lib/asterisk/agi-bin/test.php test.php: agi_request = test.php test.php: agi_channel = Zap/8-1 test.php: agi_language = fr test.php: agi_type = Zap test.php: agi_callerid = 611134024 test.php: agi_calleridname = unknown test.php: agi_dnid = 8489 test.php: agi_uniqueid = 1138355705.1362 test.php: agi_extension = 8489 test.php: agi_priority = 1 test.php: 2006-01-27 10:55:05 -- AGI Script Executing Application: (SetGlobalVar) Options: (NOM_CLIENT=DSOFT) == Setting global variable 'NOM_CLIENT' to 'DSOFT' test.php: FIN -- AGI Script...
2009 May 20
1
Queue and Dial operation - Common Variables?
...lement ACD using Asterisk 1.2.18 and I've chosen AgentCallbackLogin for login purpose. One AGI is written which will actually get executed when agent dials '1001' (say) from his SIP phone and enters into the queue. Second AGI gets executed when the Dial operation is performed. I see the agi_uniqueid obtained from both AGI instances are different and I can't really find a way to relate the pair. I need to perform some DB operations for agentlogin instance and dial instance. Is there a variable that is common for both instance or is there a way that I can pass variables across. My context an...
2009 Jan 16
0
No subject
...$agivars = array(); while (!feof(STDIN)) { $agivar = trim(fgets(STDIN)); if ($agivar === '') { break; } $agivar = explode(':', $agivar); $agivars[$agivar[0]] = trim($agivar[1]); } extract($agivars); // Variable Declarations $agi_uniqueid; $agi_callerid; $agi_calleridname; $agi_extension; $agi_uniqueid; $UNIQUEID = $agi_uniqueid; $CALLERID = $agi_callerid; $EXTEN = $agi_extension; $attachment = "/var/lib/asterisk/sounds/NewHire/Newhire-$UNIQUEID-$CALLERID-$EXTEN.wav"; $from = ". at xxx.com"; $to =&quot...
2009 Jan 16
0
No subject
...array(); while (!feof(STDIN)) { $agivar =3D trim(fgets(STDIN)); if ($agivar =3D=3D=3D '') { break; } $agivar =3D explode(':', $agivar); $agivars[$agivar[0]] =3D trim($agivar[1]); } extract($agivars); =20 // Variable Declarations =20 $agi_uniqueid; $agi_callerid; $agi_calleridname; $agi_extension; $agi_uniqueid; $UNIQUEID =3D $agi_uniqueid; $CALLERID =3D $agi_callerid; $EXTEN =3D $agi_extension; $attachment =3D "/var/lib/asterisk/sounds/NewHire/Newhire-$UNIQUEID-$CALLERID-$EXTEN.wav "; $from =3D "... at xxx.com";...
2006 Dec 12
1
AGI problema
...bsp;&nbsp;&nbsp; -- Launched AGI Script /usr/local/share/asterisk/agi-bin/dialer<br> AGI Tx >> agi_request: dialer<br> AGI Tx >> agi_channel: SIP/provale-7473<br> AGI Tx >> agi_language: br<br> AGI Tx >> agi_type: SIP<br> AGI Tx >> agi_uniqueid: 1165939032.131<br> AGI Tx >> agi_callerid: provale<br> AGI Tx >> agi_calleridname: Provale<br> AGI Tx >> agi_callingpres: 0<br> AGI Tx >> agi_callingani2: 0<br> AGI Tx >> agi_callington: 0<br> AGI Tx >> agi_callingtns: 0<br...
2008 Jan 27
1
[AGI 1.4] C sample?
...000-0904bee0", "check_cid.exe|123") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/check_cid.exe AGI Tx >> agi_request: check_cid.exe AGI Tx >> agi_channel: SIP/2000-0904bee0 AGI Tx >> agi_language: en AGI Tx >> agi_type: SIP AGI Tx >> agi_uniqueid: 1201412176.3 AGI Tx >> agi_callerid: 2000 AGI Tx >> agi_calleridname: Fred AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: 9999 AGI Tx >> agi_rdnis: unknown AGI Tx...
2008 Mar 24
2
Getting Exec Format Error when running AGI call
...I("SIP/2000-b640ba18", "sample.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/sample.agi AGI Tx >> agi_request: sample.agi AGI Tx >> agi_channel: SIP/2000-b640ba18 AGI Tx >> agi_language: en AGI Tx >> agi_type: SIP AGI Tx >> agi_uniqueid: 1206377474.53 AGI Tx >> agi_callerid: 2000 AGI Tx >> agi_calleridname: 2000 AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: 444 AGI Tx >> agi_rdnis: unknown AGI Tx...
2011 Feb 22
1
[1.4.39.1/AGI] ast_carefulwrite: write() returned error: Broken pipe
...s at from_fxo:3] AGI("DAHDI/1-1", "/var/tmp/test.lua") in new stack -- Launched AGI Script /var/tmp/test.lua AGI Tx >> agi_request: /var/tmp/test.lua AGI Tx >> agi_channel: DAHDI/1-1 AGI Tx >> agi_language: en AGI Tx >> agi_type: DAHDI AGI Tx >> agi_uniqueid: 1298367207.9 AGI Tx >> agi_callerid: 0177628460 AGI Tx >> agi_calleridname: unknown AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: unknown AGI Tx >> agi_rdnis: unk...
2012 Jan 12
1
how to set callerid in php AGI file.
...000026d3>AGI Tx >> agi_request: /home/virendra.bhati/outdial.php <SIP/2209-000026d3>AGI Tx >> agi_channel: SIP/2209-000026d3 <SIP/2209-000026d3>AGI Tx >> agi_language: en <SIP/2209-000026d3>AGI Tx >> agi_type: SIP <SIP/2209-000026d3>AGI Tx >> agi_uniqueid: 1326357644.10070 <SIP/2209-000026d3>AGI Tx >> agi_version: 1.6.2.20 <SIP/2209-000026d3>AGI Tx >> agi_callerid: 2209 <SIP/2209-000026d3>AGI Tx >> agi_calleridname: unknown <SIP/2209-000026d3>AGI Tx >> agi_callingpres: 0 <SIP/2209-000026d3>AGI Tx...
2011 Feb 24
1
missing argument on AGI
...ew stack 21:47:10] -- Launched AGI Script /var/lib/asterisk/agi-bin/getchannel.php 21:47:10]AGI Tx >> agi_request: getchannel.php 21:47:10]AGI Tx >> agi_channel: SIP/201-00000004 21:47:10]AGI Tx >> agi_language: en 21:47:10]AGI Tx >> agi_type: SIP 21:47:10]AGI Tx >> agi_uniqueid: 1298555228.12 21:47:10]AGI Tx >> agi_callerid: unknown 21:47:10]AGI Tx >> agi_calleridname: unknown 21:47:10]AGI Tx >> agi_callingpres: 0 21:47:10]AGI Tx >> agi_callingani2: 0 21:47:10]AGI Tx >> agi_callington: 0 21:47:10]AGI Tx >> agi_callingtns: 0 21:47:10]AGI...
2005 Oct 06
1
Fwd: ASTCC - INUSE Flag
...P/XXXXXXXXX-6cb1", "astcc.agi|XXXXXXXXX|XXXXXXXXXX|0") -- Launched AGI Script /var/lib/asterisk/agi-bin/astcc.agi AGI Tx >> agi_request: astcc.agi AGI Tx >> agi_channel: SIP/XXXXXXXXXX-6cb1 AGI Tx >> agi_language: br AGI Tx >> agi_type: SIP AGI Tx >> agi_uniqueid: 1128548232.15 AGI Tx >> agi_callerid: XXXXXXXXX AGI Tx >> agi_calleridname: XXXXXXXXXX AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: XXXXXXXXXXX AGI Tx >> agi_rdn...
2011 Feb 24
2
[1.4] Still can't get it to call back
...xo:1] DeadAGI("Zap/1-1", "/var/tmp/callback.lua|123456") in new stack -- Launched AGI Script /var/tmp/test7.lua AGI Tx >> agi_request: /var/tmp/test7.lua AGI Tx >> agi_channel: Zap/1-1 AGI Tx >> agi_language: en AGI Tx >> agi_type: Zap AGI Tx >> agi_uniqueid: 1298539792.116 AGI Tx >> agi_callerid: 123456 AGI Tx >> agi_calleridname: unknown AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: unknown AGI Tx >> agi_rdnis: unkno...