Community discussions

  • 1
  • 2
  • 3
  • 4
  • 5
  • 7
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Feb 18, 2012 11:53 am

Reasonable doubt can be different kernel, but its publicly known issue, RB450 and metarouter.

http://forum.mikrotik.com/viewtopic.php?f=15&t=35800
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Sat Feb 18, 2012 4:21 pm

Stability experience with nik's OpenWRT Metarouter MIPS build on RB450G is very impressive.

And it is true that my office need more applications/packages that nik didn't provide on his build.

So i start to build myself from r30550, we need to add
KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)

on kernel Makefile to reduce noise and avoid build to failling.
or edit .config to use gcc 4.5 instead of default 4.6

Instability still occur, it's vary from RB450G reboot itself whenever in other RB450G there is no auto reboot but networking always up and down(temporary fix with disable-enable bridge).

Until i build openwrt-metarouter with r30624, automagically no more reboot itself or up and down openwrt networking.

Another reason for past instability may about host RouterOS kernel version and guest OpenWRT kernel version seem didn't fit again.
Or about elco type, which other say that need to replace with 1000uF, there is no need to do that. I check all my RB450G using vary elco from 560uF, 680uF and 1000uF, before using r30624 all have instability issue even i change switching power adaptor to 9V-0.6A, 12V-0.5A, 12V-1A and 18V-0.8A instability still occur.

Using r30624, all elco varian and all type switching power adaptor do the same result, stable RB450G and stable OpenWRT networking.

Still investigating the diff from r30550 and r30624.

Now it's time to explore this feature with our RB1000 and RB1100 (OpenWRT Metarouter PPC).

Have a nice good expectation for all.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sun Feb 19, 2012 9:56 am

Thanks for investigation. Well, im going to rebuild new image and packages tree from actual trunk without any modification of makefile or .config.

After that, can you test my image on RB450G? I have only some 433UAH.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6243
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Feb 20, 2012 10:42 am

even i change switching power adaptor to 9V-0.6A, 12V-0.5A
these 2 will be to weak for RB450G with all cables plugged and with fully loaded CPU at 680MHz. So, instability using these could happen just due to power failure. 12V - 1A should be fine as far as power requirements go.
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Fri Feb 24, 2012 5:17 pm

Thanks for investigation. Well, im going to rebuild new image and packages tree from actual trunk without any modification of makefile or .config.

After that, can you test my image on RB450G? I have only some 433UAH.
I see your trunk build dated on 23 February 2012, are they new builds ?
still using r29684 and r29884 ?
looking your .config from the beginning you use gcc linaro 4.5, that's why your build have no any complaints when compiling.

btw, i'll try your new build.
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Fri Feb 24, 2012 5:35 pm

even i change switching power adaptor to 9V-0.6A, 12V-0.5A
these 2 will be to weak for RB450G with all cables plugged and with fully loaded CPU at 680MHz. So, instability using these could happen just due to power failure. 12V - 1A should be fine as far as power requirements go.
I use this 12V-0.5A too on RB493AH with all cables plugged to pcc adsl and CPU loaded at 680MHz everything running smooth for at least 2 weeks until now.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Feb 25, 2012 2:51 pm

Thanks for investigation. Well, im going to rebuild new image and packages tree from actual trunk without any modification of makefile or .config.

After that, can you test my image on RB450G? I have only some 433UAH.
I see your trunk build dated on 23 February 2012, are they new builds ?
still using r29684 and r29884 ?
looking your .config from the beginning you use gcc linaro 4.5, that's why your build have no any complaints when compiling.

btw, i'll try your new build.
Im in trouble now to compile newer build (higher then r29884) . All the time some errors, despite of manually editing config file from newer build and configure linaro back to 4.5.

Well, now, im trying to compile really basic build without any modification and feeds, just really basic image only with MK patch 1.2.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Sat Feb 25, 2012 4:28 pm

I just build new basic image (without any advanced modification in "make menuconfig", just only with MK patch 1.2).

I had to modify Makefile of kernel as "ferywu" wrote, just added -Wno-unused-but-set-variable in KBUILD_CFLAGS and leave linaro 4.6.

MIPS:
http://openwrt.wk.cz/trunk/mr-mips/open ... sic.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/trunk/mr-mips/conf ... 0717-basic

PPC:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... sic.tar.gz
CONFIG PPC
http://openwrt.wk.cz/trunk/mr-ppc/confi ... 0717-basic
 
ferywu
just joined
Posts: 22
Joined: Fri Feb 17, 2012 6:24 pm

Re: Metarouter images

Sun Feb 26, 2012 11:48 am

Until i build openwrt-metarouter with r30624, automagically no more reboot itself or up and down openwrt networking.
Sadly it's only standing for 5 days before our RB450G reboot itself.

Now i manage to build with v1.1 patch.
Compile succeed with OWRT r18200 which still have support for kernel 2.6.27.
Wait for several days, or a couple weeks maybe 1 months or more to know it's going stable.

Patch v1.2 on PPC always produce MT kernel panic with OWRT backfire or any trunk revision, right after login prompt show up. ( still find another solution too)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6243
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Metarouter images

Mon Feb 27, 2012 4:23 pm

even i change switching power adaptor to 9V-0.6A, 12V-0.5A
these 2 will be to weak for RB450G with all cables plugged and with fully loaded CPU at 680MHz.
I use this 12V-0.5A too on RB493AH with all cables plugged to pcc adsl and CPU loaded at 680MHz everything running smooth for at least 2 weeks until now.
linked gigabit ports uses around 0.7W when plugged. 100Mbps ports compared to that does not use any power at all. So you see in the quote that i specifically state that for RB450G use of 0.5A@12V is too weak. Actually it could work but it would be maxing out the PSU and that could cause some problems if PSU is not new.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Mon Feb 27, 2012 11:11 pm

