WRTP54G & MJPROXY

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

WRTP54G & MJPROXY

Post by 2me4you »

Hi all,

I just got an unlocked WRTP54G (3.1.27 firmware), I'm able to use the ping 0.0.0.0 && 'command' trick.

I need to install a mjproxy into the router, so I can use magicjack on it without a PC.

Anyone has a detailed tutorial, newby on this. I have 1 Sipura 1000 working redirecting the proxy to a MAC at home. But this other I'm trying to configure it's to be deployed abroad.

Thanks in advance.
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

Just to clarify, some addtl information.

I'm up to whatever be needed (openWrt, DD-WRT, anything) to get Magicjack service running on this router (WRTP54G) without the need of an addtl PC.

Just wondering if using wget to gather a mjproxy (MIPS compiled bin) into the router / and adding the startup command at /etc/init.d/rcS script will work ?

Please HELP!!!!!!!!!!!!!!

if I do an dv, shows / filesystem has no space available
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

Some addtl info.

I was able to flash a new firmware that has dropbear running, so I can ssh to 192.168.15.1

now
a) / is a read-only filesystem
b) there's a /var.tar that gets untar'ed at boot time ran by /etc/init.d/rcS and that /var directory is writable.

Is there anyways to:
a) make the / filesystem writable

I'm thinking if a new var.tar can be written that includes mjproxy bin and the command included in /etc/init.d/rcS to run it, that will be it for me

HELPPPPPPP PLEASEEEEE!!!!!!
nulland
magicJack Apprentice
Posts: 18
Joined: Mon Nov 03, 2008 12:25 am
Location: Torrance, CA US

Post by nulland »

As far as I know, if your firmware supports either a minix file system or a jffs/jffs2 file system, you can write to the flash rom and install the mjproxy. If not, you can still run mjproxy by downloading it from a server and running it from ram (/var directory) each time the router boots. Another way is to modify the firmware by extracting components, installing mjproxy and rebuilding the firmware using a firmware modification kit. This kit supports most of DD-WRT releases. I have done it for my Linksys WRT54GV5 and Buffalo WHR-G125 routers. You can also try flashing your router with RouterTech firmware which has mjproxy integrated as a utility, assuming that your router is supported by RouterTech. I have a Dlink DSL-G624T with a RouterTech firmware with mjproxy that starts at bootup.
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

Thanks for the info.

a) I have wrtp54g running it's native firmware, just ssh enabled.
b) I can't find a working image of either dd-wrt,openwrt, tomato, Tech Router to flash into it.
c) How can I "modify the firmware by extracting components" ?
d) How can I include the mjproxy download command into /var ?


HELPPPPPPPPPP!!!!!
nulland
magicJack Apprentice
Posts: 18
Joined: Mon Nov 03, 2008 12:25 am
Location: Torrance, CA US

Post by nulland »

2me4you wrote:Thanks for the info.

d) How can I include the mjproxy download command into /var ?
SSH to router and enter following commands:

wget http://pagemen.110mb.com/mjproxy.zip -O /var/mjproxy
chmod a+x /var/mjproxy
/var/mjproxy

The last command checks if mjproxy was downloaded, unzipped and will run in your router. If successful, it will put out info on how to use the command. For more info, read posts in:

http://www.phoneservicesupport.com/ddwr ... t6913.html
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

SSH to router and enter following commands:

wget http://pagemen.110mb.com/mjproxy.zip -O /var/mjproxy
chmod a+x /var/mjproxy
/var/mjproxy

The last command checks if mjproxy was downloaded, unzipped and will run in your router. If successful, it will put out info on how to use the command. For more info, read posts in:

http://www.phoneservicesupport.com/ddwr ... t6913.html[/quote]


This will allow me to download correctly the mjproxy, but
a) seems not to be binary compatible, getting end of line unexpected; when trying to run it
b) how can I automate this process (supouse I get a compatible compiled version of mjproxy) since /var is RAM and constructed from an untar of var.tar every boot time and I can't modify the /etc/init.d/rcS

Your help is really appreciated!!!
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

Ok. I got it working.

I'll post a step by step guide later

Thanks all for your help!!!
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

I think I was too excited and went ahead saying it's working, but it's not.

