diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-05-24 17:02:36 +0300 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-05-24 17:02:36 +0300 |
commit | e07b80f91c00fcf5013fe2c7066008470d203d30 (patch) | |
tree | 184171ff1d0f2dfc0e2e1357b4a560d3b5ab7fe2 /examples/test6.pl |
Importing Asterisk::config 0.96 from tarball
Diffstat (limited to 'examples/test6.pl')
-rwxr-xr-x | examples/test6.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/test6.pl b/examples/test6.pl new file mode 100755 index 0000000..c14d0ab --- /dev/null +++ b/examples/test6.pl @@ -0,0 +1,12 @@ +#!/usr/bin/perl -w +use Data::Dumper; +use lib '../lib'; +use Asterisk::config; + +my $rc = new Asterisk::config(file=>'exten.conf',keep_resource_array=>0); + +$rc->assign_delkey(section=>'mytest',key=>'exten',value_regexp=>'201',value=>'201,2,Hangup()'); + +# new_file can save data to newfile +$rc->save_file(new_file=>'new_exten.conf'); + |