はじめての方へTrixbox CE2.6IP電話機IP電話サービスPHPAGI参考情報導入事例紹介
トップページ >PHPAGI >phpagiの関数一覧

PHPAGI

phpagiの関数一覧

Trixbox CE2.6をインストールした状態での、
/var/lib/asterisk/agi-bin/phpagi.php
の関数一覧をまとめてみました。

answer()

channel_status($channel='')

database_del($family, $key)

database_deltree($family, $keytree='')

database_get($family, $key)

database_put($family, $key, $value)

exec($application, $options)

get_data($filename, $timeout=NULL, $max_digits=NULL)

get_variable($variable)

hangup($channel='')

noop()

receive_char($timeout=-1)

record_file($file, $format, $escape_digits='', $timeout=-1, $offset=NULL, $beep=false, $silence=NULL)

say_digits($digits, $escape_digits='')

say_number($number, $escape_digits='')

say_phonetic($text, $escape_digits='')

say_time($time=NULL, $escape_digits='')

send_image($image)

send_text($text)

set_autohangup($time=0)

set_callerid($cid)

set_context($context)

set_extension($extension)

set_music($enabled=true, $class='')

set_priority($priority)

set_variable($variable, $value)

stream_file($filename, $escape_digits='', $offset=0)

tdd_mode($setting)

verbose($message, $level=1)

wait_for_digit($timeout=-1)

exec_absolutetimeout($seconds=0)

exec_agi($command, $args)

exec_setaccountcode($accountcode)

exec_setlanguage($language='en')

exec_sipaddheader($header, $value)

set_alertinfo($value)

exec_enumlookup($exten)

exec_dial($type, $identifier, $timeout=NULL, $options=NULL, $url=NULL)

exec_goto($a, $b=NULL, $c=NULL)

fastpass_say_digits(&$buffer, $digits, $escape_digits='')

fastpass_say_number(&$buffer, $number, $escape_digits='')

fastpass_say_phonetic(&$buffer, $text, $escape_digits='')

fastpass_say_time(&$buffer, $time=NULL, $escape_digits='')

fastpass_stream_file(&$buffer, $filename, $escape_digits='', $offset=0)

fastpass_text2wav(&$buffer, $text, $escape_digits='', $frequency=8000)

fastpass_swift(&$buffer, $text, $escape_digits='', $frequency=8000, $voice=NULL)

fastpass_say_punctuation(&$buffer, $text, $escape_digits='', $frequency=8000)

fastpass_get_data(&$buffer, $filename, $timeout=NULL, $max_digits=NULL)

menu($choices, $timeout=2000)

goto($context, $extension='s', $priority=1)

parse_callerid($callerid=NULL)

text2wav($text, $escape_digits='', $frequency=8000)

swift($text, $escape_digits='', $frequency=8000, $voice=NULL)

text_input($mode='NUMERIC')

say_punctuation($text, $escape_digits='', $frequency=8000)

&new_AsteriskManager()

evaluate($command)

conlog($str, $vbl=1)

which($cmd, $checkpath=NULL)

make_folder($folder, $perms=0755)

phpagi_error_handler($level, $message, $file, $line, $context)