Asterisk on OpenWRT part 2 March 10. 2005
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
I have a WRT54 GS 1.1, running the experimental build openwrt (13th March, 2.4.29 Kernel) but on this version of openwrt, Asterisk's SIP interface fails to initialise :o(, stating IP address cannot obtained. Also, to get Asterisk-cvs running from Brian Capouch's packages you need the postgress libraries installed as Brian uses Postgress as the database for the call accouting system. If anyone has solution to the SIP problem, please let me know :o)
You have to have the hostname/IP of the WRT in /etc/hosts if you intend to use SIP. That has been true for some time.
The res_config_pgsql.so module requires the Postgres library, indeed, but if you specify that it not be loaded in modules.conf, it will run even without them.
The res_config_pgsql.so module requires the Postgres library, indeed, but if you specify that it not be loaded in modules.conf, it will run even without them.
Thanks Brian 
I sort of cheated with my sip issue with asterisk on openwrt. Rather than binding to all interfaces bind = 0.0.0.0, specifing the internal IP brought up the interface. As you suggested, IP address etc. were in the /etc/hosts file. However thanks for the postgress module tip. Searched for it but obviously like the SIP problem, missed it due to lack of sleep
Cheers
Les
I sort of cheated with my sip issue with asterisk on openwrt. Rather than binding to all interfaces bind = 0.0.0.0, specifing the internal IP brought up the interface. As you suggested, IP address etc. were in the /etc/hosts file. However thanks for the postgress module tip. Searched for it but obviously like the SIP problem, missed it due to lack of sleep
Cheers
Les
I have one WRTP54G (2 voice ports). Can I use these 2 local voice ports] in OpenWRT+Asterisk to make and receive calls from local TELCO ???
Thanks,
Evandro
http://evandro.net/
http://evandro.net/poker/
http://www.poker-regras.com/
Thanks,
Evandro
http://evandro.net/
http://evandro.net/poker/
http://www.poker-regras.com/
First off, is there a better forum for communicating issues? Is there an existing forum that Asterisk OpenWrt users are already using?
Second, THANKS! I'm still impressed that I can run asterisk on this hardware. Thanks for all of the hard work making this a reality.
Third, has anyone seen any segmentation faults with this package? I'm running package 1.0.5-1 and am getting segfaults whenever * tries to native bridge two sip calls. Has anyone experience this, or know a way around it?
-- Chris
Second, THANKS! I'm still impressed that I can run asterisk on this hardware. Thanks for all of the hard work making this a reality.
Third, has anyone seen any segmentation faults with this package? I'm running package 1.0.5-1 and am getting segfaults whenever * tries to native bridge two sip calls. Has anyone experience this, or know a way around it?
-- Chris
I wish I had more time to devote to this and be more helpful. Perhaps someone at some point will start an actual forum for the WRTs and we can collect things there . . . in the meantime, this is what we've got, I'm afraid.
Nicolas Hill maintains the stable packages; I only do CVS-HEAD. Because it's CVS, sometimes it isn't as stable as people would like. But this is where things are happening, and where all the really nifty features of Asterisk are to be found.
I have two SIP phones, running CVS head in file .26 on my server, and the SIP stuff works perfectly.
I just built a new version a few minutes ago which I am now testing. It includes the res_config.mysql.so module, so that people can use that DB as their backend with the realtime engine.
This version also has the new jitterbuffer, which for me greatly increases sound quality in lossy environments.
I'll be moving over the current CVS build, into file .28, tomorrow.
Nicolas Hill maintains the stable packages; I only do CVS-HEAD. Because it's CVS, sometimes it isn't as stable as people would like. But this is where things are happening, and where all the really nifty features of Asterisk are to be found.
I have two SIP phones, running CVS head in file .26 on my server, and the SIP stuff works perfectly.
I just built a new version a few minutes ago which I am now testing. It includes the res_config.mysql.so module, so that people can use that DB as their backend with the realtime engine.
This version also has the new jitterbuffer, which for me greatly increases sound quality in lossy environments.
I'll be moving over the current CVS build, into file .28, tomorrow.
Someone has tried G729 in asterisk into a WRT54G?
I have purchase licences for G729 but wonder if I can place it into WRT.
Regards
Humberto
I have purchase licences for G729 but wonder if I can place it into WRT.
Regards
Humberto
In an effort to lend what little I can to the conversation, I have phpBB set up on my site and just created a forum for OpenWRT, so if people want to discuss it there they are more than welcome.
Here is a link to the forum directly http://www.mcnelis.biz/talk/viewforum.php?f=13, or you can find it by going to http://talk.mcnelis.biz.
Here is a link to the forum directly http://www.mcnelis.biz/talk/viewforum.php?f=13, or you can find it by going to http://talk.mcnelis.biz.
you don't need to be whoring your site out on my blog McNelis.
Do you even have an openWRT with asterisk box?
peace brother!
Do you even have an openWRT with asterisk box?
peace brother!
Anyone have any ideas on getting asterisk to email voicemail from the wrt54g? the setup in asterisk isn't bad, but i am having trouble finding and setting up sendmail...
There is a thread on the openWRT forum about using a "tiny" version of sendmail that you can get as an ipk and install on the WRT. Then you can just email out all of the voicemails instead of worrying about storage problems.
You can also get the NFS ipk and mount an NFS drive on the WRT for voicemail.
Orrrrr, a third option is to move the vm stuff onto ramdisk (/var on the standard openWRT distro) each time it boots, and then periodically watch the size or move the older messages onto archives, etc.
You can also get the NFS ipk and mount an NFS drive on the WRT for voicemail.
Orrrrr, a third option is to move the vm stuff onto ramdisk (/var on the standard openWRT distro) each time it boots, and then periodically watch the size or move the older messages onto archives, etc.
I'm beginer, fool and my englis is bad.
I need know about how to make hard ware (stuft) so I can have cheper ( free if posible) internet in my home, in my country internet was so expensive.
please send me detail to make this stuft and how its can work.
now I using internet form local public telepon, i need try using wlan or anything to make beter conection and free
I need know about how to make hard ware (stuft) so I can have cheper ( free if posible) internet in my home, in my country internet was so expensive.
please send me detail to make this stuft and how its can work.
now I using internet form local public telepon, i need try using wlan or anything to make beter conection and free
Does anyone have a solution for this:
asterisk: can't load library 'libpthread.so.0'
Thanks,
Joe
asterisk: can't load library 'libpthread.so.0'
Thanks,
Joe
ipkg install libpthread
I had the same problem and it worked for me.
I had the same problem and it worked for me.
Is there anyone out there want to sale me a WRT moded for SD card and install with Asterisk@home on it? Has to be fully working Asterisk@home and SD card as hard drive for program as well as voicemail storage...
how much are you williing to pay? contact me at rickyjibbons at yahoo dot com
not enough space ??
what can I do in this case ?
thanks for your help
=== IMPORTANT ============================
root@OpenWrt:/etc# ipkg install asterisk-cvs
Installing asterisk-cvs (1.0.27) to root...
Downloading http://12.176.248.4/ipkg/./asterisk-cvs_1.0.28_mipsel.ipk
Installing libncurses (5.2-6) to root...
Downloading http://openwrt.org/downloads/experimental/bin/packages/libncurses_5.
2-6_mipsel.ipk
Installing libpthread (0.9.27-1) to root...
Downloading http://openwrt.org/downloads/experimental/bin/packages/libpthread_0.
9.27-1_mipsel.ipk
ipkg: write: No space left on device
ipkg: /usr/lib/asterisk/modules/codec_alaw.so: No space left on device
ipkg: /usr/lib/asterisk/modules/codec_a_mu.so: No space left on device
ipkg: /usr/lib/asterisk/modules/codec_g726.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_gsm.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_wav.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_wav_gsm.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_vox.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_pcm.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_g729.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_pcm_alaw.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_h263.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_g726.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_ilbc.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_sln.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_jpeg.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_g723.so: No space left on device
ipkg: /usr/lib/asterisk/modules/cdr_csv.so: No space left on device
ipkg: /usr/lib/asterisk/modules/cdr_manager.so: No space left on device
ipkg: /usr/lib/asterisk/modules/cdr_pgsql.so: No space left on device
ipkg: extract_archive: /usr/lib/asterisk/keys/: No space left on device
ipkg: /usr/lib/asterisk/keys/iaxtel.pub: No such file or directory
ipkg: /usr/lib/asterisk/keys/freeworlddialup.pub: No such file or directory
ipkg: /usr/sbin/asterisk: No space left on device
ipkg: /usr/sbin/autosupport: No space left on device
ipkg: /usr/sbin/safe_asterisk: No space left on device
ipkg: /usr/sbin/stereorize: No space left on device
Could not open //usr/lib/ipkg/info/asterisk-cvs.list for writing: No space left
what can I do in this case ?
thanks for your help
=== IMPORTANT ============================
root@OpenWrt:/etc# ipkg install asterisk-cvs
Installing asterisk-cvs (1.0.27) to root...
Downloading http://12.176.248.4/ipkg/./asterisk-cvs_1.0.28_mipsel.ipk
Installing libncurses (5.2-6) to root...
Downloading http://openwrt.org/downloads/experimental/bin/packages/libncurses_5.
2-6_mipsel.ipk
Installing libpthread (0.9.27-1) to root...
Downloading http://openwrt.org/downloads/experimental/bin/packages/libpthread_0.
9.27-1_mipsel.ipk
ipkg: write: No space left on device
ipkg: /usr/lib/asterisk/modules/codec_alaw.so: No space left on device
ipkg: /usr/lib/asterisk/modules/codec_a_mu.so: No space left on device
ipkg: /usr/lib/asterisk/modules/codec_g726.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_gsm.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_wav.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_wav_gsm.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_vox.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_pcm.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_g729.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_pcm_alaw.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_h263.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_g726.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_ilbc.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_sln.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_jpeg.so: No space left on device
ipkg: /usr/lib/asterisk/modules/format_g723.so: No space left on device
ipkg: /usr/lib/asterisk/modules/cdr_csv.so: No space left on device
ipkg: /usr/lib/asterisk/modules/cdr_manager.so: No space left on device
ipkg: /usr/lib/asterisk/modules/cdr_pgsql.so: No space left on device
ipkg: extract_archive: /usr/lib/asterisk/keys/: No space left on device
ipkg: /usr/lib/asterisk/keys/iaxtel.pub: No such file or directory
ipkg: /usr/lib/asterisk/keys/freeworlddialup.pub: No such file or directory
ipkg: /usr/sbin/asterisk: No space left on device
ipkg: /usr/sbin/autosupport: No space left on device
ipkg: /usr/sbin/safe_asterisk: No space left on device
ipkg: /usr/sbin/stereorize: No space left on device
Could not open //usr/lib/ipkg/info/asterisk-cvs.list for writing: No space left
Delete other packages that you have installed? You are out of "disk" space. On the WRT this means you've filled up the flash RAM. On a WRT54G, this is 4MB, on a WRT54GS, 8MB.
Expect * to take a couple of MB installed. Make sure you have at least that much free space before installing it. Or upgrade to a GS if you have only a G and just can't clear any space.
Expect * to take a couple of MB installed. Make sure you have at least that much free space before installing it. Or upgrade to a GS if you have only a G and just can't clear any space.
Starting with a fresh install of the latest OpenWRT (White Russion RC1, 2005-06-25), I don't know if it is possible with the WRT54G. I installed no additional packages and still didn't have enough space to install asterisk.
Any ideas on what I could delete to have enough space? Any idea on the bare minimum space needed?
[code]
root@OpenWrt:/# cat /proc/version
Linux version 2.4.30 (root@reboot2.lan) (gcc version 3.4.4) #1 Sat Jun 25 03:30:46 EDT 2005
root@OpenWrt:/# mount
/dev/root on /rom type squashfs (ro)
none on /rom/dev type devfs (rw)
none on /rom/dev/pts type devpts (rw)
/dev/mtdblock/4 on / type jffs2 (rw)
none on /proc type proc (rw)
none on /dev type devfs (rw)
none on /tmp type ramfs (rw)
root@OpenWrt:/# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1024 1024 0 100% /rom
/dev/mtdblock/4 2240 364 1876 16% /
root@OpenWrt:/etc# ipkg update
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/experimental
Downloading http://openwrt.org/ipkg/Packages
Updated list of available packages in /usr/lib/ipkg/lists/openwrt
Downloading http://12.176.248.4/ipkg/Packages
Updated list of available packages in /usr/lib/ipkg/lists/acvs
Downloading http://nthill.free.fr/openwrt/ipkg/stable/Packages
Updated list of available packages in /usr/lib/ipkg/lists/nico
Downloading http://nthill.free.fr/openwrt/ipkg/testing/Packages
Updated list of available packages in /usr/lib/ipkg/lists/nico-t
Downloading http://www.wildcatwireless.net/wrt54g/Packages
Updated list of available packages in /usr/lib/ipkg/lists/ab0oo
Successfully terminated.
root@OpenWrt:/etc# ipkg install asterisk-cvs
Installing asterisk-cvs (1.0.33) to root...
Downloading http://12.176.248.4/ipkg/./asterisk-cvs_1.0.33_mipsel.ipk
Installing libncurses (5.2-6) to root...
Downloading http://downloads.openwrt.org/whiterussian/packages/libncurses_5.2-6_mipsel.ipk
Installing libpthread (0.9.27-1) to root...
Downloading http://downloads.openwrt.org/whiterussian/packages/libpthread_0.9.27-1_mipsel.ipk
ipkg: write: No space left on device
Configuring asterisk-cvs
Configuring libncurses
Configuring libpthread
ipkg_conf_write_status_files: Can't open status file: //usr/lib/ipkg/status for writing: No space left on device
pkg_write_filelist pkg=asterisk-cvs returned 28
pkg_write_filelist pkg=libncurses returned 28
pkg_write_filelist pkg=libpthread returned 28
Successfully terminated.
Collected errors:
Could not open //usr/lib/ipkg/info/asterisk-cvs.list for writing: No space left on device
Could not open //usr/lib/ipkg/info/asterisk-cvs.list for writing: No space left on device
Could not open //usr/lib/ipkg/info/libncurses.list for writing: No space left on device
Could not open //usr/lib/ipkg/info/libpthread.list for writing: No space left on device
root@OpenWrt:/etc# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1024 1024 0 100% /rom
/dev/mtdblock/4 2240 2196 44 98% /
root@OpenWrt:/etc#
[/code]
Any ideas on what I could delete to have enough space? Any idea on the bare minimum space needed?
[code]
root@OpenWrt:/# cat /proc/version
Linux version 2.4.30 (root@reboot2.lan) (gcc version 3.4.4) #1 Sat Jun 25 03:30:46 EDT 2005
root@OpenWrt:/# mount
/dev/root on /rom type squashfs (ro)
none on /rom/dev type devfs (rw)
none on /rom/dev/pts type devpts (rw)
/dev/mtdblock/4 on / type jffs2 (rw)
none on /proc type proc (rw)
none on /dev type devfs (rw)
none on /tmp type ramfs (rw)
root@OpenWrt:/# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1024 1024 0 100% /rom
/dev/mtdblock/4 2240 364 1876 16% /
root@OpenWrt:/etc# ipkg update
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/experimental
Downloading http://openwrt.org/ipkg/Packages
Updated list of available packages in /usr/lib/ipkg/lists/openwrt
Downloading http://12.176.248.4/ipkg/Packages
Updated list of available packages in /usr/lib/ipkg/lists/acvs
Downloading http://nthill.free.fr/openwrt/ipkg/stable/Packages
Updated list of available packages in /usr/lib/ipkg/lists/nico
Downloading http://nthill.free.fr/openwrt/ipkg/testing/Packages
Updated list of available packages in /usr/lib/ipkg/lists/nico-t
Downloading http://www.wildcatwireless.net/wrt54g/Packages
Updated list of available packages in /usr/lib/ipkg/lists/ab0oo
Successfully terminated.
root@OpenWrt:/etc# ipkg install asterisk-cvs
Installing asterisk-cvs (1.0.33) to root...
Downloading http://12.176.248.4/ipkg/./asterisk-cvs_1.0.33_mipsel.ipk
Installing libncurses (5.2-6) to root...
Downloading http://downloads.openwrt.org/whiterussian/packages/libncurses_5.2-6_mipsel.ipk
Installing libpthread (0.9.27-1) to root...
Downloading http://downloads.openwrt.org/whiterussian/packages/libpthread_0.9.27-1_mipsel.ipk
ipkg: write: No space left on device
Configuring asterisk-cvs
Configuring libncurses
Configuring libpthread
ipkg_conf_write_status_files: Can't open status file: //usr/lib/ipkg/status for writing: No space left on device
pkg_write_filelist pkg=asterisk-cvs returned 28
pkg_write_filelist pkg=libncurses returned 28
pkg_write_filelist pkg=libpthread returned 28
Successfully terminated.
Collected errors:
Could not open //usr/lib/ipkg/info/asterisk-cvs.list for writing: No space left on device
Could not open //usr/lib/ipkg/info/asterisk-cvs.list for writing: No space left on device
Could not open //usr/lib/ipkg/info/libncurses.list for writing: No space left on device
Could not open //usr/lib/ipkg/info/libpthread.list for writing: No space left on device
root@OpenWrt:/etc# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1024 1024 0 100% /rom
/dev/mtdblock/4 2240 2196 44 98% /
root@OpenWrt:/etc#
[/code]
I haven't made any attempts to optimize the -cvs build to fit on the (much) smaller footprint of the vanilla WRT54.
At some point I'll try to "slim" the ipk down by removing a lot of the modules that aren't necssary. For instance, all the SSL stuff adds a huge amount to the flash memory requirement.
The other option might be to use one of the "stable" releases from Nico. I don't know what their memory size is, but it may be smaller.
HTH
At some point I'll try to "slim" the ipk down by removing a lot of the modules that aren't necssary. For instance, all the SSL stuff adds a huge amount to the flash memory requirement.
The other option might be to use one of the "stable" releases from Nico. I don't know what their memory size is, but it may be smaller.
HTH
I was able to get a "successful" install by opening a second ssh and removing possibly unneeded modules while doing "ipkg -force_reinstall install asterisk_cvs" in the other secure shell.
For using the /etc/asterisk/modules.conf you have above, does anyone know which modules can safely be removed from /usr/lib/asterisk/modules?
For using the /etc/asterisk/modules.conf you have above, does anyone know which modules can safely be removed from /usr/lib/asterisk/modules?
I made a "slimmed down" version of the CVS-HEAD version tonight. I removed the crypto stuff, which took up a lot of room, as well as other modules that are less-often used in the production servers I maintain.
That slimmed it down by about 700K. I don't know a) if that's enough to allow it to fit on the WRT54, and I haven't tested it, so I don't know for sure (although I'm pretty sure) I didn't take something out that really has to be there.
I left most of the important stuff in, and you could always add and subtract modules (e.g. the stuff for realtime, ael, voicemail, etc.) to get it to do what you want to do--assuming it will fit in the first place.
You can get it at splurge.peoples-wireless.com/ipkg/asterisk-cvs_1.0.33_mipsel-slim.ipk
Let me know if you do fetch it if you can get it to work.
That slimmed it down by about 700K. I don't know a) if that's enough to allow it to fit on the WRT54, and I haven't tested it, so I don't know for sure (although I'm pretty sure) I didn't take something out that really has to be there.
I left most of the important stuff in, and you could always add and subtract modules (e.g. the stuff for realtime, ael, voicemail, etc.) to get it to do what you want to do--assuming it will fit in the first place.
You can get it at splurge.peoples-wireless.com/ipkg/asterisk-cvs_1.0.33_mipsel-slim.ipk
Let me know if you do fetch it if you can get it to work.
Ooops. I took out crypto originally, and then put it back in. I was fearful the authentication stuff would break. I can try removing it if it turns out the version I put up there is still too large, but I don't know what all else in the system might depend upon it.
Thank you so much for the extra slimmed version. I successfully installed it on one of the WRT54GS v.4 units running whiterussian rc4 and it runs better than expected! It is used for an offsite extension for a telecommuter. I set it up only to handle the calls. If the user is unavailable it routs the call back to the "real" asterisk at the server for voicemail. Thanks to all that have worked so hard to make this project work!
. Anyone else trying to get Asterisk running on the WRT54GS v.4 here is what I did:
1: Download and install whiterussian rc4 (I did it through the web interface) on the WRT54GS v.4
2: Add "src astslim http://splurge.peoples-wireless.com/ipkg" to the ipkg.conf file type ipkg update.
3: From the whiterussian web interface enter a password to disable telnet and enable ssh.
4: Go to the system category and select installed software. Here you will see the astslim entries. Install Asterisk.
5: SSH into your linksys and configure asterisk.
6: If you want asterisk to start when the Linksys boots add "::respawn:/usr/sbin/asterisk -f" to the /etc/inittab file.
Hope this helps someone out there.
1: Download and install whiterussian rc4 (I did it through the web interface) on the WRT54GS v.4
2: Add "src astslim http://splurge.peoples-wireless.com/ipkg" to the ipkg.conf file type ipkg update.
3: From the whiterussian web interface enter a password to disable telnet and enable ssh.
4: Go to the system category and select installed software. Here you will see the astslim entries. Install Asterisk.
5: SSH into your linksys and configure asterisk.
6: If you want asterisk to start when the Linksys boots add "::respawn:/usr/sbin/asterisk -f" to the /etc/inittab file.
Hope this helps someone out there.
How many ingoing/outgoing lines/extensions can a WRT45GS handle without causing performance issues?
I guess, since I'll only ever have 1-2 incoming lines, I'm mostly interested in how many inuse extensions it can support. Has anyone tested this? Thanks!
I guess, since I'll only ever have 1-2 incoming lines, I'm mostly interested in how many inuse extensions it can support. Has anyone tested this? Thanks!
yes, i am also interested in also finding out how many simultaneous calls this router/softwsitch will be able to handle.I will be testing this out in the next couple of weeks. I want to assume sizing of 30mhz/call = approx. between 2 and 4 calls,depending on the type of cpu in the box.This is using g729 codec. This is from official digium website.
Hi,
I've got a new WRT54GS 1.1, installed OpenWrt and Asterisk as per instructions above. I seem to have asterisk downloaded and installed with the ipkg command, however trying to run asterisk as per last paragraph of step 2 does not seem to work (or at least the asterisk -r command is not working out properly). Here's the output from my command prompt:
root@OpenWrt:~# asterisk
root@OpenWrt:~# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
I looked in to see if that file asterisk.ctl exists, but it does not - is this something missing from the install procedure or have I done something wrong?
Thanks for your help. Phil_
I've got a new WRT54GS 1.1, installed OpenWrt and Asterisk as per instructions above. I seem to have asterisk downloaded and installed with the ipkg command, however trying to run asterisk as per last paragraph of step 2 does not seem to work (or at least the asterisk -r command is not working out properly). Here's the output from my command prompt:
root@OpenWrt:~# asterisk
root@OpenWrt:~# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
I looked in to see if that file asterisk.ctl exists, but it does not - is this something missing from the install procedure or have I done something wrong?
Thanks for your help. Phil_
root@OpenWrt:~# asterisk
root@OpenWrt:~# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
I looked in to see if that file asterisk.ctl exists, but it does not - is this something missing from the install procedure or have I done something wrong?
I am having the exact same problem. I have installed RC2 and followed the instructions. What did I do wrong?
root@OpenWrt:~# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
I looked in to see if that file asterisk.ctl exists, but it does not - is this something missing from the install procedure or have I done something wrong?
I am having the exact same problem. I have installed RC2 and followed the instructions. What did I do wrong?
Rammer has the right idea...
The first asterisk cmd you use add the options -cvvvv and see where it stops...
Also, if you look in /var/adm/asterisk/messages you might find some helpful information.
I've found the the problem usually arrises from a non-slimmed /etc/asterisk/modules.conf
What modules are being loaded?
The first asterisk cmd you use add the options -cvvvv and see where it stops...
Also, if you look in /var/adm/asterisk/messages you might find some helpful information.
I've found the the problem usually arrises from a non-slimmed /etc/asterisk/modules.conf
What modules are being loaded?
Thanks Rammer and David for replying. I believe I've tired out the slim as stated above. I've uplaoded the output I get when I run the 'asterisk -cvvvv' command to http://www.puresoft.co.uk/downloads/asterisk.txt and here is a copy of my config http://www.puresoft.co.uk/downloads/modules.conf.
My messages file is as follows:
Jan 1 00:03:47 NOTICE[593] cdr.c: CDR simple logging enabled.
Jan 1 00:03:47 WARNING[593] loader.c: File not found
Jan 1 00:03:47 WARNING[593] loader.c: Loading module res_config_mysql.so failed!
When I try the asterisk -r command after that I still get the 'Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)' message.
Thanks, philip
My messages file is as follows:
Jan 1 00:03:47 NOTICE[593] cdr.c: CDR simple logging enabled.
Jan 1 00:03:47 WARNING[593] loader.c: File not found
Jan 1 00:03:47 WARNING[593] loader.c: Loading module res_config_mysql.so failed!
When I try the asterisk -r command after that I still get the 'Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)' message.
Thanks, philip
Starting "asterisk" with no arguments defaults to running it as a daemon in the background. The subsequent "asterisk -r" attaches a remote console to that daemon. By the time you do the latter command, the daemon has already aborted due to an error and that is why the it is unable to connect to remote asterisk.
The "-c" option causes asterisk to stay in the foreground with a console. The "-v" option turns on "verbosity" and the more v's the more verbosity. When you run with "asterisk -cvvvv", you do not need to do a "asterisk -r".
The first asterisk error is:
[res_config_mysql.so]Jan 1 00:01:06 WARNING[587]: loader.c:313 __load_resource: File not found
Jan 1 00:01:06 WARNING[587]: loader.c:541 load_modules: Loading module res_config_mysql.so failed!
Try "mv /usr/lib/asterisk/modules/res_config_mysql.so /tmp" (or explicitly say noload for this module in /etc/asterisk/modules.conf") and restarting with "asterisk -cvvvv".
You may have to remove a few more modules before you get the "Asterisk Ready." prompt. BTW, it can close to 3 minutes to come up, but that can be shortened by eliminating unneeded modules.
Finally, once asterisk it up, what do you want to do?
The "-c" option causes asterisk to stay in the foreground with a console. The "-v" option turns on "verbosity" and the more v's the more verbosity. When you run with "asterisk -cvvvv", you do not need to do a "asterisk -r".
The first asterisk error is:
[res_config_mysql.so]Jan 1 00:01:06 WARNING[587]: loader.c:313 __load_resource: File not found
Jan 1 00:01:06 WARNING[587]: loader.c:541 load_modules: Loading module res_config_mysql.so failed!
Try "mv /usr/lib/asterisk/modules/res_config_mysql.so /tmp" (or explicitly say noload for this module in /etc/asterisk/modules.conf") and restarting with "asterisk -cvvvv".
You may have to remove a few more modules before you get the "Asterisk Ready." prompt. BTW, it can close to 3 minutes to come up, but that can be shortened by eliminating unneeded modules.
Finally, once asterisk it up, what do you want to do?
Hi,
Thanks for the help. I added the following 2 lines in the /etc/asterisk/modules.conf file and it works through.
noload => res_config_mysql.so
noload => res_config_pgsql.so
Now I have it up and runnign I will be using it to rout calls between my two work locations, so I can have my calls sent through to me as I choose. I will also be planning to try and get things set up so I can ditch one or both of my PSTN business lines and use VOIP instead. Sorting out the hardware for that now.
Philip.
Thanks for the help. I added the following 2 lines in the /etc/asterisk/modules.conf file and it works through.
noload => res_config_mysql.so
noload => res_config_pgsql.so
Now I have it up and runnign I will be using it to rout calls between my two work locations, so I can have my calls sent through to me as I choose. I will also be planning to try and get things set up so I can ditch one or both of my PSTN business lines and use VOIP instead. Sorting out the hardware for that now.
Philip.
This is a great tutorial. I found this post on linksysonline that might also be of some use.
http://www.linksysonline.com/forum/showthread.php?t=49
http://www.linksysonline.com/forum/showthread.php?t=49
Thanks for the tips about noloading modules.
I now have a new problem. When I start asterisk by typing asterisk -vccc I am seeing these three errors
Jan 2 12:28:19 WARNING[1004]: chan_iax2.c:1341 reload_firmware: Error opening firmware directory '/usr/lib/asterisk/firmware/iax': No such file or directory
Jan 2 12:28:20 WARNING[1004]: pbx.c:6098 ast_context_verify_includes: Context 'local' tries includes nonexistent context 'default'
Jan 2 12:28:20 WARNING[1004]: pbx.c:6098 ast_context_verify_includes: Context 'local' tries includes nonexistent context 'iaxtel700'
Now I don't understand why I am getting the firmware error I am using sip not IAX. I am not sure how not to load that.
Error two I think has something to do with my extensions.conf
I think error three I can fix.
I now have a new problem. When I start asterisk by typing asterisk -vccc I am seeing these three errors
Jan 2 12:28:19 WARNING[1004]: chan_iax2.c:1341 reload_firmware: Error opening firmware directory '/usr/lib/asterisk/firmware/iax': No such file or directory
Jan 2 12:28:20 WARNING[1004]: pbx.c:6098 ast_context_verify_includes: Context 'local' tries includes nonexistent context 'default'
Jan 2 12:28:20 WARNING[1004]: pbx.c:6098 ast_context_verify_includes: Context 'local' tries includes nonexistent context 'iaxtel700'
Now I don't understand why I am getting the firmware error I am using sip not IAX. I am not sure how not to load that.
Error two I think has something to do with my extensions.conf
I think error three I can fix.
Thanks for all the work with asterisk on openwrt. I just loaded a wrt54g ver 2.2 with white russian RC2. I download the slimmed down version of asterisk, asterisk-cvs_1.0.33_mipsel-slim.ipk but I get a crypto error running asterisk -cvvvv. I have pretty much everything turned off in modules.conf. I get the error even if I have the crypto module shut off in modules.conf I have to rename the res_crypto.so to something else so that asterisk will even start. The following is the error I get when starting asterisk.
[res_crypto.so]Jan 1 22:35:43 WARNING[1022]: loader.c:313 __load_resource: File not found
Jan 1 22:35:43 WARNING[1022]: loader.c:541 load_modules: Loading module res_crypto.so failed!
Here is a copy of my modules.conf
[modules]
autoload=no
load=res_adsi.so ; ADSI Resource
load=chan_iax2.so ; Inter Asterisk eXchange (Ver 2)
load=chan_local.so ; Local Proxy Channel
load=chan_sip.so ; Session Initiation Protocol (SIP)
load=codec_gsm.so ; GSM/PCM16 (signed linear) Codec Translat
load=codec_ilbc.so ; iLBC/PCM16 (signed linear) Codec Transla
load=codec_ulaw.so ; Mu-law Coder/Decoder
load=format_gsm.so ; Raw GSM data
load=format_ilbc.so ; Raw iLBC data
load=format_pcm.so ; Raw uLaw 8khz Audio support (PCM)
load=format_wav.so ; Microsoft WAV format (8000hz Signed Line
load=format_wav_gsm.so ; Microsoft WAV format (Proprietary GSM)
load=app_dial.so ; Dialing Application
load=app_echo.so ; Simple Echo Application
load=app_macro.so ; Extension Macros
load=app_milliwatt.so ; Digital Milliwatt (mu-law) Test Applicat
load=app_playback.so ; Trivial Playback Application
load=app_verbose.so ; Send verbose output
load=pbx_config.so ; Text Extension Configuration
[global]
thank you for any help
[res_crypto.so]Jan 1 22:35:43 WARNING[1022]: loader.c:313 __load_resource: File not found
Jan 1 22:35:43 WARNING[1022]: loader.c:541 load_modules: Loading module res_crypto.so failed!
Here is a copy of my modules.conf
[modules]
autoload=no
load=res_adsi.so ; ADSI Resource
load=chan_iax2.so ; Inter Asterisk eXchange (Ver 2)
load=chan_local.so ; Local Proxy Channel
load=chan_sip.so ; Session Initiation Protocol (SIP)
load=codec_gsm.so ; GSM/PCM16 (signed linear) Codec Translat
load=codec_ilbc.so ; iLBC/PCM16 (signed linear) Codec Transla
load=codec_ulaw.so ; Mu-law Coder/Decoder
load=format_gsm.so ; Raw GSM data
load=format_ilbc.so ; Raw iLBC data
load=format_pcm.so ; Raw uLaw 8khz Audio support (PCM)
load=format_wav.so ; Microsoft WAV format (8000hz Signed Line
load=format_wav_gsm.so ; Microsoft WAV format (Proprietary GSM)
load=app_dial.so ; Dialing Application
load=app_echo.so ; Simple Echo Application
load=app_macro.so ; Extension Macros
load=app_milliwatt.so ; Digital Milliwatt (mu-law) Test Applicat
load=app_playback.so ; Trivial Playback Application
load=app_verbose.so ; Send verbose output
load=pbx_config.so ; Text Extension Configuration
[global]
thank you for any help
Does anyone know where I can find the files needed to setup voicemail? I am using the cvs version of asterisk on a wrt54gs. Thanks in advance.
I'm not sure you want to put voicemail on the machine. It can't record the messages fast enough and you get garbage... There are ways around this but they take quite a bit of fiddling and I believe you lose all messages if the power goes out on the box.... but if you want the sounds... get a regular install of asterisk and just tar them up.
I forgot to mention - it's the sound files that I am looking for. Is there a way to install them via ipkg? Again, thanks.
Hi,
I am trying to install asterisk on wrt54gs. i hv installed whiterussian rc2 and downloaded the latest asterisk version as mentioned in this document. My module.config is
[modules]
autoload=yes
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
noload => pbx_dundi.so
noload => app_intercom.so
; load => chan_modem.so
noload => res_musiconhold.so
noload => chan_modem.so
noload => cdr_pgsql.so
noload => cdr_mysql.so
noload => chan_alsa.so
;noload => chan_oss.so
noload => res_config_mysql.so
noload => res_config_pgsql.so
[global]
; chan_modem.so=yes
when i try to start asterisk i am getting the following error
res_crypto.so - Warning __load_resource: File not found
Loading module res_crypto.so failed!
How can i load this module.
thanks for your help,
-B
I am trying to install asterisk on wrt54gs. i hv installed whiterussian rc2 and downloaded the latest asterisk version as mentioned in this document. My module.config is
[modules]
autoload=yes
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
noload => pbx_dundi.so
noload => app_intercom.so
; load => chan_modem.so
noload => res_musiconhold.so
noload => chan_modem.so
noload => cdr_pgsql.so
noload => cdr_mysql.so
noload => chan_alsa.so
;noload => chan_oss.so
noload => res_config_mysql.so
noload => res_config_pgsql.so
[global]
; chan_modem.so=yes
when i try to start asterisk i am getting the following error
res_crypto.so - Warning __load_resource: File not found
Loading module res_crypto.so failed!
How can i load this module.
thanks for your help,
-B
Hi Balaji,
Look at my post #15 above. I had the same problem. I was able to get around it by downloading the RC2 CVS snapshot and compiling it myself. If you have a linux box availabe you may want to try that instead.
-Jerol
Look at my post #15 above. I had the same problem. I was able to get around it by downloading the RC2 CVS snapshot and compiling it myself. If you have a linux box availabe you may want to try that instead.
-Jerol
Has anyone tried loading an iscsi initiator to the wrt54g to mount storage on an external box?
--Colin
--Colin
Can anyone tell me where to put the sound files.
I would like to use DISA on my Linksys with OpenWRT nd asterisk installed, but when the DISA command is invoked I get error messages about missing sound files.
ast_openstream_full: File agent-pass does not exist in any format
I created a directory /var/lib/asterisk/sounds and copied the missing sound files in there, but asterisk still does not find them.
I would like to use DISA on my Linksys with OpenWRT nd asterisk installed, but when the DISA command is invoked I get error messages about missing sound files.
ast_openstream_full: File agent-pass does not exist in any format
I created a directory /var/lib/asterisk/sounds and copied the missing sound files in there, but asterisk still does not find them.
Hello. im new to linux. got a job wit it. but you see i need some help using it .and i need to knoe asterisk by the end of today.can you guys please give me a hand?
Mojoe
Mojoe
your best bet would be to visit these sites:
http://www.tldp.org/
http://www.voip-info.org/wiki/
http://www.asterisk.org/
http://www.tldp.org/
http://www.voip-info.org/wiki/
http://www.asterisk.org/
I installed openwrt and I did replace ipgk..conf
WHen I do update it says lots of tmp no such file ..
ANy ideas of what might be incorrectly done ?
Thanks
WHen I do update it says lots of tmp no such file ..
ANy ideas of what might be incorrectly done ?
Thanks
Has anybody connected a pstn phone line to the Wrt54G ?Or has anybody some advise to do so on one way or another ?
Thanks
Thanks
Hi,
This seems really cool that you can run asterisk off a WRT54gs box. Has anybody tried the G711u codec and does it work off this box? The reason I ask, I use VOIPSTUNT to make free calls worldwide but I think they only support G711u not GSM.
Does the IVR / Auto attendant / Hold music features still work?
I'm correctly new to Linux / Asterisk. Current playing around with Asterisk@home 2.5 image installed in VMWARE.. pretty cool for practice and no major timing issues. Call quality is pretty good to.. Running off my XP PC Pentium 4 - 1400 with 256mb / SDRAM. (128mb xp / 128mb Asterisk server)
I currently have WRT54G version 2.0 - would it work on this? I guess not because of 4mb flash?
This seems really cool that you can run asterisk off a WRT54gs box. Has anybody tried the G711u codec and does it work off this box? The reason I ask, I use VOIPSTUNT to make free calls worldwide but I think they only support G711u not GSM.
Does the IVR / Auto attendant / Hold music features still work?
I'm correctly new to Linux / Asterisk. Current playing around with Asterisk@home 2.5 image installed in VMWARE.. pretty cool for practice and no major timing issues. Call quality is pretty good to.. Running off my XP PC Pentium 4 - 1400 with 256mb / SDRAM. (128mb xp / 128mb Asterisk server)
I currently have WRT54G version 2.0 - would it work on this? I guess not because of 4mb flash?
Ravi,
I had a look at this last summer, the wrt just doesn't have enough horsepower
I had a look at this last summer, the wrt just doesn't have enough horsepower
Guys
If someone could package channel_sccp (this one http://chan-sccp.berlios.de rather then the original one) I'd be very interested.
There's a Cisco 7960G phone for the person who can get it working.
I'm UK based so if the phone has to be shipped overseas we'll have to come to some agreement on the shipping costs. I'll install either SIP or SCCP firmware on the phone.
P
If someone could package channel_sccp (this one http://chan-sccp.berlios.de rather then the original one) I'd be very interested.
There's a Cisco 7960G phone for the person who can get it working.
I'm UK based so if the phone has to be shipped overseas we'll have to come to some agreement on the shipping costs. I'll install either SIP or SCCP firmware on the phone.
P
Is it possible to use this method to make Asterisk work on dd-wrt?
I tried but I got some errors.
Cris
I tried but I got some errors.
Cris
I think the ultimate implimentation of Asterisk on a wireless router would be on the WRTP54G. With wireless capabilities, and 2 phone ports to use with Asterisk, this would be like an All-in-One kickass devise. Has anyone thought of attacking something like this???
I had two things go weird...
asterisk: can't load library 'libgcc_s.so.1'
and
asterisk: can't load library 'libssl.so.0.9.7'
I created a link from /usr/lib/libssl.so.0.9.8 to /usr/lib/libssl.so.0.9.7 and ln -s /lib/libc.so.0 /lib/libgcc_s.so.1
I was then able to get asterisk running.... Not sure if i missed something and that caused the error. If anyone has anything better or knows what the real issue was it would be great to know...
asterisk: can't load library 'libgcc_s.so.1'
and
asterisk: can't load library 'libssl.so.0.9.7'
I created a link from /usr/lib/libssl.so.0.9.8 to /usr/lib/libssl.so.0.9.7 and ln -s /lib/libc.so.0 /lib/libgcc_s.so.1
I was then able to get asterisk running.... Not sure if i missed something and that caused the error. If anyone has anything better or knows what the real issue was it would be great to know...
i am having these prb can n e pl z help me to solve it
[root@dhcppc2 asterisk]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
[root@dhcppc2 asterisk]# tail /var/log/asterisk/messages
Aug 26 11:38:21 NOTICE[5500] cdr.c: CDR simple logging enabled.
Aug 26 11:38:21 WARNING[5500] res_musiconhold.c: Unable to open pseudo channel for timing... Sound may be choppy.
Aug 26 11:38:22 ERROR[5500] res_config_mysql.c: MySQL RealTime: Failed to connect database server on (err 2002). Check debug for more info.
Aug 26 11:38:22 WARNING[5500] res_config_mysql.c: MySQL RealTime: Couldn't establish connection. Check debug.
Aug 26 11:38:22 NOTICE[5500] config.c: Registered Config Engine mysql
Aug 26 11:38:22 WARNING[5500] pbx_dundi.c: Unable to look up host 'dhcppc2'
Aug 26 11:38:23 WARNING[5500] chan_mgcp.c: Unable to get our IP address, MGCP disabled
Aug 26 11:38:23 ERROR[5500] chan_unicall.c: Unable to load config unicall.conf
Aug 26 11:38:23 WARNING[5500] loader.c: chan_unicall.so: load_module failed, returning -1
Aug 26 11:38:23 WARNING[5500] loader.c: Loading module chan_unicall.so failed!
plz try to explain as much as u can becoz i am dumb in linux
thnx
[root@dhcppc2 asterisk]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
[root@dhcppc2 asterisk]# tail /var/log/asterisk/messages
Aug 26 11:38:21 NOTICE[5500] cdr.c: CDR simple logging enabled.
Aug 26 11:38:21 WARNING[5500] res_musiconhold.c: Unable to open pseudo channel for timing... Sound may be choppy.
Aug 26 11:38:22 ERROR[5500] res_config_mysql.c: MySQL RealTime: Failed to connect database server on (err 2002). Check debug for more info.
Aug 26 11:38:22 WARNING[5500] res_config_mysql.c: MySQL RealTime: Couldn't establish connection. Check debug.
Aug 26 11:38:22 NOTICE[5500] config.c: Registered Config Engine mysql
Aug 26 11:38:22 WARNING[5500] pbx_dundi.c: Unable to look up host 'dhcppc2'
Aug 26 11:38:23 WARNING[5500] chan_mgcp.c: Unable to get our IP address, MGCP disabled
Aug 26 11:38:23 ERROR[5500] chan_unicall.c: Unable to load config unicall.conf
Aug 26 11:38:23 WARNING[5500] loader.c: chan_unicall.so: load_module failed, returning -1
Aug 26 11:38:23 WARNING[5500] loader.c: Loading module chan_unicall.so failed!
plz try to explain as much as u can becoz i am dumb in linux
thnx
What fo you mean by "created a link" ? I am having the same problem and would like to know in detail how you solved it. Thankyou in anticiaption.
HI,
Thanks for some great reading and ideas. I am looking for a device or a way to configure one analoque phone to a device and then dynamicaly route the calls . If local phone numbers are dialed it must use ZAP if a mobile number or a international number is dialed it must use my * server which is located at a ISP. Any ideas guys?.. can this Linksys device do this?.
Thanks for some great reading and ideas. I am looking for a device or a way to configure one analoque phone to a device and then dynamicaly route the calls . If local phone numbers are dialed it must use ZAP if a mobile number or a international number is dialed it must use my * server which is located at a ISP. Any ideas guys?.. can this Linksys device do this?.
OMG. Could this software be more buggy/cryptic/annoying? Really, don't you guys have something better to do with your lives that mucking about with a half-baked IP PBX? I am amazed at how resilient you are... who the hell is paying your salaries? Or are you just masochists? PLEASE SOMEONE COME UP WITH A VIABLE PRODUCT SOLUTION TO THIS STUPIDITY!!
can asterisk be used to have , say, 20 ppl call in from their normal phones to a live lecture and listen if they're sick or something and can't attend in person?
looking for suggestions
looking for suggestions

