From: horse69 Date: Mon, 29 Oct 2012 02:02:06 +0000 (+0000) Subject: git-svn-id: https://svn.code.sf.net/p/freetel/code@878 01035d8c-6547-0410-b346-abe4f9... X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=aca3fdca1bfa7a0fd78bd845880e879a2168114b;p=freetel-svn-tracking.git git-svn-id: https://svn.code.sf.net/p/freetel/code@878 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/mini-asterisk-gui2/todo 2012_10.txt b/mini-asterisk-gui2/todo 2012_10.txt index 89fbcde6..9c4907fd 100644 --- a/mini-asterisk-gui2/todo 2012_10.txt +++ b/mini-asterisk-gui2/todo 2012_10.txt @@ -80,6 +80,10 @@ Register command needs to be unique SetRegister.cgi ? with mini-asterisk + $ cat test.txt | sed 's/\(register=>\).*\( ; mini-asterisk\)/\1bob:superbob@192.168.1.3\2/' + register=>bob:superbob@192.168.1.3 ; mini-asterisk yada yada + ;register => 2345:password@sip_proxy/1234 + Register needs to be able to handle other manual register entries Or make a mod to set_line_ext.cgi with third arg (jazmin,sip,sip-nat) @@ -89,4 +93,21 @@ Uncomment / comment sip provider as a cgi? s/$this.*/$this$that/g [11:09:09 AM | Edited 11:10:06 AM] David Rowe: s/(host=).*\w/$1trev/g [11:10:13 AM] David Rowe: host=mal -[11:10:16 AM] David Rowe: host=trev \ No newline at end of file +[11:10:16 AM] David Rowe: host=trev + + +hex codes as uniques? hard to remember + +$ cat test.txt | sed 's/\(host=\)[a-z]*\(.*sip mini-asterisk.*\)/\1trev\2/' +host=fred ; jazmin mini-asterisk +host=trev ; sip mini-asterisk + +$ cat test.txt | sed 's/\(dtmfmod=\)[a-z0-9\.]*\(.*Jazmin mini-asterisk.*\)/\1trev\2/' +host=192.168.1.28 ; Jazmin mini-asterisk do not remove this comment +dtmfmod=trev ; Jazmin mini-asterisk do not remove this comment + +debugging +#!/bin/sh +[12:05:07 PM] David Rowe: #!/bin/sh -x +[12:05:16 PM] David Rowe: sed -i "s/$this.*/$this$that/g" $file +