Here is an exert of my speed dial system that pulls a phone number from a
database, and then connects the caller.
$AGI-verbose(Record found in database.,3);
$AGI-exec('Playback','/var/lib/asterisk/agi-bin/speeddial/trsf-call');
my $stmnt = $db-prepare(select phone from phonebook where
;);
$stmnt-execute();
my $result = $stmnt-fetchrow_hashref();
my $phn = $result-{'phone'};
$AGI-verbose(Calling $phn);
$AGI-exec(Dial,SIP/+1$p...@outbound-sip-prov1);
$stmnt-finish();
$db-disconnect();
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of David
Cunningham
Sent: Monday, January 11, 2010 9:20 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to use AGI php script function $agi -
exec_dial
You might find this helpful:
http://www.voip-info.org/wiki/view/Asterisk+AGI+php
Regards,
On Mon, Jan 11, 2010 at 2:19 AM, Zhang Shukun bit...@gmail.com wrote:
hi,
i want to use $agi - exec_dial() to dial .
this is in extention.conf
[tutorial]
exten = 1234,1,Dial(SIP/ivan)
is that i use
$agi - exec_dial(SIP,tutorial|1234|1)
can dial ?
BTW, i want to know some turorial on how to use PHPAGI funtions? can
you tell me some?
Thanks!
--
Best regards,
Sucan
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
David Cunningham
Voisonics Limited
IVR development, VOIP consultancy
http://voisonics.com/
US toll-free: +1 888 842 2720
UK: +44 (0) 20 3411 5024
Australia: +61 (0) 2 9037 2180
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users