1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Asterisk GUI Installation

Discussion in 'Tomato Firmware' started by subz3ro, Aug 27, 2012.

  1. subz3ro

    subz3ro Networkin' Nut Member

  2. ryzhov_al

    ryzhov_al Networkin' Nut Member

    Asterisk GUI includes only some static html-files and some shell-scripts, there is nothing to compile here^)
    1) Fire up web-server (even busybox_httpd fits),
    2) Edit some paths in shell scripts.
    3) Put Asterisk GUI files to www root folder.
    That it.
     
  3. subz3ro

    subz3ro Networkin' Nut Member

    Thanks ryzhov for the reply. I can install a webserver. Could you please guide me about the shell scripts and where i can find the Asterisk GUI files. Regards
     
  4. ryzhov_al

    ryzhov_al Networkin' Nut Member

    Uhh, it's easier to add asterisk-gui package then explain all this things^)

    The Asterisk already got a minimalistic web server, me may use it. We need to:
    1) Install packages:
    Code:
    $ opkg install asterisk18 asterisk-gui asterisk18-app-system asterisk18-chan-local
    2) Edit two configs like README says:
    Code:
    $ cat /opt/etc/asterisk/http.conf
    [general]
    enabled = yes
    enablestatic = yes
     
    $ cat /opt/etc/asterisk/manager.conf
    ...
    [general]
    enabled = yes
    webenabled = yes
    ...
    [admin]
    secret = P@ssw0rd
    read = system,call,log,verbose,command,agent,config,read,write,originate
    write = system,call,log,verbose,command,agent,config,read,write,originate
    3. Run Asterisk and logon to page:
    Code:
    http://myrouter:8088/static/config/index.html
    with admin/P@ssw0rd credentials.
     
    rule0 likes this.
  5. subz3ro

    subz3ro Networkin' Nut Member

    hey ryzhov, I have tried to install asterisk gui & I got this error

    root@unknown:/opt/etc/asterisk# opkg install asterisk18 asterisk-gui asterisk18-
    app-system asterisk-chan-local
    Package asterisk18 (1.8.10.1-1) installed in root is up to date.
    Unknown package 'asterisk-gui'.
    Package asterisk18-app-system (1.8.10.1-1) installed in root is up to date.
    Unknown package 'asterisk-chan-local'.
    Collected errors:
    * opkg_install_cmd: Cannot install package asterisk-gui.
    * opkg_install_cmd: Cannot install package asterisk-chan-local.

    I cant find any http.conf in my /opt/etc/asterisk folder either. Perhaps I have to install more packages ?
     
  6. ryzhov_al

    ryzhov_al Networkin' Nut Member

    Code:
    $ opkg update
    So create it.
     
  7. subz3ro

    subz3ro Networkin' Nut Member

    Thanks it worked !!
     
  8. crashnburn

    crashnburn LI Guru Member

    Do share the details of your Setup :) - Router, VoIP, ATA etc.
     
  9. arakhm

    arakhm Networkin' Nut Member

    I've followed this tutorial and is able to see gui on Linksys E4200 with Tomato Firmware v1.28.0500 MIPSR2Toastman-RT-N K26 USB VLAN-VPN. But I can't save any config through it (tried different browsers). When I follow troubleshooting in the mentionned README (http://downloads.asterisk.org/pub/telephony/asterisk-gui/README-2.1.0-rc1) I got the error:
    chown: unknown user/group asterisk:asterisk
    What's wrong?​
     
  10. arakhm

    arakhm Networkin' Nut Member

    Eventually I got the fault "Checking write permission for gui folder" and no access to GUI. I've googled, have tried different ways to change permissions to different folders but with no luck.
    Please share your succesful experience with Asterisk GUI
     
  11. arakhm

    arakhm Networkin' Nut Member

    It works perfectly. Could somebody add the asterisk-cdr package to the entware repo?
     
  12. _NemO_

    _NemO_ Networkin' Nut Member

    arakhm
    How do you get working config saving through GUI?
     
  13. kthaddock

    kthaddock Network Guru Member

     
  14. _NemO_

    _NemO_ Networkin' Nut Member

    kthaddock
    Hmm.. What package do I need? I installed asterisk18 asterisk-gui asterisk18-app-system asterisk18-chan-local from here http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/
    I've got working asterisk and asterisk -GUI, but GUI doesn't save changes (added trunks, added users, etc.).
    I can't understand what do I wrong and what I need to do..
     
  15. kthaddock

    kthaddock Network Guru Member

    Check your file permissions so they are read-write-x, eg chmode. easyiest way to do it with WinScp
     
  16. _NemO_

    _NemO_ Networkin' Nut Member

    I did it.
    I made an experiment. GUI -> File editor -> New file
    [​IMG]
    Then I added new Context and filled it with random data, than pushed save. The file is created, the Context is present, BUT: no any data in this Context.
    [​IMG]

    So, GUI has write permissions.
     
  17. arakhm

    arakhm Networkin' Nut Member

    I did nothing special to get it working. Just make sure that you created empty files extensions.conf, users.conf before you start gui. The similar for other settings: firstly check the existence of the appropriate .conf file
     
  18. _NemO_

    _NemO_ Networkin' Nut Member

    I'll try. What other files possibly do I need?
     
  19. arakhm

    arakhm Networkin' Nut Member

    It depends of the applications/modules you're going to use. Usually those apps create the examples of .conf files during installation but sometimes it's missed.
     

Share This Page