我想通过检查是否可以访问特定对等方来响应来电,并相应地拨打适当的号码。
目前我这样做了:
exten => 1200,1,Answer()
same => n,Set(reachable=${SHELL(asterisk -rx "sip show peers" | grep ^cedrich-phone.*OK)})
same => n,GotoIf($["${LEN(${reachable})}" = "0"]?extoffline)
same => n,Dial(SIP/cedrich-phone,20)
same => n(extoffline),Dial(SIP/another-phone,20,tr)
same => n,Hangup()
Run Code Online (Sandbox Code Playgroud)
你能告诉我这是否可以接受,是否可以通过使用最佳实践来改进?
我想使用 ssh 连接使用 Emacs 编辑远程文件。Emacs 23.2 的默认包可以吗?
如果可能,最好的方法是什么?是否可以从 Speedbar 中受益?甚至远程编译(C++ 环境)?