New build 30733 - image, packages tree, config
Modifications:
- manually set UCLIBC_VERSION to older 0.9.32 - because i was unable to build Asterisk package with newer 0.9.33 - https://issues.asterisk.org/jira/browse/ASTERISK-2531
- modification of KBUILD_CFLAGS -Wno-unused-but-set-variable
- Mikrotik MetaRouter Patch 1.2
- package vsftp - needed to add LIBS = -lcrypt -lnsl -lcap

MIPS:
http://openwrt.wk.cz/trunk/mr-mips/open ... 733.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/trunk/mr-mips/config-mips-30733
PACKAGES:
http://openwrt.wk.cz/trunk/mr-mips/packages/

PPC:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... 733.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/trunk/mr-ppc/config-ppc-30733
PACKAGES:
http://openwrt.wk.cz/trunk/mr-ppc/packages/
 
djmuk
newbie
Posts: 47
Joined: Mon Jan 18, 2010 8:48 pm

Re: Metarouter images

Thu Mar 01, 2012 1:24 am

Guys you have saved my sanity!

I have been trying to get a metarouter image compiled for the last 3 days without success.

Build against 8.09 fails to complete, build against backfire or trunk completes but the code crashes with kernel alignment error...

I found this thread but didn't read to the end... :(

When you give the build number (30733) is that the last patch that you pull from the openwrt svn? If so how do you specify it on the SVN command?

I want the faifa package installed - any chance you could add it to the package repo?

Thanks

David
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Mar 01, 2012 7:56 pm

Guys you have saved my sanity!

I have been trying to get a metarouter image compiled for the last 3 days without success.

Build against 8.09 fails to complete, build against backfire or trunk completes but the code crashes with kernel alignment error...

I found this thread but didn't read to the end... :(

When you give the build number (30733) is that the last patch that you pull from the openwrt svn? If so how do you specify it on the SVN command?

I want the faifa package installed - any chance you could add it to the package repo?

Thanks

David
I know how are you feel at this time. :-) Dont waste your time and use my repo. I just build and uploaded new image and packages tree that include faifa package.
 
djmuk
newbie
Posts: 47
Joined: Mon Jan 18, 2010 8:48 pm

Re: Metarouter images

Thu Mar 01, 2012 9:17 pm

Thanks for doing that - I grabbed the trunk down to that commit and successfully did a build & put faifa in the kernel & it all works on the 750GL I'm using! It is also a much smaller kernel as I didn't put a lot of modules in there.

I think it was the compile fail that threw me off using trunk - isn't that an openwrt Trunk issue as ISTR it was a kernel file that threw the error? Also is there a 'clean' place to put the KBUILD_CFLAGS parameter, I put it in the kernel makefile in the build_dir directory but is it possible to put it in the target folder so it is part of the build process and not a hack of the autogenerated file...?

Regards

David
 
ALIEN360
just joined
Posts: 4
Joined: Thu Dec 08, 2011 2:39 pm
Location: Sofia, Bulgaria

Re: Metarouter images

Tue Mar 13, 2012 12:41 pm

@ liquidcz,
You don't have permission to access /trunk/mr-mips/openwrt-mr-mips-rootfs-30733.tar.gz on this server.
can you please upload it somewhere other
thx in advance
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Mar 15, 2012 12:03 am

@ liquidcz,
You don't have permission to access /trunk/mr-mips/openwrt-mr-mips-rootfs-30733.tar.gz on this server.
can you please upload it somewhere other
thx in advance
Sorry fo that, i just moved my server to another ISP.
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Metarouter images

Sat Mar 17, 2012 5:57 am

@ liquidcz,
You don't have permission to access /trunk/mr-mips/openwrt-mr-mips-rootfs-30733.tar.gz on this server.
can you please upload it somewhere other
thx in advance
Sorry fo that, i just moved my server to another ISP.

when is ready??

I need repo
c0d3rSh3ll @ hotmail.com
Skype: c0d3rSh3ll
3 rb750 ; 1 rb951G-2HnD and 2 rb951-2n for testing lab.
The best way to say thank, is give karma
 
Attila
newbie
Posts: 33
Joined: Sun Mar 18, 2012 1:57 pm

Re: Metarouter images

Sun Mar 18, 2012 9:32 pm

