Archive for the ‘Asterisk’ Category

php-agi originate


<?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);

?>

  • Comments Off

CallerID returned with error

Can you try to add some parameters to zapata.conf before defining channel 3,4

cidsignalling = dtmf
cidstart = polarity
  • Comments Off

phpagi text2wav install

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

  • Comments Off

voiceone pbx max stack fix

asterisk-1.2.17/pbx.c:586:
#define AST_PBX_MAX_STACK? ? ? 4096

  • Comments Off

Asterisk send fax auto

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

  • Comments Off

convert pdt to tiff

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

  • Comments Off

Time

Mp3

Msn status

  • manon2029@hotmail.com is

Chat with Meeh

Donate

    If you find an article useful, then please make a donation.

หมวดหมู่

UserOnline

Counter

  • Visitors today: 55
  • Visitors yesterday: 111
  • Visitors per day: 199
  • Max. visitors per day: 255
  • Total page views: 167,770
  • Page views of this page: 199
  • Currently online: 1
  • Max. online: 36
  • Total visitors: 36,334
  • counterStatistics