From e07b80f91c00fcf5013fe2c7066008470d203d30 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 24 May 2009 17:02:36 +0300 Subject: Importing Asterisk::config 0.96 from tarball --- t/read.t | 12 ++++++++++++ t/test.conf | 25 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 t/read.t create mode 100755 t/test.conf (limited to 't') diff --git a/t/read.t b/t/read.t new file mode 100755 index 0000000..b267b9a --- /dev/null +++ b/t/read.t @@ -0,0 +1,12 @@ +#make sample read test +use strict; +use Test; + +use lib '../lib'; + +BEGIN { plan tests => 1 } + +use Asterisk::config; + +my $sip_conf = new Asterisk::config(file=>'t/test.conf'); +ok($sip_conf); diff --git a/t/test.conf b/t/test.conf new file mode 100755 index 0000000..1cfbf94 --- /dev/null +++ b/t/test.conf @@ -0,0 +1,25 @@ +key=value + +thisis=>unsection + +[general] +useragent=hoowa +disallow=all +allow=g729 +allow=>g723 #comment +allow=ulaw +#include classsip.conf + +[usera] +type=friend;saying +secret=thisone +host=>dynamic + +[trunka] +type=friend +host=192.168.0.1 + +#include branchsip.conf + +[tempsection] +delete=me -- cgit v1.2.3