17201 - Howto fix the milkfish-dd?

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2, 3  Next
Author Message
TuxnetDE
DD-WRT Novice


Joined: 13 Sep 2010
Posts: 16

PostPosted: Thu Jul 14, 2011 17:37    Post subject: 17201 - Howto fix the milkfish-dd? Reply with quote
tp-link 1042nd

The milkfish-dd did not start and respond as status

SER Uptime:
Error opening openser's FIFO /tmp/openser_fifo
Make sure you have line fifo=/tmp/openser_fifo in your config

No i entered the milkfish-dd wiki for help and found this

A: The OpenSER control tools could not connect to the FIFO interface. Check if your configuration loads the mi_fifo module and configures a fifo name. Example for the configuration syntax:
loadmodule “mi_fifo.so” modparam(“mi_fifo”, “fifo_name”, ”/tmp/openser_fifo”)

There is no /tmp/openser_fifo after dd-wrt startup.

root@charydbis:/# ls /tmp
ath0_hostap.conf hosts resolv.conf var
cron.d igmpproxy.conf resolv.dnsmasq www
crontab loginprompt root
dnsmasq.conf nvram udhcpc
etc oet udhcpc.expires

There is no mi.fifo module running

root@charydbis:~# lsmod | grep fifo
root@charydbis:~#

There is no hard compiled fifo module

root@charydbis:/tmp/var# dmesg | grep fifo
root@charydbis:/tmp/var#

What is the way to fix this?
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Fri Jul 15, 2011 15:43    Post subject: Reply with quote
screenshots
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
MrFidget
DD-WRT User


Joined: 15 Jul 2010
Posts: 378

PostPosted: Sun Sep 18, 2011 0:07    Post subject: Reply with quote
Hi there

FYI, I am running Broadcom DD-WRT v24-sp2 (06/14/11) mega - build 17201 on an E3000

There is a fifo module thats missing.
Quote:
/usr/lib/openser/mi_fifo.so

This module needs to be loaded along with the following
Quote:
modparam(“mi_fifo”, “fifo_name”, ”/tmp/openser_fifo”)

Should also be in the /var/openser/milkfish_openser.cfg file

This is as per the Kamailio instructions here
http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:faq
Quote:

Q: ERROR: Error opening OpenSER's FIFO /tmp/openser_fifo when using openserctl

ERROR: Error opening OpenSER's FIFO /tmp/openser_fifo
ERROR: Make sure you have the line 'modparam(“mi_fifo”, “fifo_name”, ”/tmp/openser_fifo”)' in your config
ERROR: and also have loaded the mi_fifo module.

A: The OpenSER control tools could not connect to the FIFO interface. Check if your configuration loads the mi_fifo module and configures a fifo name. Example for the configuration syntax:
loadmodule “mi_fifo.so” modparam(“mi_fifo”, “fifo_name”, ”/tmp/openser_fifo”)


I have yet to try an earlier version of the firmware, but I will have to change routers as there are some issues with the WiFi in the E3000 with earlier builds

I'll post my findings here too

Any comments from anyone ??

Cheers
Chris
MrFidget
DD-WRT User


Joined: 15 Jul 2010
Posts: 378

PostPosted: Sun Sep 18, 2011 10:46    Post subject: Reply with quote
Further info:
Quote:
root@gw-tpg:~# openser -f /var/openser/milkfish_openser.cfg
Segmentation fault


I tried to create the fifo file. No difference

Not looking good Sad

/C
MrFidget
DD-WRT User


Joined: 15 Jul 2010
Posts: 378

PostPosted: Tue Sep 20, 2011 0:25    Post subject: Reply with quote
Although I am running Broadcom, it looks like this is common across all of the builds.

When I get some "time" Laughing I'll go through the versions to find out which release it is broken in and report a fault in Mantis

v15962 seems OK at this stage on both an E3000 and a WNR3500L

/C
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Tue Sep 20, 2011 8:01    Post subject: Reply with quote
http://svn.dd-wrt.com/ticket/2204#ticket
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
MrFidget
DD-WRT User


Joined: 15 Jul 2010
Posts: 378

PostPosted: Tue Sep 20, 2011 23:55    Post subject: Reply with quote
Cheers Sash

Looks like the mi_fifo.so isn't included in the versions that work.