Dear Liquidcz!
When possible you can compile the package tvheadend 2.12 (https://www.lonelycoder.com/tvheadend/download) by PPC? :?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Mar 21, 2012 8:44 pm

Dear Liquidcz!
When possible you can compile the package tvheadend 2.12 (https://www.lonelycoder.com/tvheadend/download) by PPC? :?
Im sorry, im unable to find tvheadend in feeds from openwrt.
 
Attila
newbie
Posts: 33
Joined: Sun Mar 18, 2012 1:57 pm

Re: Metarouter images

Thu Mar 22, 2012 12:11 pm

Liquidz,

MediaWrt Multimedia support for OpenWrt contain this package:
(http://code.google.com/p/mediawrt/sourc ... tvheadend/)

This is the working version for OpenWrt AR71xx:
(https://docs.google.com/leaf?id=0B8oQFO ... ZjRm&hl=en)

When possible please make a ported version to PPC. :)


Regards

Attila
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Metarouter images

Fri Mar 23, 2012 12:58 am

Liquidz:


Please make a howto how to compile packages for openwrt in metarouter
c0d3rSh3ll @ hotmail.com
Skype: c0d3rSh3ll
3 rb750 ; 1 rb951G-2HnD and 2 rb951-2n for testing lab.
The best way to say thank, is give karma
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Mar 23, 2012 11:52 pm

Liquidz:

Please make a howto how to compile packages for openwrt in metarouter
Im using Ubuntu server 11.04 x86 in Virtualbox as my builder machine of OpenWRT metarouter images. :-) Not directly in OpenWRT.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Mar 28, 2012 12:37 am

New build 31079 - image, packages tree, config
Modifications:
- modification of KBUILD_CFLAGS -Wno-unused-but-set-variable
- Mikrotik MetaRouter Patch 1.2
- Multimedia support "mediawrt" http://code.google.com/p/mediawrt/ - include tvheadend as module

MIPS - Advanced:
http://openwrt.wk.cz/trunk/mr-mips/open ... 079.tar.gz
MIPS - Basic:
http://openwrt.wk.cz/trunk/mr-mips/open ... sic.tar.gz
CONFIG MIPS - Advanced:
http://openwrt.wk.cz/trunk/mr-mips/config-mips-31079
CONFIG MIPS - Basic:
http://openwrt.wk.cz/trunk/mr-mips/conf ... 1079-basic
PACKAGES:
http://openwrt.wk.cz/trunk/mr-mips/packages/

PPC - Advanced:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... 079.tar.gz
PPC - Basic:
http://openwrt.wk.cz/trunk/mr-ppc/openw ... 079.tar.gz
CONFIG PPC - Advanced:
http://openwrt.wk.cz/trunk/mr-ppc/config-ppc-31079
CONFIG PPC - Basic:
http://openwrt.wk.cz/trunk/mr-ppc/confi ... 1079-basic
PACKAGES:
http://openwrt.wk.cz/trunk/mr-ppc/packages/
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun Apr 01, 2012 5:04 pm

liquidcz,

Thanks for your efforts!

Just to let you know, the asterisk packages you built for your OpenWRT build seem to be severely broken somehow. I'm not sure how to track this issue down, but this is what I see:

1. UDP SIP doesn't work at all. If you try to initiate a SIP dialog via UDP to the OpenWRT/Asterisk host, 'sip set debug on' shows absolutely nothing and the client times out trying to talk to Asterisk.

2. TCP SIP seems to at least partially work (if I change my SIP client to use TCP, I see the entire dialog on the Asterisk console with SIP debug enabled). But Asterisk will not initiate a SIP REGISTER dialog for any 'register=>' lines in my sip.conf to defined SIP trunks. 'sip show registry' shows 'Unregistered' status for the defined peer/trunk, and nothing shows up on the Asterisk console with 'sip set debug on' (which proves that Asterisk isn't even trying to send the registration request). And yes, I made sure that my register line specified TCP as the transport (register=>tcp://user:pass@64.x.x.x). (A SIP REGISTER via UDP doesn't work either, but I figured that was probably related to problem #1.)

3. 'sip reload' is broken. When Asterisk is running as a daemon, sending 'sip reload' causes all 'sip show x' commands to return blanks. I started up Asterisk in the foreground ('asterisk -c'), tried 'sip reload', and found that the Asterisk process hangs and makes the CPU of the MikroTik host router go to 100% until I 'kill -9' the process.

I'm thinking something in Asterisk is broken with regard to network sockets. I'm wondering if this is at all related to your earlier comments about having problems getting Asterisk to build against certain versions of uClibc. As it stands right now, chan_sip in this build of Asterisk is unusable.

Thanks,

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Mon Apr 02, 2012 12:05 am

NathanA, thanks fo your report.

Honestly, i dont have anough time to test all of builded packages and all of features :-), but it can be true, that previous Asterisk packages can be somehow "buggy".

Lets try to use the new one from my last build "session" 31079. :-)
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Apr 02, 2012 11:42 am

Lets try to use the new one from my last build "session" 31079. :-)
Actually, I was using the latest...I tried 31079 both basic and advanced, and the asterisk18 ipk I installed was timestamped March 28.

So far I have only tried it on MIPSBE. I will try it on PPC and see if it is any different, and report back.

Thanks again,

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Mon Apr 02, 2012 1:33 pm

So all of my previous tests have been on a 450G. I pulled out an 1100AH to try your PPC build with, and Asterisk is even more broken:
root@OpenWrt:/# asterisk -cvvvvvvvvvddddddddd
Asterisk 1.8.10.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Parsing /etc/asterisk/asterisk.conf
  == Found
Seeding global EID '02:b2:d9:a2:c7:af' from 'eth0' using 'siocgifhwaddr'
Illegal instruction
...and it just stops there.

"Illegal instruction" would seem to indicate (to me) that the compiler is trying to build or optimize for a slightly different target CPU than what is running in the 1100AH...it sounds like it is trying to execute an instruction that this CPU does not support.

Again, this is build 31079 (advanced).

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Mon Apr 02, 2012 7:39 pm

NathanA, thanks for testing, im going to build it all again, from clean svn directory, from scratch.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Tue Apr 03, 2012 6:28 pm

NathanA, i just uploading new release, 31182. Can you repeat your test?
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 04, 2012 5:00 am

NathanA, i just uploading new release, 31182. Can you repeat your test?
Again, thanks for your time and efforts. Unfortunately, 31182 is behaving the same way as 31079 was: mipsbe asterisk doesn't crash but has problems with UDP traffic and makes the CPU go to 100% when you try to have it register with a remote SIP proxy, and ppc asterisk immediately crashes with "Illegal instruction" upon launch before it gets very far.

I have since tried one of the old builds from nik247 (his latest, 18199), and it works just fine. It comes with Asterisk 1.4 instead of 1.8, though, and I was thinking it would be nice to have a more recent LTS release. :) Maybe one of these days I'll give building OWRT a shot myself.

-- Nathan

EDIT: Oh yeah, and nik247 only ever built for mipsbe, not ppc. So not aware of any working ppc asterisk binaries, past or present.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Apr 04, 2012 12:03 pm

NathanA, i just tested Asterisk (installed all possible modules from my repository) on RB433UAH mips platform, my last build, and make internal call without any problems.

I did just basic configuration like it is describe here: http://jeremy-mcnamara.com/asterisk/how ... -asterisk/.

Then install Windows 7 PBX client 3CX http://www.3cx.com/VOIP/voip-phone.html and connect to my openwrt metarouter from two different virtual machine (win7 + 3cx pbx phone client) and successfully make a phone call.

So, lets try to install all Asterisk modules and make basic configuration. Well, im not an Asterisk expert, but it works for me.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 04, 2012 12:35 pm

NathanA, i just tested Asterisk (installed all possible modules from my repository) on RB433UAH mips platform, my last build, and make internal call without any problems.
Interesting.

