\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
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