Code:
root@gw-tpg:/usr/lib/openser/modules# ls -l
-rwxr-xr-x    1 root     root        19634 Dec 24  2010 auth.so
-rwxr-xr-x    1 root     root        13386 Dec 24  2010 auth_db.so
-rwxr-xr-x    1 root     root        43342 Dec 24  2010 dbtext.so
-rwxr-xr-x    1 root     root        19074 Dec 24  2010 exec.so
-rwxr-xr-x    1 root     root         7798 Dec 24  2010 maxfwd.so
-rwxr-xr-x    1 root     root        42054 Dec 24  2010 milkfish_nathelper.so
-rwxr-xr-x    1 root     root        29838 Dec 24  2010 registrar.so
-rwxr-xr-x    1 root     root        25774 Dec 24  2010 rr.so
-rwxr-xr-x    1 root     root        14586 Dec 24  2010 sl.so
-rwxr-xr-x    1 root     root        15282 Dec 24  2010 textops.so
-rwxr-xr-x    1 root     root       174290 Dec 24  2010 tm.so
-rwxr-xr-x    1 root     root        63878 Dec 24  2010 usrloc.so

Yet the named pipe is there
Code:
root@gw-tpg:/usr/lib/openser/modules# ls -l /tmp
-rw-------    1 root     root            5 Sep 20 21:30 bcmupnp.pid
drwx------    2 root     root            0 Sep 20 21:29 cron.d
-rw-------    1 root     root            0 Sep 20 21:30 crontab
-rw-r--r--    1 root     root          118 Sep 20 21:29 dnsmasq.conf
drwx------    2 root     root            0 Jan  1  1970 etc
-rw-r--r--    1 root     root           43 Sep 20 21:29 hosts
-rw-------    1 root     root          230 Sep 20 21:30 igmpproxy.conf
-rw-r--r--    1 root     root           86 Jan  1  1970 loginprompt
-rw-r--r--    1 root     root            5 Sep 20 21:29 nas.wl0lan.pid
drwxr-xr-x    2 root     root            0 Jan  1  2000 nvram
drwxr-xr-x    3 root     root            0 Jan  1  1970 oet
prw-rw----    1 root     root            0 Sep 20 21:30 openser_fifo   <---- Named Pipe for openSER
drwxr-xr-x    2 root     root            0 Jan  1  1970 openvpn
drwxr-xr-x    2 root     root            0 Sep 20 21:29 ppp
-rw-------    1 root     root           45 Sep 20 21:31 pptp_connected
drwxr--r--    2 root     root            0 Jan  1  1970 pptpd
-rw-r--r--    1 root     root           44 Sep 20 21:29 resolv.conf
-rw-r--r--    1 root     root           50 Sep 20 21:29 resolv.dnsmasq
drwx------    3 root     root            0 Jan  1  1970 root
drwxr-xr-x   10 root     root            0 Jan  1  1970 var
drwxr-xr-x    2 root     root            0 Jan  1  2000 www
root@gw-tpg:/usr/lib/openser/modules#


This is the case on DD-WRT v24-sp2 (12/24/10) big - build 15962 on my Netgear WNR3500L

maybe something in the compile. I have checked the milkfish.org forums and have noticed that there are some issues late last year with the build. But Milkfish had a meltdown and the forums are frozen Confused so no posting there

/C
MrFidget
DD-WRT User


Joined: 15 Jul 2010
Posts: 378

PostPosted: Wed Sep 21, 2011 21:32    Post subject: Reply with quote
Further updates....

I have been poking through the source code and noticed that there have not been any changes to the Milkfish or OpenSER for years.

I would say that this bug is not dependent on the missing module mi_fifo.so module.

Once i get this source thing checked out I'll have a more detailed look into it.

I'll also try to get the first "broken" release version too. Give me a few days as I have just had my $$$ work expanded by a solid month. Very Happy Not so much spare time Wink

/C
Zeroin
DD-WRT Novice


Joined: 29 Oct 2011
Posts: 6

PostPosted: Sat Oct 29, 2011 21:38    Post subject: openser_fifo Reply with quote
hi all.
17598M - sameshii
I've been thinking that I broke it my self messing with the cfg.. that was a quite a waste of time tryng to fix it. Twisted Evil
thank you people
I'll try to reinstall openser using optware. will post results.
MrFidget
DD-WRT User


Joined: 15 Jul 2010
Posts: 378

PostPosted: Sun Oct 30, 2011 3:36    Post subject: Reply with quote
Cool, let me know how you go.....

I've been playing a little with r15962 and it works on that version.

/C
Zeroin
DD-WRT Novice


Joined: 29 Oct 2011
Posts: 6

PostPosted: Mon Oct 31, 2011 19:07    Post subject: Reply with quote
well, it works as a seprite service, but I don't know yet how to point milkfish webfece to it. I have a new paths to openser and it's modules - like /opt/sbin/ and /opt/etc/openser/ insted of /sbin and /var/..

There is enother motivating thing.. milkfish_openser doesn't include tls support in it's build. And opt-pak openser - does.

so if someone can share some idies how to make it right with out compilling a custom dd-wrt that would be nice. Embarassed