I am no stranger to Asterisk. I use 1.8.x in my day-to-day. On nik247's old build, the same configuration that I applied to your build works fine.

Here is what I did:

In asterisk.conf, I set 'verbose = 9' and 'debug = 9' for maximum console output detail.

In sip.conf, I added the following peer, which points at my VoIP provider (which is actually my employer) (I've removed specifics, such as username/password/hostname):
[myusername]
type=friend
sendrpid=yes
secret=mypassword
host=provider.hostname.com
fromuser=myusername
defaultuser=myusername
Our SIP proxy requires registration via SIP REGISTER, so I added this to the [general] section:
register => myusername:mypassword@provider.hostname.com/myusername
Finally, I uncommented 'sipdebug = yes' in the general section so that any SIP dialogs would get printed to the Asterisk console. This means that ANY SIP activity should be logged when it occurs. If nothing is getting printed out, that means no communication is even being attempted.

I did not add a peer to sip.conf for an extension because I intended for an IVR (the built-in demo one in the default extensions.conf) to answer any incoming calls; the default context specified in the general section was the 'default' one which includes the 'demo' context.

When I start up your Asterisk build with this configuration, the CPU goes to 100% until I kill Asterisk. No SIP activity is logged to the console. Asterisk should be sending the SIP registration to the proxy server listed on the "register" line, but it is not trying...it's stuck doing something that is pegging the CPU. I try to force the issue by restarting the SIP module with either 'sip reload' or 'module reload chan_sip.so' (both should have the same effect), but either command merely causes the console to completely hang. At this point, I have no option but to 'kill -9' the Asterisk process (SIGKILL is the only signal that will kill it; a normal 'kill' will not have any effect).

When I repeat this exact configuration with Asterisk 1.4 from nik247's build of svn18199, the configuration works perfectly. I launch Asterisk, it sends the registration request to my provider's SIP proxy, and the entire registration dialog is printed in full to Asterisk's console. The CPU never pegs out. I can then make calls to the Asterisk box's number, it will answer, and start to play the demo recording.

If I comment out the "register =>" line from sip.conf, the CPU does NOT peg to 100%. But if I don't register with my provider, I cannot get any incoming calls.

What I'm going to try next (because I can't remember if I have tried it or not) is to place a direct IP-to-IP call from a SIP client to the RB433AH, while leaving the 'register' line commented out. I have tried IP-to-IP in the past and it didn't work, but I now wonder if the problem with the 'register' line pegging my CPU was also preventing other SIP dialogs from taking place. In any case, 'register' is broken somehow in these builds.

The PowerPC binary still simply fails to launch at all.

I'll let you know what happens with my further tests.

Thanks,

-- Nathan

EDIT: Well, what do you know: the problem with Asterisk not seeing incoming UDP traffic *is* because of the 'register' line pegging the CPU to 100%. I commented out the 'register' line and could make a call to Asterisk from a SIP phone. If I enable SIP-over-TCP even with 'register' uncommented (via 'transport=udp,tcp' and 'tcpbindaddr=0.0.0.0'), Asterisk can get inbound TCP messages just fine, even when the CPU is pegged.

So the problem with the mipsbe build of Asterisk is that 'register' pegs the CPU to 100%, and is somehow causing the Asterisk SIP-over-UDP code to deadlock, such that it can't listen for or acknowledge inbound SIP messages via UDP.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Apr 05, 2012 9:43 am

I thing, this could be communication out of this thread. ;-) So, if you want, cantact me by email liquid at liquid.cz .

Now, i have no idea what can cause this troubles. (i just upload new version, image, packages, mips and ppc build by newer linux (gcc 4.6), maybe i could try to build by older linero 4.5, or older UCLIBC 0.9.32).
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Thu Apr 05, 2012 1:45 pm

I thing, this could be communication out of this thread. ;-) So, if you want, cantact me by email
Sounds good; I'll drop you a line soon when I've got some free time. :)
(i just upload new version, image, packages, mips and ppc build by newer linux (gcc 4.6),
I just tried both mipsbe and ppc out again from your newest builds, and same issues still exist. I am skeptical that the Asterisk PPC binaries got rebuilt since the timestamps on Asterisk IPKs are a few hours older than others in that directory...also, the Packages.gz file appears to not contain everything anymore. 'opkg install asterisk18' can't find that package, so I have to wget it and all of its dependencies and then install them manually.
maybe i could try to build by older linero 4.5, or older UCLIBC 0.9.32).
I suspect uClibc is actually behind the problem with mipsbe Asterisk. I have no idea what is causing the issue with the PPC build.

Anyway, we can take this off-line. I'll contact you shortly. Thanks for everything!

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 11, 2012 10:27 am

I didn't end up contacting liquidcz off-list because I got side-tracked into making my own OpenWRT builds. :-) And making a build of my own is exactly what I have done. In the hope that it will be useful/helpful for someone else, I'm sharing it with you all here.

My main goal was not to create another generic build of OpenWRT and to make all possible packages for it. Instead, my mission was to come up with a solid build of Asterisk to run inside of MetaROUTER. I didn't really care whether it was with OpenWRT or something else, but OpenWRT just happened to be the best way to accomplish this goal.

Whether it is because of newer versions of the kernel, uClibc, gcc, or even Asterisk itself, the current OpenWRT trunk snapshots seem to have some issues with Asterisk stability and stability in general within MetaROUTER. My past experience with nik247's old Kamikaze-era builds, though, demonstrated to me that there was a point in time when it was all working properly. So I decided to start from a known-good foundation first, with older OpenWRT snapshots. Once I'm at a point where I have familiarized myself with the OWRT buildroot process and have Kamikaze working, I can try my hand at getting more recent code to work.

nik247's old builds did work for me, but there were a couple of shortcomings:

1) He made his builds before MikroTik released their latest patch set, which is when PowerPC RouterBOARDs were finally supported. Consequently, his old builds only run on mipsbe.

2) There was always a laundry-list of tweaks I had to make after installing his build, not to mention the fact that Asterisk had to be installed separately from a package repository. I wanted to be able to install and go.

