Displaying 20 results from an estimated 300 matches similar to: "PHP-AGI help"
2003 Nov 10
3
AGI and PHP
i've just spent the pass 2 days trying to get AGI to work with PHP;
i made a lot of silly mistakes along the way which could have been
avoided if only there were some kinda howto or samples. at the risk
of looking stupid, i decided to shared my experience in hopes that
it might help some newbie get going with PHP.
1. first order of business is to be aware of your php environment; i m
NOT
2005 Oct 12
3
AGI and set_callerid for number and name
Hi,
I've been trying to use the set_callerid function in the AGI. It sets
the CallerIDname properly but I can't figure out how to set the
CallerIDnumber.
Is it at at possible ?
Cheers.
SL
2005 Mar 27
6
pass caller ID to another application or machine.
I would like to have asterisk pass along the caller ID
phone number to a database server on a my local
network (the same network that the * server resides on
) so that our customer service app. can pull up
customer data automatially. Asterisk passes along
caller ID to the phones fine, can someone tell me how
to make it pass this info to my database server?
Any suggestions would be greatly
2005 Aug 04
1
Callback question
Hi,
I'm interested in a callback feature where I can dial my Asterisk, then
hangup and Asterisk will call me back and I can then place phone calls or
whatever I want to do. And also, if I've got voicemail I want Asterisk to
call me back as well. Are there any scripts for this available?
Any help would be apreciated!
Best regards,
Christian
2006 Nov 29
1
AGI PHP Issues (Not new to Asterisk but new to AGI)
Sorry to bother you all with what is probably a simple question.
I am attempting my first go at a simple AGI application using PHP (Getting
Asterisk to SAY PHONETIC ABC). I have dabbled with PHP but I am by no means
a professional standard developer.
My script seems to execute ok, and I can see asterisk playing the sounds but
my phone goes from ringing to busy, and I don't hear the
2005 Mar 05
1
SAY DIGITS problem
Hi,
I have a problem using AGI cmd "SAY DIGITS". For some reason I cannot
here any thing when the script got executed. However if I use the cmd
"SAY NUMBER" I can here * reading the number fine.
I am running asterisk-1.0.6 and below is my PHP script.
Help please.
- Natt
#!/usr/bin/php -q
<?php
ob_implicit_flush(true);
set_time_limit(10);
/*
2006 Nov 30
1
AGI PHP Issues (AGI script runs but phone hangs up too quickly)
Sorry to re-post this but I'm sure it's something simple that someone has
found before.
To summarise:
Dial plan answers the phone
AGI script executes
AGI debug in console show phonetics ABC - However no audio at all on the
phone and this step is less than 1 second.
Dial plan Busy
Phone hangs up.
Total time less than a second.
This is such a simple AGI script do I need
2003 Jul 07
5
Direct entry to your own voice mailbox
Hi,
There is any possibility to dial a specific extension and then enter in your
own mailbox (the one defined for that specific SIP phone) without asking for
the exxtension number but only for the password?
I want to be the same extension for all phones, not a specific one for each
of them.
It is possible to have a time stamp in the recorded message? I want to know
when the message has been
2019 Jul 23
4
Problems after upgrade Samba 4
Hi,
I upgraded my Samba 4.5.16 installed (by apt-get) on Debian 9.9 to Samba
4.10 through the Van Belle repository (apt.van-belle.nl).
apt-get install -t stretch-samba410 samba attr winbind libpam-winbind
libnss-winbind libpam-krb5 krb5-config krb5-user bind9 ctdb ldb-tools
smbldap-tools ufw glusterfs-common libcephfs1
The packages "bind9 ctdb ldb-tools smbldap-tools ufw glusterfs-common
2006 Dec 18
2
AGI Help Please
List,
I finally decided to break down & start playing with AGI scripts, but for
the life of me, I can't figure out what I am doing wrong.
Below is a super simple script to run a query in mysql to see how many call
records there are for the extension calling in, then print the total in the
CLI.
This is all I get on the CLI:
-- Executing AGI("SIP/216-0baa",
2003 Dec 29
1
Agent setup
Dear Group,
I have been successful in setting up the Agents, queues and getting agents
to log in.
Is there a way that I could configure the system so that the agent is called
back. i.e. the agent logs into the system, a call is destined for them and
their phone rings.
If some one has this setup I would be very interested in hearing from them.
Warm Regards and Thanks
---------------
Shad
2003 Sep 25
2
VoiceMailMain skipping extension and password prompting
I would like to access VoiceMailMain2 skipping extension and password
prompting if calling from a resource that has a mailbox defined. What
variables can I use to retrieve the calling channel & calling extension (if
it exists)?
Here is what I'm trying to accomplish (of course ${CallingResourse.MailBox}
is not a real way to retrieve this info)...
exten =>
2007 Feb 10
3
Dial out from AGI
I'm writing an AGI script and want it to dial a number on a channel
connected to the PSTN. It would look something like this (pseudo-code
follows):
if ($a){
dial("8005551212");
}else{
dial("8665550000");
}
The part I can't seem to get right is the "dial" function. I tried to
mimic the dial plan like so
sub dial($number){
print
2010 Jan 11
0
PHP-Script (AGI) doesn't finish after upgrading to 1.6.0.15
Hi,
I recently upgraded our asterisk server from some 1.4 version to version
1.6.0.15. From this point on my AGI scripts aren't working anymore, here
is a simple example:
[isdin]
exten => 83086921,1,AGI(test.php)
exten => 83086921,2,NOOP("MARKE1")
exten => 83086921,3,WAIT(2)
exten => 83086921,4,Hangup()
/var/lib/asterisk/agi-bin/test.php
2007 Aug 24
0
MYSQL problem and configuration
Hello,I am new to asterisk but i have vbeen scriptinh PHP SQL and webLanguages for a long time.I can Give you a solution but using php AGI:extensions.con-----> AGI(connect.agi);/var/lib/asterisk/agi-bin/connect.agi :#!/usr/bin/php -q<?phpset_time_limit(0);ob_implicit_flush();error_reporting(0);//Initialisation des entr?e-sortiefunction init() {#create file handles if
2007 Aug 13
1
Can't HANGUP call or channel on 1.4.9
I've isolated this problem the furthest that I can, and I'm now convinced this is a bug in asterisk.
I have a context in extensions.conf like so:
[my_context]
exten => _X.,1,AGI(my_agi|${EXTEN}|${CHANNEL})
exten => _X.,2,GOTO(my_other_context|${EXTEN}|1)
exten => h,1,DeadAGI(my_agi_cleanup)
For the purposes of this scenario, my_agi simply will try to HANGUP the channel to
2003 Nov 05
1
First AGI help..
I am trying to write my first AGI script..
I cant seem to get it to work.. I am trying PHP in preference (I know
this is frowned upon) but I can't get it to work with perl either.. I
guess I just don't understand it correctly..
All I am trying to do is get the script to make a call using "Dial" so
that I can get an idea of how it works.. My experience is really only in
PHP
2007 Dec 28
9
lost connection 2.0
I lost my "connection lost" error.. but now I''ve got a "Mysql::Error:
MySQL server has gone away" error..
It comes from:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in ''log''.
I''m not sure if Rails / BackgroundRb uses it .. but i''ve got the mysql
(2.7) gem
2009 Oct 23
7
cryptic vdev name from fmdump
This morning we got a fault management message from one of our production servers stating that a fault in one of our pools had been detected and fixed. Looking into the error using fmdump gives:
fmdump -v -u 90ea244e-1ea9-4bd6-d2be-e4e7a021f006
TIME UUID SUNW-MSG-ID
Oct 22 09:29:05.3448 90ea244e-1ea9-4bd6-d2be-e4e7a021f006 FMD-8000-4M Repaired
2017 Nov 03
4
Problemas con función factor to integer
Hola,
estoy teniendo problemas para conseguir que mi función haga lo que quiero. Necesito que coja los valores de la variable que le indico, le quite la letra que precede a dichos valores y los convierta en números enteros. Dejo un ejemplo de los datos que estoy tratando y de varias opciones de función con las que intento que funcione sin resultado.
#Ejemplo
>