git-svn-id: https://svn.code.sf.net/p/freetel/code@878 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 29 Oct 2012 02:02:06 +0000 (02:02 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 29 Oct 2012 02:02:06 +0000 (02:02 +0000)
mini-asterisk-gui2/todo 2012_10.txt

index 89fbcde6c7df76046ee66dbb22df405c389c04d7..9c4907fd59692d23827ec1d046b15e0cfd77a153 100644 (file)
@@ -80,6 +80,10 @@ Register command needs to be unique
 \r
 SetRegister.cgi   ?  with mini-asterisk\r
 \r
+       $ cat test.txt | sed 's/\(register=>\).*\( ; mini-asterisk\)/\1bob:superbob@192.168.1.3\2/'\r
+       register=>bob:superbob@192.168.1.3 ; mini-asterisk yada yada\r
+       ;register => 2345:password@sip_proxy/1234\r
+\r
 Register needs to be able to handle other manual register entries\r
 \r
 Or make a mod to set_line_ext.cgi with third arg (jazmin,sip,sip-nat)\r
@@ -89,4 +93,21 @@ Uncomment / comment sip provider as a cgi?
                                                                s/$this.*/$this$that/g\r
 [11:09:09 AM | Edited 11:10:06 AM] David Rowe:  s/(host=).*\w/$1trev/g\r
 [11:10:13 AM] David Rowe: host=mal\r
-[11:10:16 AM] David Rowe: host=trev
\ No newline at end of file
+[11:10:16 AM] David Rowe: host=trev\r
+\r
+\r
+hex codes as uniques?  hard to remember\r
+\r
+$ cat test.txt | sed 's/\(host=\)[a-z]*\(.*sip mini-asterisk.*\)/\1trev\2/'\r
+host=fred ; jazmin mini-asterisk\r
+host=trev ; sip mini-asterisk\r
+\r
+$ cat test.txt | sed 's/\(dtmfmod=\)[a-z0-9\.]*\(.*Jazmin mini-asterisk.*\)/\1trev\2/'\r
+host=192.168.1.28       ; Jazmin mini-asterisk do not remove this comment\r
+dtmfmod=trev         ; Jazmin mini-asterisk do not remove this comment\r
+\r
+debugging\r
+#!/bin/sh\r
+[12:05:07 PM] David Rowe: #!/bin/sh -x\r
+[12:05:16 PM] David Rowe:   sed -i "s/$this.*/$this$that/g" $file\r
+\r