<?php
require('PHPAGI/phpagi-asmanager.php');
$callid = 'Somebody';
$asm = new AGI_AsteriskManager();
if($asm->connect())
{
$call = $asm->send_request('Originate',
array('Channel'=>"LOCAL/17165555555 at voicepulse",
'Context'=>'called_party_context',
'Exten'=>'899',
'Timeout' => '1000',
'Async'=>'1',
'MaxRetries' => '5',
'RetryTime' => '5',
'Priority'=>1,
'Callerid'=>$callid));
$asm->disconnect();
}
$channel = 'Local/[EMAIL PROTECTED]/1';
$exten = '';
$context = '';
$priority = '';
$application = 'Meetme';
$data = '500|qt|1234';
$timeout = '20000';
$callerid = '';
$variable = 'minutes=5';
$account = '';
$async = true;
$actionid = rand();
$asm->Originate($channel, $exten, $context, $priority, $application, $data,
$timeout, $callerid, $variable, $account, $async, $actionid);
?>
Can you try to add some parameters to zapata.conf before defining channel 3,4 cidsignalling = dtmf cidstart = polarity
install
festival festlex-cmu festlex-poslex festvox-kallpc16k libestools1.2 sgml-base
config /etc/asterisk/phpagi.conf
[phpagi]
debug=false???????????????????????????? ; enable debuging
error_handler=true????????????????????? ; use internal error handler
admin=manon@101g.com??????????? ; mail errors to
hostname=203.149.62.46????????? ; host name of this server
tempdir=/var/spool/asterisk/tmp/??????? ; temporary directory for storing temporary output
[asmanager]
server=localhost??????????????????????? ; server to connect to
port=5038?????????????????????????????? ; default manager port
username=admin????????? ; username for login
secret=pass???????????? ; password for login
[fastagi]
setuid=true???????????????????????????? ; drop privileges to owner of script
basedir=/usr/sharc/asterisk/agi-bin/??? ; path to script folder
[festival]????????????????????????????? ; text to speech engine
text2wave=/usr/bin/text2wave??????????? ; path to text2wave binary
[cepstral]????????????????????????????? ; alternate text to speech engine
swift=/opt/swift/bin/swift????????????? ; path to switft binary
voice=David???????????????????????????? ; default voice
!!working
asterisk-1.2.17/pbx.c:586:
#define AST_PBX_MAX_STACK? ? ? 4096
Channel: Local/026480698@from-provider
Context: from-provider
Application: TxFAX
Data: /usr/share/asterisk/fax/test.tif
MaxRetries: 3
RetryTime: 60
WaitTime: 30
Priority:1
put this code into? /var/spool/asterisk/outgoing
install gs
use command
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=tiffg4 -sOutputFile=fax_test.tif -f test.pdf
?
/usr/bin/gs -q -sDEVICE=tiffg3 -sPAPERSIZE=a4 -r204×196 -dNOPAUSE -sOutputFile=/var/spool/asterisk/outgoing/mydocument.tif — /var/spool/asterisk/outgoing/mydocument.pdf
Statistics