文章條目
檢查 /etc/asterisk/manager.conf
[general] enabled = yes // 必須是 yes port = 5038 bindaddr = 0.0.0.0 [phpagi] // 帳號 secret = phpagi // 密碼 deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user
開啟記事本,將以下文字複製(Ctrl + C)
Action: Login Username: phpagi Secret: phpagi
在 Asterisk 主機上執行
#> telnet localhost 5038 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Asterisk Call Manager/1.3 Ctrl+V 貼上剛剛的文字,按兩次 Enter Response: Success Message: Authentication accepted 複製文字 Action: Logooff Ctrl + V 貼上,按兩次 Enter Response: Goodbye Message: Thanks for all the fish.
Images 0 | ||
---|---|---|
No images to display in the gallery. |