Asterisk 開發筆記

    內容表格
    1. 1. AMI 測試

    文章條目

    AMI 測試

    檢查 /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. 
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core