| View previous topic :: View next topic |
| Author |
Message |
deadshort MagicJack Newbie
Joined: 07 Mar 2009 Posts: 4
|
Posted: Wed Jan 20, 2010 3:19 am Post subject: |
|
|
when starting the executable I'm getting the
mjproxy: can't resolve symbol 'htons'
error also, Buffalo WHR-HP-G54 , dd-wrt 23 sp2
edit: upgrading to dd-wrt 24 sp2 (10/10/09) fixed that error |
|
| Back to top |
|
 |
Google AdSense

|
Posted: Wed Jan 20, 2010 3:19 am Post subject: Magicjack support, tips, tricks, and hacks |
|
|
|
|
| Back to top |
|
 |
Moe_Ale magicJack Apprentice
Joined: 29 Jan 2010 Posts: 15 Location: United States
|
Posted: Fri Jan 29, 2010 11:51 pm Post subject: tried everything and still no go |
|
|
-
-
-
-
-
-
Last edited by Moe_Ale on Sat Feb 06, 2010 1:20 am; edited 1 time in total |
|
| Back to top |
|
 |
nulland magicJack Apprentice
Joined: 02 Nov 2008 Posts: 18 Location: Torrance, CA US
|
Posted: Sat Jan 30, 2010 9:55 pm Post subject: |
|
|
@Moe-Ale
1. You're using an old DDWRT version (V24, 07/03/2008). Update to a latest or newer version for your router.
2. The methods you are using install mjproxy in the /tmp directory where it will not survive router reboots. With these methods, your router needs to download and install the mjproxy package each time it boots. You use these methods only when you have a DDWRT micro version (2mb flash). Your router has 4mb flash with a jffs partition where you can permanently store and run mjproxy, without having to download it at boot time.
3. As regards errors in running mjproxy: invalid network address means the proxy address may be wrong or you're not connected to the internet; mjproxy not found -- include (prefix) complete directory path in the mjproxy command.
I hope this helps. |
|
| Back to top |
|
 |
Moe_Ale magicJack Apprentice
Joined: 29 Jan 2010 Posts: 15 Location: United States
|
Posted: Mon Feb 01, 2010 8:47 pm Post subject: |
|
|
| nulland wrote: | @Moe-Ale
1. You're using an old DDWRT version (V24, 07/03/2008). Update to a latest or newer version for your router.
2. The methods you are using install mjproxy in the /tmp directory where it will not survive router reboots. With these methods, your router needs to download and install the mjproxy package each time it boots. You use these methods only when you have a DDWRT micro version (2mb flash). Your router has 4mb flash with a jffs partition where you can permanently store and run mjproxy, without having to download it at boot time.
3. As regards errors in running mjproxy: invalid network address means the proxy address may be wrong or you're not connected to the internet; mjproxy not found -- include (prefix) complete directory path in the mjproxy command.
I hope this helps. |
Great info. I updated the Firmware to DD-WRT v24-sp2 (10/10/09) mini |
|
| Back to top |
|
 |
MagicJackless MagicJack Newbie
Joined: 31 Jan 2010 Posts: 4
|
Posted: Thu Feb 04, 2010 8:44 pm Post subject: |
|
|
More Linksys WRT54GV5 Headaches!!!
I was trying to run the mjproxy (mips) (openWRT) binary posted earlier in this thread. After reading about the limits of my router, I successfully got mjproxy into my routers RAM in the /tmp directory. My problem just like a few other users was that I am geting the "mjproxy: can't resolve symbol 'htons'" ERROR! I tried upgrading to the latest bin firmware file dd-wrt.v24_micro_generic.bin. (10/10/09) I still got the error! So nulland suggested I actually rebuild my firmware to include the mjproxy command within it, so this is what I did following nullands suggestions:
OK nulland,
I used the firmware from this package: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=58231
The filename of the firmware I used was called dd-wrt.v24-12548_NEWD_micro.bin.
Using a laptop I set up with ubuntu 9.10 I was able to use the firmware mod kit you suggested in your third link above.
I extracted the firmware to a working dir as per the instructions.
Then I used the included ipk installer utility to install the mjproxy_mipsel.ipk file from this forum into the build.
Then I rebuilt the firware to the output dir with no further modifactions.
Finally I flashed and reset my WRT54G, without bricking it!!!
Using putty, I found the mjproxy command was now built in, success! ... or so I tought!
I STILL GET THE ERROR: mjproxy: can't resolve symbol 'htons'!!!!!!!!
PLEASE HELP!
Hank |
|
| Back to top |
|
 |
