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

Optware, Asterisk and Shibby Tomato

Discussion in 'Tomato Firmware' started by Rich Schmidt, Sep 15, 2013.

  1. Rich Schmidt

    Rich Schmidt Reformed Router Member

    Hi Everyone,

    I've been running SHibby Tomato on a few routers over the years and have always had great results.
    I've run the Shibby builds on Linksys WRT54GL and Asus RT-N16 models and recently the Belkin N600 C7D8301.

    Recently I installed optware via a 16G USB stick and Asterisk and have a functional home PBX system with Cisco 7940s running SIP images. It's fantastic...but have a slight problem...

    Anytime I put a call on hold, Asterisk crashes. I've troubleshot it to comment out music on hold and it no longer crashes and I am able to put calls on hold without loosing the call sue to an Asterisk crash.

    I would like music on hold and IVR to work on this system.

    Today I loaded Shibby's "extras" package, which I assumed would load the needed sound modules to support MOH and IVR. I loaded the extra modules via "run after mount" in the USB section.

    Same result, Asterisk always crashes. I don't believe it to be an Asterisk problem, but a Tomato install issue.

    Does anyone have this working?

    Please tell me which Tomato build you are using where this works?

    Are there any specific instructions on the "extras" addition to Shibby Tomato that could possibly correct this?

    Thanks in advance!

    Rich
     
  2. koitsu

    koitsu Network Guru Member

    Consider deleting your entire Optware installation (needed since parts of it conflict with Entware and will cause you a lot of grief) and install Entware instead. There are asterisk packages that may be more up-to-date and better maintained on Entware.

    Code:
    root@gw:/tmp/home/root# opkg list | awk '/^asterisk/ { print $1 }'
    asterisk-gui
    asterisk18
    asterisk18-app-alarmreceiver
    asterisk18-app-authenticate
    asterisk18-app-chanisavail
    asterisk18-app-chanspy
    asterisk18-app-directed-pickup
    asterisk18-app-disa
    asterisk18-app-exec
    asterisk18-app-minivm
    asterisk18-app-mixmonitor
    asterisk18-app-originate
    asterisk18-app-playtones
    asterisk18-app-read
    asterisk18-app-readexten
    asterisk18-app-record
    asterisk18-app-sayunixtime
    asterisk18-app-senddtmf
    asterisk18-app-setcallerid
    asterisk18-app-sms
    asterisk18-app-stack
    asterisk18-app-system
    asterisk18-app-talkdetect
    asterisk18-app-verbose
    asterisk18-app-waituntil
    asterisk18-app-while
    asterisk18-chan-agent
    asterisk18-chan-dongle
    asterisk18-chan-gtalk
    asterisk18-chan-iax2
    asterisk18-chan-local
    asterisk18-chan-mgcp
    asterisk18-chan-mobile
    asterisk18-chan-sccp-b
    asterisk18-chan-skinny
    asterisk18-codec-a-mu
    asterisk18-codec-alaw
    asterisk18-codec-g722
    asterisk18-codec-g726
    asterisk18-curl
    asterisk18-format-g726
    asterisk18-format-g729
    asterisk18-format-sln
    asterisk18-format-sln16
    asterisk18-func-blacklist
    asterisk18-func-channel
    asterisk18-func-cut
    asterisk18-func-db
    asterisk18-func-devstate
    asterisk18-func-extstate
    asterisk18-func-global
    asterisk18-func-shell
    asterisk18-func-uri
    asterisk18-func-vmcount
    asterisk18-mysql
    asterisk18-odbc
    asterisk18-pbx-ael
    asterisk18-pbx-spool
    asterisk18-res-ael-share
    asterisk18-res-agi
    asterisk18-res-clioriginate
    asterisk18-res-crypto
    asterisk18-res-fax
    asterisk18-res-fax-spandsp
    asterisk18-res-musiconhold
    asterisk18-res-srtp
    asterisk18-res-timing-pthread
    asterisk18-res-timing-timerfd
    asterisk18-sounds
    asterisk18-voicemail
    
    I cannot help past this point.
     
  3. Rich Schmidt

    Rich Schmidt Reformed Router Member

    I need a tftp server (not available in DNSMasq) and have been also running tftpd-hpa as well as lighttpd to serve files for the Cisco 7940 phones...so I would need that as well.

    Before I start over...again, are you running Shibby Tomato or some other build with entware? and does this work?

    This is painful...it's a shame because it works well on Tomato without the MOH and IVR features.

    The raspberry pi with Asterisk is starting to look a whole lot better...but I prefer not to have an extra device running.

    thanks for your help,
    Rich
     
  4. koitsu

    koitsu Network Guru Member

    All the Entware packages are available here in case you want to see how thorough the list is: http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/

    tftpd-hpa is clearly available, as is lighttpd and many of its modules.

    I run tomato-K26USB-1.28.0502.8MIPSR2Toastman-RT-N-Ext.trx on my Asus RT-N16 (a.k.a. "Toastman builds") because that's what I choose to run; I do not play favourites when it comes to different Tomato firmwares nor will I get into a discussion about that.

    I do not run Asterisk, but it's a very popular package as I'm sure you can see by searching this forum.

    I use Entware for some third-party development tools/packages to assist people and developers in various ways. Entware will work regardless of whose firmware build you choose to run. You just have to make sure to completely/entirely delete your Optware installation first (many people rm -fr but forget to delete some hidden dotfiles, profile setups, and other whatnots first then later encounter problems). Entware is designed to be segregated in this regard, i.e. it will not conflict with the "base Tomato system" in any way, does not replace or overwrite libraries/etc. and is actively maintained (one of the developers resides and is very active on this forum).

    Just remember if you run into problems with Asterisk as a piece of software, and you can rule out that it's not a third-party firmware/package issue, then you should report those issues to the Asterisk folks.
     
  5. Rich Schmidt

    Rich Schmidt Reformed Router Member

    Thanks. I appreciate your comments and advice but I really need to hear from someone running Asterisk on Tomato.

    Does anyone here have Asterisk running on Tomato?

    Does music on hold work?

    Which build of Tomato are your running? Version?
    Did you load extra kernel modules?
    Are you using optware or entware?
    Which version of Asterisk are you running?

    Rich
     
    Last edited: Sep 16, 2013
  6. crai

    crai LI Guru Member

    Hi Rich,
    sorry for my english.
    I have an Asterisk 1.6 running flawlessly in my home office since 2010 in a Linksys WRT54G-TM with Tomato and SD Card.
    The newer versions (from 1.8.19 and 11.x) does not work with iax phones.
    I am testing 1.8.24 from entware in a tomatoUSB and seems to work ok.

    Carlos
     

Share This Page