search for: set_vari

Displaying 20 results from an estimated 28 matches for "set_vari".

Did you mean: set_var
2005 Apr 09
3
CallerID name lookup AGI script
...; s,3,Dial(${PHONES},30,r) exten => s,4,Answer exten => s,5,Wait(2) exten => s,6,Voicemail(u3001) exten => s,7,Hangup And here's the script: #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; $number = $ARGV[0]; if ($number =~ m/(800|888|877|866)\d{7}/) { $AGI->set_variable('googlename', "\"TollFree Caller\""); exit 0; } open(RESULTS, "/usr/bin/curl -s -m 2 -A Mozilla/4.0 http://www.google.com/search ?q=phonebook:$number |"); while (<RESULTS>) { if (m/Residential Phonebook/) { $reverse = 1; @fields = split(...
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
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...set a somewhat sane default size diff --git a/vivified/ui/main.c b/vivified/ui/main.c index 617e317..fe4b35c 100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -67,6 +67,7 @@ setup (const char *filename, const char vivi_application_set_filename (app, filename); vivi_application_set_variables (app, variables); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); + gtk_window_set_default_size (GTK_WINDOW (window), 400, 450); g_signal_connect_swapped (app, "notify::quit", G_CALLBACK (gtk_widget_destroy), window); g_signal_connect (app, "notify::filename", G_CA...
2014 Sep 23
2
read digits from the user through php agi script
hi everyone, actually i want to release an IVR system using PHPAGI API , in this IVR i want to get value from the user. I already used get_data defined in phpagi but they are not able to get the value given by the user and store it in a php variable. i tested this : $result = $agi->get_data('beep', 3000, 20); $keys = $result['result']; but every time i found in $keys variable
2009 Aug 25
1
How to detect if the call is being answered by Voice Mail?
...my ($self, $con, $PhysicianPhone, $call_id, $conv_id) = (@_); to_log($self, "Inside Dial Physician", 2); my $DocPhone = "1". $PhysicianPhone; to_log($self, "Values: $DocPhone, $call_id, $conv_id", 2); $self->agi->set_variable("STATE","NEXT"); $self->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...
2010 Apr 04
1
[OT] phpagi help
...exit(0); } $r = $agi->database_get("blacklist", "$cidnum"); if ($r["result"] == 1) { $agi->verbose("Call blocked by blacklist."); $agi->exec('Set','CDR(userfield)="Blocked call by blacklist"'); $agi->set_variable("PHONESPAMFILTER", "2"); } else { exit(0); } Any ideas ? I have tried searching and looked at some examples and my syntax looks correct ? -- Thanks, Phil
2011 Jan 07
1
AGI->Macro w/Agruments
...ars? https://issues.asterisk.org/view.php?id=2470 I found this email in the archive, but no solution other then the dodgy work around? http://www.mail-archive.com/asterisk-users at lists.digium.com/msg85048.html I have tried this, but it doesn't work. $AGI->set_variable('DAILNO', $BranchPhone); $AGI->exec("Macro","agidial"); And my macro: [macro-agidial] exten => s,1,AGI(getcid.pl,${CALLERID(NUM)},1) exten => s,2,NoOp(DIALNO=${DIALNO}) exten => s,3,Dial(SIP/${DIALNO}@SIPPROVIDER,60) exten => s,...
2007 Feb 08
2
problem with asterisk AGI
I have a fairly complicated setup. Extensions (1,2 and 3). In 3 - I execute AGI in java which plays few wav files depending on external parameters. Can I have a dial plan inside my AGI? If not, how do I accomodate user who needs to reach extension 2 from my agi? I have tried stream file and get data but the two commands did not work at all.
2005 Oct 13
1
AGI Variable problem
...IDNum. #!/usr/bin/php -q <?php include("/var/lib/asterisk/agi-bin/phpagi.php"); $agi = new AGI(); $ID = $agi->get_variable("SIPUSER"); if ($ID['result'] == 0) { $agi->verbose("SIPUSER not set -- nothing to do"); exit(1); } $agi->set_variable("MSN", exec("/var/lib/asterisk/agi-bin/msn4sip 111 222 333 " .$ID['data'])); ?> Output from asterisk: -- Executing SetVar("SIP/31-79e2", "SIPUSER=31") in new stack -- Executing AGI("SIP/31-79e2", "msn4sip.agi") in n...
2012 Jan 12
1
how to set callerid in php AGI file.
...l $agi-> answer(); $agi->verbose("------------------------------------------"); $agi-> exec('Set',"CALLERID(num)=01133200274"); $ani = $agi->request['agi_callerid']; $agi->noop("My CalleID: <<<<<<<=".$ani); $agi->set_variable("CALLERID(num)","01133200274"); $ani = $agi->request['agi_callerid']; $agi->noop("My CalleID: <<<<<<<=".$ani); $agi-> exec('Dial',"SIP/00918885268942 at sip.trunk.gradwell.com,60,r"); //$agi-> exec('Di...
2010 Jul 27
2
Urgent help = RUBY & AGI
...Here is a script: 1.times do r = $agi.exec('DIAL', SIP/voipuser&Zap/32&Zap/33&Zap/34&Zap/35) r = $agi.get_variable('DIALSTATUS') # $agi.set_variable(' WHOANSWERED ',...) retry if r.message.include?('BUSY') end when it's executed it shows this in the console: AGI Rx << ANSWER AGI Tx >> 200 result=0 AGI Rx << EXEC DIAL SIP/v...
2006 Feb 26
11
Asterisk question
Any idea how to read an external file, grab some stuff and push it back into an Asterisk variable? I can do it the other way with: system(echo "${UNIQUEID} =>" >> /home/ast/curr_calls) but I'm a bit stumped on how to go the other way around.... much thanks, Paul Hales
2008 Jan 12
2
Perl-AGI process
Hi All, i have created one prepaid PERL AGI script to integrate asterisk users in our current Oracle Billing System. I am using $AGI->exec('Dial', $dialstr); in script after getting the MAX time out for the priticular call. But when the channels increase on my asterisk more than 50-60 asterisk get crashed and i am suspecting the cause is of AGI Script. because when i check ps on
2007 Jun 15
2
combining AGI with dialplans
On 2007-05-15 Tony Mountifield wrote (wrt using AGI scripts to dial out): > Can't comment on this one, as I never use AGI to dial. > My AGIs just set the context, extension and priority, > and exit to the dialplan to do any dialling. (http://article.gmane.org/gmane.comp.telephony.pbx.asterisk.user/185537) I would like to do this, but I am having trouble figuring out how. I have
2011 Apr 09
1
asterisk-users Digest, Vol 81, Issue 27
...t;vipkilla at gmail.com> wrote: >> >> Wow, thanks, that worked... >> in case anyone is interested this is what i did.... >> >> [voicemail] >> exten => a,1,VoiceMailMain(${MAILBOXID}@${MAILBOXCONTEXT},p) >> >> in AGI... >> >> $AGI->set_variable("MAILBOXID", $options); >> $AGI->set_variable("MAILBOXCONTEXT","4"); >> $AGI->set_context("voicemail"); >> $AGI->exec("VoiceMail", $options); >> >> now the question is how to I get the VoiceMailMain to not...
2007 Aug 09
1
generating a GUID
I have a need to have a GUID (for example, bcd47ccc-d7c9-ddb6-dc11-6746a770d77d [36 characters long including the "-"]) generated in the dialplan. Is there any asterisk function that would do this ? I would prefer not to have to shell out every time a call comes in. Julian
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
2018 Feb 20
2
Modifying CDR values from a hangup extension in Asterisk 13
...bles; > } else if (it_cdr->party_b.snapshot > && !strcasecmp(channel_name, it_cdr->party_b.snapshot->name)) > { > headp = &it_cdr->party_b.variables; > } > if (headp) { > set_variable(headp, name, value); > } > } > } > ao2_iterator_destroy(it_cdrs); > > Currently, the fact that the CDR is in the finalized state is what > prevents that value from being updated on CDRs that are effectively > "closed." > > Now,...
2005 Sep 23
3
Removing "-" (Dash) from Dialed Numbers
I am trying to enable dial-by-email by using LDAPget to query an Active Directory server. I've got it retrieving the phone number fine. Unforunately, the numbers stored in active directory are either in the format: (xxx) xxx-xxxx or xxx-xxx-xxxx. Is there any way to parse characters out of the dialed phone number so that I only end up with digits (remove spaces, parenthesis and dashes)?
2005 Jan 02
1
Call Queue Question
Hi, I've been fussing with this for a while now - and cannot seem to get it to work correctly - or rather as I desire it.. I'm trying to implement a 'find-me' feature in my voicemail. Basically - pressing 1 at the voicemail puts the caller into a queue. The members of the queue are my cell phone and my work DID.. I need the queue to call both numbers at the same time and wait