So what I came up with is a build of OpenWRT for both MIPS and PPC that includes Asterisk within the rootfs itself, fixes a few Asterisk-specific things that OpenWRT doesn't get right during the build process by default (hotplug2 behaving nicely with DAHDI device files, permanent storage of voicemail), and assumes some sane system defaults (gets IP via DHCP). The goal was a lean and mean, plug-and-play MetaROUTER image tuned specifically for running Asterisk.

So here are the details:

- It is based off of the last official stable release of Kamikaze (8.09.2, r18961).
- It uses MikroTik's OpenWRT patch set v1.2, with PPC support.
- It builds and runs on both mipsbe and ppc!
- It uses the official set of packages and package versions from Kamikaze 8.09.2; as a result, it runs Asterisk 1.4.
- Asterisk is built into the rootfs and does not need to be installed separately.
- It includes asterisk14, asterisk14-app-meetme, asterisk14-res-agi, asterisk14-sounds, and asterisk14-voicemail.

In order to make this possible, I had to make a few modifications to the stable Kamikaze buildroot tree; 2.6.31.10, which is the Linux kernel version that MikroTik's v1.2 patch was made against, is not supported by the official Kamikaze stable branch, so I had to merge in the 2.6.31 patchfiles that existed in OpenWRT trunk from around that time. Also, there was a bug in the build scripts that prevented Asterisk from being able to be included in the rootfs that I had to work around. iptables had to be upgraded from the stock version that was included with Kamikaze 8.09.2 because too much had changed between kernel 2.6.26 and 2.6.31. Finally, I ended up leaving out dnsmasq, mtd, and opkg from my images; dnsmasq's default config is broken when you are only using one ethernet interface and aren't using OpenWRT as a router, mtd isn't applicable to a MetaROUTER environment, and I have no interest in running a package repository. Other than that, it's pretty much a stock build of Kamikaze.

I have images to download for anyone that wants them:

http://www.nconx.com/~nathan/ast-owrt-m ... s_mips.tgz (MIPS)
http://www.nconx.com/~nathan/ast-owrt-m ... fs_ppc.tgz (PowerPC)

Here are some notes on its use:

- As mentioned earlier, it will try to get an IP via DHCP on eth0.
- The 'root' account already has a default password set of 'ast-owrt', and you can SSH in immediately.
- There is a second account, 'admin', that you can login as via SSH (same default password) which will dump you directly at an Asterisk console shell instead of an ash/busybox shell.
- Both account passwords are set separately, and it IS highly recommended that you change them ASAP! Just SSH as root and run 'passwd root' and 'passwd admin'.
- Asterisk is set to run automatically at boot as a daemon.
- Because /var is a symlink to /tmp on OpenWRT, Asterisk's spool directory has been relocated to /usr/local/var/spool/asterisk. All persistent session data is stored here (voicemail audio files, astdb, etc.) so that it is not lost when the system is rebooted.
- Asterisk configuration files are located in /etc/asterisk

If you want to build it yourself, either just for the experience or in order to re-mix your own version with your own tweaks, here is what you do:

1. Ensure that the host that you want to set up the OpenWRT buildroot on has all necessary requirements and dependencies met.
2. Download all of the essentials (for sake of command examples, I'll assume you are storing these in your home directory):

http://downloads.openwrt.org/kamikaze/8 ... ce.tar.bz2 (official Kamikaze 8.09.2 stable source tarball)
http://www.mikrotik.com/download/metaro ... -1.2.patch (MikroTik MetaROUTER Linux/OpwnWRT patch v1.2)
http://www.nconx.com/~nathan/ast-owrt-m ... r.patch.gz (My patch set against Kamikaze 8.09.2)
http://www.nconx.com/~nathan/ast-owrt-m ... ips.config (My OpenWRT buildroot configuration file for MIPS)
http://www.nconx.com/~nathan/ast-owrt-m ... ppc.config (My OpenWRT buildroot configuration file for PowerPC)

3. Unpack the Kamkiaze 8.09.2 source tree somewhere:
$ mkdir ~/openwrt; cd ~/openwrt
$ tar xvjf ~/kamikaze_8.09.2_source.tar.bz2
4. Apply the MikroTik v1.2 patchset:
$ cd ~/openwrt/8.09.2
$ cat ~/openwrt-metarouter-1.2.patch | patch -p0
5. Take either the MIPS or PPC config file, and place a copy as '.config' in the root of the OpenWRT buildroot tree:
$ cp ~/ast-owrt-mr_mips.config ~/openwrt/8.09.2/.config
6. The official Kamikaze tarball only comes with a small subset of the build files for various packages, and Asterisk is not included in the default set. So grab the full set:
$ make package/symlinks
7. Finally, apply my patchset:
$ zcat ~/kamikaze_ast-owrt-mr.patch.gz | patch -p1
8. (OPTIONAL) If you want to make any changes to the default configuration options, then run the OpenWRT buildroot configurator:
$ make menuconfig
9. Now run 'make' to build everything; the final file will be located at 8.09.2/bin/openwrt-mr-mips-rootfs.tgz or 8.09.2/bin/openwrt-mr-ppc-rootfs.tgz depending on which version you built:
$ make
That should do it. Hopefully others will find this useful. I hope to continue to find time to make changes and enhancements; ultimately, I want to get either FreePBX or some other web-based Asterisk GUI running on MetaROUTER along with Asterisk.

-- Nathan
 
peson
Trainer
Trainer
Posts: 165
Joined: Tue Jul 20, 2004 10:33 am
Location: Sweden

Re: Metarouter images

Wed Apr 11, 2012 11:54 am

That should do it. Hopefully others will find this useful. I hope to continue to find time to make changes and enhancements; ultimately, I want to get either FreePBX or some other web-based Asterisk GUI running on MetaROUTER along with Asterisk.

-- Nathan
Thanks for sharing the nice work Nathan :-D
One question, maybe you've already written it, which disto and packages are you using?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Wed Apr 11, 2012 12:40 pm

NathanA, wouw, thx for howto. Im going to try to build full packages repo fo kamikaze. :-)
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Wed Apr 11, 2012 7:59 pm