Moe_Ale magicJack Apprentice
Joined: 29 Jan 2010 Posts: 15 Location: United States
|
Posted: Sat Feb 06, 2010 1:19 am Post subject: MagicJack |
|
|
I did all of the following:
1. mkdir /jffs/mjp/
2. cd /jffs/mjp/
3. wget http://pagemen.110mb.com/mjproxy_mipsel.ipk.zip -O mjproxy_mipsel.ipk
4. ipkg -d /jffs/mjp/ install mjproxy_mipsel.ipk
outcome:
BusyBox v1.13.4 (2009-10-10 01:26:36 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
root@DD-WRT:~# mkdir /jffs/mjp/
root@DD-WRT:~# cd /jffs/mjp/
root@DD-WRT:/jffs/mjp# wget http://pagemen.110mb.com/mjproxy_mipsel.ipk.zip -O m
jproxy_mipsel.ipk
Connecting to pagemen.110mb.com (70.38.113.158:80)
mjproxy_mipsel.ipk 100% |*******************************| 5819 --:--:-- ETA
root@DD-WRT:/jffs/mjp# ipkg -d /jffs/mjp/ install mjproxy_mipsel.ipk
Unpacking mjproxy...Done.
Configuring mjproxy...Done.
root@DD-WRT:/jffs/mjp# mjproxy 0.0.0.0 5070 proxy01.detroit.talk4free.com 5070 my mjpassword
root@DD-WRT:/jffs/mjp#
top command
root@DD-WRT:/jffs/mjp# top
Mem: 11576K used, 1428K free, 0K shrd, 1376K buff, 4400K cached
CPU: 0.5% usr 3.7% sys 0.0% nic 95.6% idle 0.0% io 0.0% irq 0.0% sirq
Load average: 0.40 0.34 0.16 1/25 1767
PID PPID USER STAT VSZ %MEM %CPU COMMAND
168 1 root S 2144 16.4 0.4 httpd -p 80
1740 1735 root R 1092 8.3 0.4 top
1717 1 root S 1456 11.1 0.2 wland
15 1 root S 1504 11.5 0.0 watchdog
1 0 root S 1464 11.2 0.0 /sbin/init noinitrd
1095 1 root S 1460 11.1 0.0 resetbutton
1207 1 root S 1456 11.1 0.0 ttraff
1462 1 root S 1456 11.1 0.0 process_monitor
1222 1 root S 1360 10.4 0.0 nas -P /tmp/nas.wl0lan.pid -H 34954 -l br0 -i eth2 -A -m 4 -k mfatima971858 -s dd-wrt -w 4 -g 3600
1735 1150 root S 1104 8.4 0.0 -sh
1352 1 root S 1088 8.3 0.0 /bin/sh /etc/config/proxywatchdog.sh
1150 1 root S 1084 8.3 0.0 telnetd
1372 1352 root S 1084 8.3 0.0 sleep 180
889 1 root S 1084 8.3 0.0 sleep 180
1168 1 root S 804 6.1 0.0 dnsmasq --conf-file=/tmp/dnsmasq.conf
1734 1 root S 736 5.6 0.0 /jffs/mjp/bin/mjproxy 0.0.0.0 5070 proxy01.detroit.talk4free.com 5070 my mjpassword
1720 1 root S 696 5.3 0.0 udhcpc -i eth1 -p /var/run/udhcpc.pid -s /tmp/udhcpc
1180 1 root S 692 5.3 0.0 cron
Also saved in the router's startup
sleep 30
/jffs/mjp/bin/mjproxy 0.0.0.0 5070 proxy01.detroit.talk4free.com 5070 my mjpassword
My MJ was purchased on (July two thousand eight) It is not working on ATA PAP2T that i purchased brand new from buy.com on 2/2/2010. Am I missing something. I really need some help here. I greatly appreciate it. Thanks |
|
| Back to top |
|
 |
WyldWolf MagicJack Newbie
Joined: 17 Feb 2010 Posts: 1
|
Posted: Wed Feb 17, 2010 3:05 pm Post subject: dd-wrt micro build of mjproxy? |
|
|
Okay I have tried all versions available at the dd-wrt site for my WRT54G_V6 (requires micro), and also receive the HTONS symbol error. I have yet to see a confirmed case of anyone running MICRO get it to work. Is this a case where the source needs to be recompiled with statically linked libraries because one is missing in the micro dist?
Is it even possible?
I'd love to hear if someone has it working as to exactly what revision of firmware.
Thanks! |
|
| Back to top |
|
 |
galcv2 magicJack Apprentice
Joined: 01 Feb 2010 Posts: 17
|
Posted: Wed Feb 17, 2010 7:29 pm Post subject: |
|
|
do you think that this will survive a reboot?
mjproxy_mipsel.ipk is in:
/tmp/root/mjproxy_mipsel.ipk
then I did these:
sleep 30
/tmp/root/mjproxy 0.0.0.0 5070 proxy1.city.talk4free.com 5070 password
to start proxy after router restart. |
|
| Back to top |
|
 |
galcv2 magicJack Apprentice
Joined: 01 Feb 2010 Posts: 17
|
Posted: Thu Feb 18, 2010 9:55 am Post subject: |
|
|
OK, I'm up and everything is working great!
If this worked for me it should work for you too!!
I went thru all the problems mentioned here but if you 1st upgrade your DD-WRT to the latest version you will have no trouble. I was using a 2007 generic version and got it working but it was not easy and I could not install in DD-WRT so that the proxy starts every time the router restarts.
I upgraded my Buffalo WHR-G125 with dd-wrt.v24_mini_generic.bin
Then you must be sure that JFFS2 is enabled and you can use it! You must check that there's some space available for it. Just clicking enable will not allow you to install in DD-WRT so that the proxy starts every time the router restarts.
The steps to enable JFFS and format the available space through the router web page are very specific.
Follow these steps exactly:
1. On the router web page click on Administration.
2. Scroll down until you see JFFS2 Support section.
3. Click Enable JFFS.
4. Click Save.
5. Wait couple seconds, then click Apply.
6. Wait again. Go back to the Enable JFFS section, and enable Clean JFFS.
7. Do not click "Save". Click Apply instead.
The router formats the available space.
8. Wait till you get the web-GUI back, then disable "Clean JFFS" again.
9. Click "Save".
10. It may be wise to Reboot the router, just to make sure
After this go and check to see that the JFFS2 Free Size is not 0. If it's 0 try again.
After enabling JFFS and formatting the available space this worked perfect!
Here is sequence to install in DD-WRT so that the proxy starts every time router restarts.
Before continuing you have to enable JFFS file system as mentioned in previous postings and have telnet enabled.
Step A - Download and permanently install the package in JFFS file system
(All the following commands to be run in the Telnet / HyperTerminal as described before)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. mkdir /jffs/mjp/
2. cd /jffs/mjp/
3. wget http://pagemen.110mb.com/mjproxy_mipsel.ipk.zip -O mjproxy_mipsel.ipk
4. ipkg -d /jffs/mjp/ install mjproxy_mipsel.ipk
If you want to run the proxy only for current session go to Step B. If you want to run every time the router restarts go to Step C.
Step B - Just to start the proxy for this session
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3. mjproxy 0.0.0.0 5070 proxy01.xxxxxxxx.talk4free.com 5070 YOUR_PASSWORD
Step C - (Starts proxy after router restart)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Open DD-WRT by entering proper IP in browser
2. Go to tab 'Administration -> Commands'
3. Enter the following command in the 'Commands' box and click 'Save Startup'
-------------------------------
sleep 30
/jffs/mjp/bin/mjproxy 0.0.0.0 5070 proxy01.xxxxxxxx.talk4free.com 5070 YOUR_PASSWORD
-------------------------------
I'm using AT&T DSL and sleep 30 worked great!
CREDIT GOES TO PREVIOUS POSTERS AND THE PEOPLE THAT SHARED THEIR KNOWLEDGE WITH OTHERS! not me...
THANKS! |
|
| Back to top |
|
 |
lumangoy MagicJack Newbie
Joined: 02 Mar 2010 Posts: 5
|
Posted: Sun Mar 07, 2010 8:30 pm Post subject: |
|
|
is there a workaround for the fonera 2100?
I get an error:
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking mjproxy...Done.
Configuring mjproxy...Done.
then when I try to run ipkg update, nothing happens. |
|
| Back to top |
|
 |
KidJoe MagicJack Newbie
Joined: 09 Mar 2010 Posts: 7
|
Posted: Tue Mar 09, 2010 7:42 am Post subject: |
|
|
How much JFFS space is needed?
I'm running a Netgear WNR3500v2 with DD-WRT v24-sp2 (11/25/09) mini
(SVN revision 13309M NEWD-2 K2.6 Eko), it appears that there is only 320.00 KB total for JFFS2, and of that, only 124.00 KB available.
I get the same errors that lumangoy posted when I try to install. |
|
| Back to top |
|
 |
nulland magicJack Apprentice
Joined: 02 Nov 2008 Posts: 18 Location: Torrance, CA US
|
Posted: Tue Mar 09, 2010 12:29 pm Post subject: |
|
|
Telnet or SSH to your router and run command "mjproxy". Prefix full path to the command. If you get usage notes or messages from mjproxy, then mjproxy has been installed correctly in your router. Then all you need to do is run it with the correct parameters at startup.
Mjproxy needs only 20K to run. |
|
| Back to top |
|
 |
galcv2 magicJack Apprentice
Joined: 01 Feb 2010 Posts: 17
|
Posted: Wed Mar 10, 2010 8:21 am Post subject: |
|
|
| lumangoy wrote: | is there a workaround for the fonera 2100?
I get an error:
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking mjproxy...Done.
Configuring mjproxy...Done.
then when I try to run ipkg update, nothing happens. |
when you are in the Telnet session type:
ipkg update and then enter
let ipkg gets updated and then continue |
|
| Back to top |
|
 |
rikisphinx MagicJack Newbie
Joined: 26 Apr 2009 Posts: 2
|
Posted: Fri Mar 12, 2010 12:45 pm Post subject: Time out error on registration |
|
|
Good morning all,
I have installed the mjproxy as mentioned but i keep getting a time out error at the registration:
[Mar 12 18:29:53] NOTICE[15289]: chan_sip.c:7550 sip_reg_timeout: -- Registration for 'E210XXXXXXX01@proxy01.austin.talk4free.com' timed out, trying again (Attempt #95)
Also what i mentionned is when i issue the top comand the mjproxy doesn't appear in the process but if i issue the command ' ps ' i can see it:
but if i issue the command ' ps ' i can see it
15586 root 1528 S -sh
15588 root 3916 S rasterisk r
15589 root 19208 S /opt/sbin/asterisk -m -C /opt/etc/asterisk/asterisk.conf
16512 root 1072 S mjproxy 0.0.0.0 5070 proxy01.austin.talk4free.com 5070 XXXXXXXXXXXXXXXXXXXX
17061 root 1512 R ps
I am sure that my credentials are ok because it worked once without the mjproxy. Any idea where i should look for the solution? |
|
| Back to top |
|
 |
rikisphinx MagicJack Newbie
Joined: 26 Apr 2009 Posts: 2
|
Posted: Mon Mar 15, 2010 3:05 pm Post subject: MJPROXY and asterisk not running together |
|
|
| hi all, i have my MJPROXY running fine now and it can be easily see on the process list but i just mentioned that once i start the asterisk, the MJPROXY stops or just disapear of the list. Is it normal? IS it why i am still having those time out? It's like the two of them just can't co-exist...I i start MJPROXY fisrt when i start asterisk it kills the MJPROXY process but if start the MJPROXY fisrt, it kills the asterisk. Any idea?? |
|
| Back to top |
|
 |
|