実現したいこと
「Asterisk::AGI」モジュールを使用し、番号「200」へダイヤルしたい
前提
perlを使用し「Asterisk::AGI」プロトコルで「200」番へダイヤルしたいと考えています。
しかし、うまく動作しません。
ダイヤル処理で止まってしまっているような状況です。
このような状況に心当たりある方がおりましたらお力をお貸し頂けないでしょうか。
発生している問題・エラーメッセージ
root@xxx:~# perl dial.pl
EXEC Dial "SIP/200"
該当のソースコード
#!/usr/bin/perl
use Asterisk::AGI;
use strict;
my $agi = new Asterisk::AGI;
my $number_to_call = '200'; # 発信したい電話番号
$agi->exec('Dial', "SIP/$number_to_call");
exit;
試したこと
上記コードをコマンドライン上で実施
公式サイトの確認
https://metacpan.org/pod/Asterisk::AGI
◆$AGI->exec($app, $options)
Executes AGI Command "EXEC $app "$options""
The most powerful AGI command. Executes the given application passing the given options.
Example: $AGI->exec('Dial', 'Zap/g2/8005551212');
Returns: -2 on failure to find application, or whatever the given application returns
補足情報(FW/ツールのバージョンなど)
Debian GNU/Linux 8 (jessie)
Asterisk 11.13.1
0 コメント