One question, maybe you've already written it, which disto and packages are you using?
I built everything under ArchLinux 2010.05 (32-bit x86). I actually never bothered upgrading it past the original base install versions, so I'm sure there are many outdated things in it. It's running Linux 2.6.33, gcc 4.5.0, glibc 2.11.1, binutils 2.20.1.20100318. On the plus side, everything it comes with is from around the era of this Kamikaze version...

Would love to hear reports from others who decide to build Kamikaze under a different/newer distro, or who have success with using a different uClibc or gcc version within their buildroot for cross-compiling (I left selection at their defaults for Kamikaze 8.09: gcc 4.1.2, uClibc 0.9.29).

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Apr 12, 2012 3:45 pm

I just publish my Kamikaze build. Many thanks to NathanA, your patch was very helpful. ;-)

New build Kamikaze 18961 - image, packages tree, config
Default root password: master
eth0 is preconfigured to use DHCP

MIPS:
http://openwrt.wk.cz/kamikaze/openwrt-m ... 961.tar.gz
CONFIG MIPS:
http://openwrt.wk.cz/kamikaze/config-ka ... mips-18961
PACKAGES:
http://openwrt.wk.cz/kamikaze/packages/mr-mips/

PPC:
http://openwrt.wk.cz/kamikaze/openwrt-m ... 961.tar.gz
CONFIG PPC:
http://openwrt.wk.cz/kamikaze/config-kamikaze-ppc-18961
PACKAGES:
http://openwrt.wk.cz/kamikaze/packages/mr-ppc/

Im using VirtualBox machine Ubuntu Server 11.10 x86 (Linux 3.0.0.17, gcc 4.6.1, glibc 2.13, binutils 2.21.53) for my openwrt build.
Last edited by liquidcz on Fri Apr 13, 2012 11:02 am, edited 1 time in total.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri Apr 13, 2012 9:17 am

liquidcz,

I tried out both your MIPS and PPC builds of Kamikaze, and I'm happy to report that at least everything Asterisk-related that I tested worked on both platforms. :)

Hopefully one of these days I will have enough free time to poke at Backfire or even the most recent OpenWRT trunk, and see if we can figure out why MIPS Asterisk has the networking/CPU issue and why PPC Asterisk won't even start. But for now I'm content with a recent version of Asterisk 1.4 LTS running inside of MetaROUTER.

One suggestion that I might make about your build: edit the opkg.conf file to point to your repository out-of-the-box. By default, it points to downloads.openwrt.org, but in your Kamikaze build, it actually points to a nonexistent directory on MY server. :) That's because I had edited opkg.conf to point there, changed my mind about running a repository of my own, and then forgot that I left that change to opkg.conf in my patchset. In any case, if you provide a modified opkg.conf in your builds, then people who use them won't have to manually modify that file in order to download packages.

-- Nathan
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Fri Apr 13, 2012 11:55 am

NathanA,

great to hear that. :-)

It wil be gret to prepare Backfire build too.

I see, opkg, i allready made modification and upload new build. Hope it will help others to simplyfy maintenance metarouters.
I had to admit that im really newbie with patching source for linux build, but studying your patch helped me to start understad patch process. :-) thx.
 
Zod
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Mon Apr 23, 2012 11:02 pm

Re: Metarouter images

Mon Apr 23, 2012 11:07 pm

Is there mipsbe pkg for wifidog

http://dev.wifidog.org/browser/trunk/wi ... s/wifidog/

??

Thx Z
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Metarouter images

Thu Apr 26, 2012 3:23 pm

Is there mipsbe pkg for wifidog

http://dev.wifidog.org/browser/trunk/wi ... s/wifidog/

??

Thx Z
Yeah, i just build it for my repos. http://openwrt.wk.cz/trunk/

Enjoy!
 
gmaguire
just joined
Posts: 5
Joined: Sat Jan 30, 2010 2:08 pm

Re: Metarouter images

Thu May 03, 2012 3:09 pm

Hi, I have just started to use the metarouter images with openwrt and I am a bit confused re the package repositories.

Can I use some of the http://downloads.openwrt.org/ repositories or can I only use the ones that have been specifically created for the metarouter images such as http://openwrt.wk.cz/kamikaze/packages/mr-mips/

I am specifically looking to try and get dansguardian and clamav packages to see how they perform in a metarouter.

Thanks,
Ger.
 
spkmon
just joined
Posts: 1
Joined: Fri May 04, 2012 5:54 am

Re: Metarouter images

Fri May 04, 2012 6:40 am

Hi all, first of all I would like to thanks liquidcz and NathanA for their work as it is very useful for me. I am quite new to linux and routeros as well. My only gol was to run Asterisk and have decent router at home.
At the moment I am running Asterisk 1.8 on liqudcz build 29884 http://openwrt.wk.cz/trunk/mr-mips/open ... 884.tar.gz on RouterBoard RB433UAH and it is working with some limitations.
Here are some comments related to Asterisk:
1) I was trying to do ENUM lookup, but this function/application is not included in the package. I am not sure if is not in OpenWrt source or where else might be the problem.
2) I wanted to convert recordings to more suitable format and found
Converting Wav Files
Find all files in monitor directory and convert to mp4 (1/10 size) removing original wav- requires ffmpeg and x264
nice -n 19 find /var/spool/asterisk/monitor/ -iname "*wav" -type f -exec sh -c 'ffmpeg -i {} -y -vn -aq 40 -ac 1 `echo {} | sed "s/.wav/.mp4/g"` && rm {}' \;
(file size approx 6MB per hour)
http://www.voip-info.org/wiki/view/Asterisk+cmd+Monitor
for any sound processing is necessary to have installed sox http://www.voip-info.org/wiki/view/sox
3) Two days ago I have witnessed brute force attack on my Asterisk, and it would be good to see something like fail2ban http://www.voip-info.org/wiki/view/Fail ... d+Asterisk added to repo
4) Also it would be good to see GUI like FreePBX