I did find the way to put mjproxy into the router and start it automatically without using none of the open firmware but with it's original firmware. I used wrtp-mod-kit to extract the root & kernel, modify the root to include mjproxy to install in /var directory and modified the /etc/init.d/rcS file to run it a every boot time.

So I have mjproxy service running, but can'register, always getting Registration Status failed.

My router LAN address is 192.168.15.1, so I have on the ATA Line1 proxy 192.168.15.1:5070, while on the router /var/mjproxy 0.0.0.0 5070 proxy01.miami.talk4free.com 5070 MYLONGPASSWORD is running.

Any suggestion ?
nulland
magicJack Apprentice
Posts: 18
Joined: Mon Nov 03, 2008 12:25 am
Location: Torrance, CA US

Post by nulland »

Some suggestions:

1. Modify /etc/init.d/rcS to run the following commands:

sleep 60
/var/mjproxy 0.0.0.0 5070 proxy01.miami.talk4free.com 5070 MYLONGPASSWORD

The command sleep 60 (delay in seconds) allows the router to connect to internet before running the mjproxy command. Without this command, the router executes mjproxy at boot time even when it has not connected to the internet yet and so it fails. You may adjust the delay time as you wish.

2. From your earlier post, you mentioned you have a SIPURA 1000 being redirected to a MAC running mjproxy. You may want to use that device to test if it can register using the WRTP54G running the mjproxy.

3. Not sure about this but the mjproxy was written as a SIP proxy to run in a PC or router with an IP address different from the IP address of the ATA. In your case, the WRTP54G has the router and ATA functions in one device and thus they have the same IP address. Using different addresses for the router and ATA may help, but I don't know if this can be done in your router.
mpwebster
MagicJack Newbie
Posts: 8
Joined: Tue Aug 26, 2008 8:55 am

Post by mpwebster »

Not sure if this helps but I have mine running from router using mjproxy, however when I setup my sisters using the same router and ata but only changing the password and user name it would not register. After fighting it for several days I finally decided to try setting it up the old way without the router just typing in the password in the ata and using the mj proxy 216.234.78.8:5070. It immediately registered and is up and running.
In other word try the old way not using the router. It might be your problem too.
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

nulland wrote:Some suggestions:

1. Modify /etc/init.d/rcS to run the following commands:

sleep 60
/var/mjproxy 0.0.0.0 5070 proxy01.miami.talk4free.com 5070 MYLONGPASSWORD

The command sleep 60 (delay in seconds) allows the router to connect to internet before running the mjproxy command. Without this command, the router executes mjproxy at boot time even when it has not connected to the internet yet and so it fails. You may adjust the delay time as you wish.
I'd included a sleep 30 in my rcS script, I'd also tried killing the running mjproxy and starting it over, same results.
2. From your earlier post, you mentioned you have a SIPURA 1000 being redirected to a MAC running mjproxy. You may want to use that device to test if it can register using the WRTP54G running the mjproxy.
Yes, I can register my SIPURA 1000 using proxy @ wrtp54g
3. Not sure about this but the mjproxy was written as a SIP proxy to run in a PC or router with an IP address different from the IP address of the ATA. In your case, the WRTP54G has the router and ATA functions in one device and thus they have the same IP address. Using different addresses for the router and ATA may help, but I don't know if this can be done in your router.
Any hint on how to enable different ip's ? ( I believe I read somewhere else there are 2 network interfaces defined (eth0 and eth1) on the WRTP54G. I'll look into the configure.xml and see if I can find a way, any suggestions it's very welcome!!!

Thanks
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

mpwebster wrote:Not sure if this helps but I have mine running from router using mjproxy, however when I setup my sisters using the same router and ata but only changing the password and user name it would not register. After fighting it for several days I finally decided to try setting it up the old way without the router just typing in the password in the ata and using the mj proxy 216.234.78.8:5070. It immediately registered and is up and running.
In other word try the old way not using the router. It might be your problem too.
Tried that, but I'm pretty sure this one needs the proxy I have it running on a SIPURA 1000 with a proxy on a MAC
pepem
MagicJack Newbie
Posts: 7
Joined: Fri Sep 04, 2009 10:00 pm

Post by pepem »