Found enother thing: openser is included in OpenWRT packages as a new project called Kamailio and it has administration webface integrated in LuCi. And as far as i know that webface is a product of the same team that worked on openser, so everything is more solid there.

Thats why we didn't get any updates with milkfish so long! It has no future any more.
MrFidget
DD-WRT User


Joined: 15 Jul 2010
Posts: 378

PostPosted: Mon Oct 31, 2011 22:46    Post subject: Reply with quote
Cool re getting OpenSER working Smile

You can do most of what you would do on the Milkfish interface, which is regsitering local devices and creating aliases by pointing the OpenSER database to wherever it is stored on DD-WRT (/var/openser/dbtext) from memory

Re Kamailio:

Quick history:

SER = Sip Express Router. Set up by IPTel

OpenSER came from a fork where some developers who wanted more innovation, while SER wanted stability.

OpenSIPS came from a fork of OpenSER for various reasons

Milkfish forked from OpenSER especially for ruinning on embedded hardware.

Last year (or maybe the year before) OpenSER and SER decided to combine their code and work on a standard platform which would work with both OpenSER and SER modules and "styles of doing things". They called it Kamailio.

OpenSIPS was invited but decided to stay separate.


Now, there is a cool addition in Kamailio 3.1, current version is 3.2, there is now a module that supports registration of the SIP proxy to a third party SIP provider, like Asterisk / FreeSwitch does.

Up until now, xSER would only route and transform. Any outbound regsitrations would have to be acomplished by the client.

I am certainly keen on seeing a current, albeit stripped down, version of Kamailio on DD-WRT and am more than happy to contribute what little spare time I have between family and two CrazyGoNuts Shocked contracts I have at the moment.

Without having to completely recompile everything, I have had some success with the Firmware Modification Kit http://www.bitsum.com/firmware_mod_kit.htm which allowed me to install a version of dnsmasq which I compiled with a TFTP service and logging enabled.

The results are varied, but, I haven't bricked a unit.....yet Wink

BTW I am compiling a 2.6 kernel on Netgear WNR3500Ls. I am also looking at running the same on a Linksys E3000.

Back to Milkfish: So far I have been able to get some basic SIP / RTP proxy services running. I haven't flogged it much yet, but I am about to for a client. Just to see if I can get a direct media stream between the two sites for a hosted PBX and handsets behind NAT.

Specifically, I am trying to customise a DD-WRT version that has:

TFTP for:
* Provisioning phones and managing the handset firmware via a USB key

SIP router and RTP proxy to:
* Allow a direct media path between the WAN address and the ITSP where the PBX is hosted externally
* Allow direct media between handsets on the same LAN
* Provide a basic backup system for when systems or links go down. A bit like Cisco's SRST
* Basic SIP border controller for "normalising" SIP for various IP PBXs behind a firewall.
* Running multiple Aastra handsets behind NAT.(that has always been an issue for me)

I also need:
* VLAN support, both port based and tagged
* Basic QoS and packet queuing
* OpenVPN
* PPTP for easy access to the LAN for remote support

I would love IPSec support. So far it hasn't been forthcomming.

Most of this stuff, other than the IPSec is available pretty much out of the box, with a bit of hacking and repackaging.

BTW, what is your interest in OpenSER / Kamailio ?

/C

ps. I am sorry if I am a little long winded in explaining things, I figured if we get a result in the end, then some further information and background might help someone else who stumbles across this thread. Smile
Zeroin
DD-WRT Novice


Joined: 29 Oct 2011
Posts: 6

PostPosted: Fri Nov 04, 2011 6:14    Post subject: Reply with quote
tnx for history.

yea, I've found a way to use "textdb" with a new openser and old paths to db that are used by webface.

But still, Milkfifh has a nice status button on a webface and an autoconfig on enabling service. And I might be wrong but openser uses some kind of "nat-helper" wich is allso configured automaticly.

So I guess we just need a dd-wrt with the right openser version.


I'm looking for a standalone solution with min complexity and max security for incorporate/private sip without using any third-party services.
I think that there is no need for Asterisk while openSER does the most functionality and clientside's zrtp makes it enough secure.

ps: Plane tls has a mitm-vuln. I'm still reserching srtp, but as far as I've figured it out: to avoide mitm I need to use a trusted CA to authorise clients certs - that is too far form ease.
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Wed Nov 09, 2011 8:30    Post subject: Reply with quote
how is the status of investigation?
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
himbeere
DD-WRT Novice


Joined: 20 Aug 2008
Posts: 16

PostPosted: Wed Nov 16, 2011 10:59    Post subject: Reply with quote
I think dd-wrt has to switch to Kamailio.
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum