extension status using AMI

Report
Question

Why don't you use AMI? There's are phpami project if you google.
Sent from my iPhone On May 25, 2012, at 1:51 AM, Kamlesh Kumar wrote: > Hi,
>
> I'm using AMI to get the extension status but always get -1 i.e. extension not found.
>
> #!/usr/bin/php -q
> < ?php
> include_once ("phpagi-2.14/phpagi.php");
> include_once ("/phpagi-2.14/phpagi-asmanager.php");
> $agi = new AGI();
> $as = new AGI_AsteriskManager();
> $exten = $agi->request['agi_extension'];
> $as->connect("localhost", "user", "passwd");
> $status = $as->ExtensionState($exten,'context',1);
> $status1…

Asterisk Users 3.2 years ago 0 Answers

T.38 debug logs

Report
Question

On 05/24/2012 09:54 AM, Arstan wrote:
> Dear list,
> I have a project where I have:
>
> Asterisk 10 < -->AudioCodes < --> E1< --> Provider
>
> AudioCodes supports T.38 and passes the faxes through E1 to the
> provider. From what I read, Asterisk 10 has the most stable(full) T.38
> among other releases. Asterisk 10 has T.38 gateway support, but you won't be using it here
because your AudioCodes device will be performing that function. Outside
of gateway support, the T.38 functionality in Asterisk 1.8…

Asterisk Users 3.2 years ago 0 Answers

Call Record File and Play

Report
Question

Hello, I am trying to achieve call record file and play the file to the user using
phpagi script. I am using the following code $rand="/var/sounds/145712900"; $agi->record_file($rand, "gsm", "0123456789*#", -1, 0, true, 0); also tried $agi->record_file($rand, "wav", "0123456789*#", -1, 0, true, 0); the file is created in the directory but when I try to play the sound I get
the following error incase of gsm AGI Rx < < STREAM FILE /var/sounds/145712900 "" 0
[May 24 14:00:07] WARNING[22415][C-0000019c]: file.c:492 filehelper: File
/var/sounds/145712900.gsm detected to have zero size. and the following error incase of wav file…

Asterisk Users 3.2 years ago 1 Answer