Hi,

I also have a Linksys WRTP54G router and I would like to set it up with MJMD5 proxy, but I have no idea how to do it, not even where to start.

Can anybody post an Step by Step guide so I can give it a try?
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

pepem wrote:Hi,

I also have a Linksys WRTP54G router and I would like to set it up with MJMD5 proxy, but I have no idea how to do it, not even where to start.

Can anybody post an Step by Step guide so I can give it a try?
I'm at the point where I have modified the firmware to run the mjproxy, but since voice & router has same ip address and mjproxy was not designed to work as that, it's not registering :( :( . I'm working on either modifying the mjproxy or make separates ip addresses, no luck yet. I'll keep posted if I get any luck
2me4you
magicJack Apprentice
Posts: 15
Joined: Tue Oct 27, 2009 9:28 am

Post by 2me4you »

Ok. finally got it working.... :lol:

Steps.
1._Get wrt-mod-kit
2.- Get squashfs-tools
3.- Extract root partition from your firmware image
4.- add mjproxy to var.tar
5.- Include mjproxy startup command in /etc/init.d/rcS
6.- Create new root partition
7.- Create new firmware image.
8.- On the SIP port do not use 5070
9.- Use 192.168.15.1:5070 on your SIP proxy

Plug a phone and your good to go.
blueadept
magicJack Apprentice
Posts: 12
Joined: Sun Apr 27, 2008 5:32 pm

Post by blueadept »

Very nice. Thank you for this information. I have had one of them sitting dormant because I felt it was useless because it couldn't run the mjmd5! I almost put it up on ebay...thanks again.

I found all the files here. I still havent attempted it yet, but will when I have time.

http://www.howtounlockvoip.com/stickied ... tp54g.html
cutecat
MagicJack Newbie
Posts: 1
Joined: Sat Apr 18, 2009 11:25 pm

Post by cutecat »

nulland wrote:As far as I know, if your firmware supports either a minix file system or a jffs/jffs2 file system, you can write to the flash rom and install the mjproxy. If not, you can still run mjproxy by downloading it from a server and running it from ram (/var directory) each time the router boots. Another way is to modify the firmware by extracting components, installing mjproxy and rebuilding the firmware using a firmware modification kit. This kit supports most of DD-WRT releases. I have done it for my Linksys WRT54GV5 and Buffalo WHR-G125 routers. You can also try flashing your router with RouterTech firmware which has mjproxy integrated as a utility, assuming that your router is supported by RouterTech. I have a Dlink DSL-G624T with a RouterTech firmware with mjproxy that starts at bootup.
I have a dlink G624T with routertech 2.91.1 firmware but don't know how to run mjproxy on that cud u kndly let me know the step by step instructions.
mjc8870
MagicJack Contributor
Posts: 64
Joined: Wed Nov 12, 2008 8:59 pm

Post by mjc8870 »

Is this the only way to use ATA with magicjack. I am looking to do this, but don't have this router or knowledge to do this.
nulland
magicJack Apprentice
Posts: 18
Joined: Mon Nov 03, 2008 12:25 am
Location: Torrance, CA US

Post by nulland »

@ cutecat

Go to Routertech forum and do a search for "mjproxy". Someone posted the same question and got his answer. Hope this helps.
jeison
magicJack Apprentice
Posts: 19
Joined: Sat Jan 30, 2010 4:01 pm

Post by jeison »

this question es for : 2me4you

i know i will not look smart asking this, but i`ll ask any ways,

are you using LINUX ?

i have a copu of UBUNTU 9.10 , will this ver. 9.10 be OK. ?

or will i need to get a different LINUX


i`m sorry i wanted to go LINUXA for some time now, but i never got to it
cucu007
magicJack Apprentice
Posts: 14
Joined: Tue Dec 02, 2008 11:26 pm

HELP GUIDE.

Post by cucu007 »

Can someone post the details how to get this working and what image are you guys using to gain SSH access. Details of the person that got it working are greatly appreciated.
hesantos2004
MagicJack Newbie
Posts: 6
Joined: Sun Jun 22, 2008 12:02 am

Post by hesantos2004 »

can you please provide us with some details of how you were able to get it done, because so far it's been a mess for me.
Post Reply