As I said at the beginning I am newbie here and I am not sure what exactly is involved in making thees repos, just it would be handy to have it.

Once again many thanks for your effort
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri May 04, 2012 3:01 pm

Can I use some of the http://downloads.openwrt.org/ repositories or can I only use the ones that have been specifically created for the metarouter images
You have to use packages that are specifically built for the platform that you are running OpenWRT on. The MetaROUTER (both mipsbe and ppc) platform(s) are not officially supported by OpenWRT out-of-the-box, so none of the repositories that openwrt.org hosts have packages that will work for you; thus, you will need to use a repository such as liquidcz's. In fact, for the best results, it is highly recommended that you use packages that were built at the same time as the system image you're using; that way you know that the same compiler was used to build the packages and the library dependencies are all satisfied, etc. (So, although there's a chance it may work, it'd be best not to run, say, MikroTik's image that they linked to on the Wiki alongside liquidcz's packages...use liquidcz's packages with his system image. Also, don't use liquidcz's kamikaze image with his trunk packages...keep everything in the same family. :) So kamikaze image with kamikaze packages, trunk image with trunk packages, etc.)

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Fri May 04, 2012 3:21 pm

1) I was trying to do ENUM lookup, but this function/application is not included in the package. I am not sure if is not in OpenWrt source or where else might be the problem.
I'd have to take a look at the build scripts/Makefile for Asterisk 1.8 on a recent OpenWRT; I haven't had time to poke at this lately.
2) I wanted to convert recordings to more suitable format and found [...] for any sound processing is necessary to have installed sox
Are you trying to transcode recordings being made by Asterisk, or the stock sound recordings that come with Asterisk? If the latter, I'd highly advise you to just batch-process them on a real PC and then transfer them over to your OpenWRT MetaROUTER afterward!
3) Two days ago I have witnessed brute force attack on my Asterisk, and it would be good to see something like fail2ban
Correct me if I'm wrong, but fail2ban appears to just be a Python script. I note that liquidcz's repository has a python interpreter. Have you tried installing the Python package on OpenWRT and then following the install instructions in fail2ban's README?

Most people argue that because fail2ban is dependent on Python, and Python is a bit...large to run on most embedded systems, someone should come up with a lightweight fail2ban alternative or rewrite. Based on its current architecture, it seems highly unlikely that fail2ban will ever become an OpenWRT package.
4) Also it would be good to see GUI like FreePBX
I am actively working on this. :) Not FreePBX specifically...that depends on PHP. Someone else tried to port FreePBX to an embedded system a few years back, and got pretty far (http://www.rowetel.com/blog/?p=55), but eventually gave up and the project never got past 'alpha' status: it was just too unwieldy to port onto a smaller device and I don't think most of his changes ever got committed to FreePBX trunk, so a lot of that work would have to be re-researched and re-done on a more modern version of FreePBX. It's definitely doable, I'm sure, but I'm *not* sure that there is anybody who feels like taking the time to do it...I sure don't!

My strategy is to get Asterisk-GUI (https://wiki.asterisk.org/wiki/display/AST/Asterisk+GUI) bundled into a package. It's a bit rough around the edges, true, but it does the job and is perfect for an embedded system like OpenWRT...it's implemented as a bunch of static HTML pages (no CGI!), is AJAX-based, and simply makes calls to the Asterisk AMI interface over HTTP. Very, very lightweight.

-- Nathan
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Sun May 06, 2012 7:22 am

Now, i have no idea what can cause this troubles. (i just upload new version, image, packages, mips and ppc build by newer linux (gcc 4.6), maybe i could try to build by older linero 4.5, or older UCLIBC 0.9.32).
Hey again liquidcz,

I just found an open ticket with OpenWRT about this very problem that I was running into with Asterisk on your trunk builds (where Asterisk would go to 100% CPU when I tried to SIP REGISTER with a VoIP provider):

https://dev.openwrt.org/ticket/10974

From reading through it, it appears that the solution is in fact to downgrade to uClibc 0.9.32, and then remove the '500-nres.patch' file from packages/net/asterisk-1.8.x/patches/ before building.

Looks like they still don't know why this problem happens with uClibc 0.9.33. Apparently it had something to do with the fact that uClibc 0.9.33 dropped some previously supported function calls/APIs that have to do with DNS name resolution. They tried to work around this by forcing Asterisk to use a different function call, and when they do this, it causes the 100% CPU problem.

So downgrading uClibc would fix the mipsbe build of Asterisk on trunk. I haven't gotten around to poking at the ppc build's crash issue yet.

Hope this helps,

-- Nathan

EDIT: After studying this a bit more, uClibc 0.9.33 actually introduced res_n* functions for the first time ever to the library, and older versions did not have them. Asterisk autoconf just dealt with it before. Not only do these functions appear to be buggy, but something else must have also changed underneath the hood, because if you patch autoconf to force Asterisk to not be built to use res_ninit (which is how it was always built before 0.9.33), you get the 100% CPU on SIP REGISTER problem. In any case, according to reports, going back to 0.9.32 works.
 
Zod
Frequent Visitor
Frequent Visitor
Posts: 90
Joined: Mon Apr 23, 2012 11:02 pm

Re: Metarouter images

Tue May 08, 2012 12:36 am

Is there mipsbe pkg for wifidog

http://dev.wifidog.org/browser/trunk/wi ... s/wifidog/

??

Thx Z
Yeah, i just build it for my repos. http://openwrt.wk.cz/trunk/

Enjoy!
Excellent - thank you!
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 721
Joined: Tue Aug 03, 2004 9:01 am

Re: Metarouter images

Tue May 08, 2012 12:45 am

Hey everybody,

I'm happy to announce that I have a preliminary version of an OpenWRT build that includes Asterisk-GUI! Most things work, but I still have a few bugs to iron out. I'd definitely welcome anybody else's testing and feedback, though!

This is kind of a strange mish-mash of software...Asterisk-GUI comes with a front-end to the automatic phone provisioning/templating feature of Asterisk (new as of 1.6.0.x) which I wanted to include and be able to use, but my only working OpenWRT build with Asterisk in it so far is Kamikaze 8.09.2 running Asterisk 1.4. I spent a little bit of time trying to build Backfire 10.03.1, but Backfire's toolchain builder doesn't like something in my build environment that I have not yet been able to identify. Add to that the fact that there is still an unidentified problem with later versions of OpenWRT buildroot that cause Asterisk on PPC MetaROUTER to crash out during startup, which led me to the inescapable conclusion that for right now, the easiest thing to do would actually be to backport Asterisk 1.8.x to Kamikaze. Which is exactly what I did. :P (Not actually too difficult, I discovered in the end.)

So this build includes Kamikaze 8.09.2, Linux 2.6.31, uClibc 0.9.29, Asterisk 1.8.11.1, Asterisk-GUI 2.1.0-rc1, and MikroTik's MR patchset 1.2.

Here are a few things to note about it:

1. I'm afraid it is rather US-centric right now...by default, the OpenWRT Asterisk 'sounds' package only includes GSM-encoded versions of the audio prompts, which I deem to be of insufficient quality. So I removed those and decided to ONLY include uLaw-encoded sound files, since that is what is considered landline-grade around these parts. Sorry. :( You can modify the asterisk-1.8.x Makefile to select whatever audio prompts you want when you build your own.

2. If you do change the audio prompt selection when building your own image, watch out for the voicemail audio codec, too...near the end of '999-conf_file_changes.diff' you can see that voicemail.conf gets patched to only record/save messages in uLaw format. You can either change that before you make your build (just edit that file before running 'make'), or within MR after you import the image by editing /etc/asterisk/voicemail.conf

3. I decided to go ahead and include the default Music-On-Hold files from Asterisk as well, which OpenWRT doesn't do traditionally.

4. Asterisk 1.8 comes with some defaults configured in res_phoneprov (the phone provisioning feature) for Polycom SoundPoint IP phones, which we use. The included templates were very out-of-date (pre UC-3.3.0) and didn't work at all with the new simplified provisioning of more recent Polycom firmware releases. So I replaced those templates with ones that should work with Polycom UC 3.3.0 and above (into 4.x). The firmware files and the 000000000000.cfg from the firmware release you are using need to be uploaded to /usr/lib/asterisk/phoneprov/polycom

5. I re-thought a lot of how I constructed my previous patch-set, and have done things a little differently this time. I will probably fix a few things and re-release a new version of the original patch at some point. Instead of storing volatile data (voicemail, astdb, etc.) in /usr/local/var/lib/asterisk, I am now storing that data in /home/asterisk. At some point, I may even add an 'asterisk' user to the system and change it so that Asterisk doesn't run as 'root'.

6. The default username/password for Asterisk-GUI is also 'admin'/'ast-owrt'. Note that this is completely independent of the system usernames/passwords, so when you change the password in the GUI, this has no effect on passwords used for SSHing into OpenWRT.

7. Here are a few known issues with the current version as-is:

- On first boot, Asterisk-GUI asks you to restart Asterisk manually rather than restarting it itself.
- I need to include an NTP client in the build...CDR records show the wrong date/timestamps.
- Any section of the GUI that needs to get a list of files from the OWRT FS (Music-On-Hold, Voice Menus, File Editor, Backup) doesn't work.
- Maybe I'm blind/missing something, but even if VM is enabled for a user, if the user doesn't answer the call, it doesn't go to VM.
- If you put the Asterisk server behind a NAT, even with correct port forwards, phone provisioning won't work.

Much of it *is* working, though: I have successfully registered to VoIP providers, created users, auto-provisioned Polycom phones, created inbound and outbound calling rules and dialplans, made both inbound and outbound calls, and looked at CDR records. I haven't tested call queues, intercom, or conferencing yet.

Right now, I don't have images for all of you to download...they weigh in at over 20MB with all of the audio files. :( So you'll have to roll-your-own. To make an image, you will need to follow the instructions that I outlined in my earlier post for my original images (so this new patch *requires* that you apply my original patch first...it doesn't include all of the necessary changes from that patch), but before you run 'make', you will need to apply a second patch:

http://www.nconx.com/~nathan/ast-owrt-m ... 1.patch.gz

I also have new '.config' files, one for mipsbe and one for ppc:

http://www.nconx.com/~nathan/ast-owrt-m ... ips.config (MIPS)
http://www.nconx.com/~nathan/ast-owrt-m ... ppc.config (PPC)

Please note a couple of things:

- This ADDS asterisk-1.8.x to the list of asterisk versions in Kamikaze. Don't build more than one version of Asterisk into your image: pick one and stick with it. The results will be unpredictable otherwise.

- Asterisk-GUI probably could be made to work with Asterisk 1.4 or 1.6.1.x if you decide for some reason you don't want to use 1.8, but my patches don't support this, and this would be left as an exercise for the reader. Asterisk-GUI is configured to be dependent on asterisk-1.8.x, so selecting it will also select 1.8 to be built.

- Many OpenWRT platforms (RouterBOARDs included) don't include any 'zaptel' hardware, but Zaptel has been traditionally included because even in 1.8, the "MeetMe" conferencing app requires it to be present so that it can use it as a timing source. However, Asterisk 1.8 won't work with the old 'zaptel' driver and instead requires a more recent version of the renamed 'dahdi' driver. My patch adds DAHDI to Kamikaze, but also leaves the 'zaptel' package in menuconfig. Just like with Asterisk versions, don't build both zaptel and dahdi into your image. Pick one. (I recommend DAHDI even if you go with Asterisk 1.4, because it supports both.)

Have fun, and let me know if there are any questions, or reports of other broken features.

-- Nathan
  • 1
  • 2
  • 3
  • 4
  • 5
  • 7

Who is online

Users browsing this forum: No registered users and 1 guest