few mods after testing on sip.conf
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 30 Oct 2012 04:17:37 +0000 (04:17 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 30 Oct 2012 04:17:37 +0000 (04:17 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@897 01035d8c-6547-0410-b346-abe4f91aad63

mini-asterisk-gui2/cgi-bin/setlinekey2.cgi

index 735fb236698ce03dc5e49f6308a9881d8fa22143..773207d2e555e78fcbd97aee27c5a584c0e05174 100755 (executable)
@@ -37,7 +37,7 @@ echo $that
 echo $key
 if [ -f $file ]; then
   # to debug remove -i (write results to file), it will then just print results
-  perl -i -pe "s/($this)[a-z0-9\.]*(.*$key.*)/$this$that\$2/" $file
+  perl -pe "s/($this)[A-Za-z0-9\.\<\>]*(.*$key.*)/$this$that\$2/" $file
 else
   echo "$file does not exist"
 fi