summaryrefslogtreecommitdiff
path: root/examples/test1.pl
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2009-05-24 17:02:36 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2009-05-24 17:02:36 +0300
commite07b80f91c00fcf5013fe2c7066008470d203d30 (patch)
tree184171ff1d0f2dfc0e2e1357b4a560d3b5ab7fe2 /examples/test1.pl
Importing Asterisk::config 0.96 from tarball
Diffstat (limited to 'examples/test1.pl')
-rwxr-xr-xexamples/test1.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/test1.pl b/examples/test1.pl
new file mode 100755
index 0000000..d8ec230
--- /dev/null
+++ b/examples/test1.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+use Data::Dumper;
+use lib '../lib';
+use Asterisk::config;
+
+my $rc = new Asterisk::config(file=>'sip.conf',keep_resource_array=>0);
+if ($rc) {
+ print "true";
+}
+print Dumper $rc;