Unofficial magicJack Forum

Unofficial magicJack Forum

Your Unofficial magicJack and magicJack Plus phone service information resource
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Certificate is a joke does not work
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Unofficial magicJack Forum -> magicJack Tips, Tricks, and Hacks
View previous topic :: View next topic  
Author Message
az1324
Dan isn't smart enough to hire me


Joined: 20 Feb 2008
Posts: 100

PostPosted: Sat Jun 27, 2009 7:32 pm    Post subject:

You can run Asterisk through a proxy too... even a proxy on the same machine as Asterisk. Or if you know how to compile Asterisk and are somewhat familiar with the source it would be a pretty easy modification. It wouldn't be that hard to compile a proxy for OpenWRT. Also would be interesting to patch siphon for the iphone since it is open source.

As far as changing the algorithm, I'm fairly sure it isn't specified in the provisioning file so that would mean pushing out another update to everyone. I don't see them continually doing that. A more logical step is to start banning accounts. Doesn't seem unreasonable because you have to make a considerable effort to sidestep this new protection. If we knew how the Call-ID was generated we could completely cloak the SIP part of the dongle. They could still cross reference with the provisioning calls, 911 and ad servers so that would have to be simulated for perfect emulation. Maybe it's worth the effort if you are using it heavily on a mobile device like iphone. As for me I'm probably going to stick to thin client and sipgate+GVoice for now.
Back to top
View user's profile Send private message
srvctek
MagicJack Expert


Joined: 09 Jan 2009
Posts: 76

PostPosted: Sat Jun 27, 2009 11:48 pm    Post subject:

Stupid? Your brilliant compared to me when it comes to this stuff. My bag is hacking a few other things i cant mention on here. Laughing
Back to top
View user's profile Send private message
jamoke
MagicJack Newbie


Joined: 29 Dec 2008
Posts: 9

PostPosted: Sun Jun 28, 2009 12:29 pm    Post subject:

netdata / az1324

What I've done for now is install MJ on an HP Thin Client and feed the dial tone back into Asterisk through an FXO port. I don't like the D to A to D conversion process, but for now it works. I forward my MJ incoming calls to the DID of another SIP provider, thus allowing me to maintain the D to D connection of inbound calls.

It's a simple workaround as the Thin Client is a headless device that sits on my network, consuming about 14 watts.
Back to top
View user's profile Send private message
UncleRunkle
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 27

PostPosted: Sun Jun 28, 2009 3:20 pm    Post subject:

Guys, just let me know how I can help. I feel helpless. I'm pretty knowledgeable so feel free to ask me if I can do something. That's all, thanks!
Back to top
View user's profile Send private message
hesantos2004
MagicJack Newbie


Joined: 22 Jun 2008
Posts: 6

PostPosted: Sun Jun 28, 2009 3:44 pm    Post subject:

hello az1324. this program works great. is there a way you can edit the program to remember the proxy and password because i'm trying to run it as a service but it forgets the proxy and password.
Back to top
View user's profile Send private message
mel2000
MagicJack Contributor


Joined: 31 May 2009
Posts: 67

PostPosted: Sun Jun 28, 2009 5:14 pm    Post subject:

UncleRunkle wrote:
So we can set up a program like the one az1324 made in .NET and then use it as a proxy to connect to the MagicJack servers. We would then set our ATAs to the address of the server running the .NET program.

I'd like to get an answer to that question. Subsequent posts imply that more programming assistance is required to solve the ATA problem. What exactly can az1234's program do for users NOW?
Back to top
View user's profile Send private message
az1324
Dan isn't smart enough to hire me


Joined: 20 Feb 2008
Posts: 100

PostPosted: Sun Jun 28, 2009 6:53 pm    Post subject:

hesantos2004 wrote:
hello az1324. this program works great. is there a way you can edit the program to remember the proxy and password because i'm trying to run it as a service but it forgets the proxy and password.


Ok here you go. If you save your settings next time you run it it will start minimized to system tray and automatically start the proxy.

http://www.mediafire.com/?mmmt4wcnqyb
Back to top
View user's profile Send private message
MJuser909909
magicJack Apprentice


Joined: 13 Jun 2009
Posts: 15

PostPosted: Sun Jun 28, 2009 9:55 pm    Post subject:

As far as a proxy and asterisk go:

Where do the nonce and the callid values come from? I mean I know where to find them, in memory, but arent they transmitted from talk4free.net? And if so, cant our 'smart' proxy automatically change those values when new ones are rcvd?
Back to top
View user's profile Send private message
hesantos2004
MagicJack Newbie


Joined: 22 Jun 2008
Posts: 6

PostPosted: Sun Jun 28, 2009 10:11 pm    Post subject:

thank's az1324 your program it's very helpful man. i got MJ and your program both running as services now.
Back to top
View user's profile Send private message
az1324
Dan isn't smart enough to hire me


Joined: 20 Feb 2008
Posts: 100

PostPosted: Mon Jun 29, 2009 1:43 am    Post subject:

Ok some people want more info on the proxy I made so here are some facts.

This is an sip-only proxy. It doesn't proxy the RTP stream so you should run it on the same LAN as your ATA.

You would setup your ATA the same way you did normally in the past for MJ but instead of the proxy address and port you would put the address of your computer running the proxy and the Listen Port. On the proxy itself you would put the proxy address that you normally would have put in the ATA, the Forward Port (5070), and also your MJ password.

Remember this is just something I threw together to experiment so use at your own risk.
Back to top
View user's profile Send private message
richardtaur
Dan isn't smart enough to hire me


Joined: 17 Mar 2008
Posts: 123

PostPosted: Mon Jun 29, 2009 1:51 am    Post subject:

I see now. So, we still need to leave the computer on 24x7 in order to have ATA working.

Thank you for the instruction. ^_^
Back to top
View user's profile Send private message
samdaman
MagicJack Newbie


Joined: 29 Jun 2009
Posts: 5

PostPosted: Mon Jun 29, 2009 7:22 am    Post subject:

az1324 wrote:
Ok some people want more info on the proxy I made so here are some facts.

This is an sip-only proxy. It doesn't proxy the RTP stream so you should run it on the same LAN as your ATA.

You would setup your ATA the same way you did normally in the past for MJ but instead of the proxy address and port you would put the address of your computer running the proxy and the Listen Port. On the proxy itself you would put the proxy address that you normally would have put in the ATA, the Forward Port (5070), and also your MJ password.

Remember this is just something I threw together to experiment so use at your own risk.


Can you create a linux version for ubuntu?
Back to top
View user's profile Send private message
mel2000
MagicJack Contributor


Joined: 31 May 2009
Posts: 67

PostPosted: Mon Jun 29, 2009 9:35 am    Post subject:

az1324 wrote:
you would put the address of your computer running the proxy and the Listen Port.

How would I determine the listen port on the computer running the proxy?
Back to top
View user's profile Send private message
magicnick
MagicJack Newbie


Joined: 22 Jun 2009
Posts: 8

PostPosted: Mon Jun 29, 2009 10:53 am    Post subject:

mel2000 wrote:
az1324 wrote:
you would put the address of your computer running the proxy and the Listen Port.

How would I determine the listen port on the computer running the proxy?

run it the same way as if you had caller id program on one computer and a ata. if not sure you can check some older posts on this forum.

nick
Back to top
View user's profile Send private message
magicnick
MagicJack Newbie


Joined: 22 Jun 2009
Posts: 8

PostPosted: Mon Jun 29, 2009 10:56 am    Post subject: sunrocket

anyone have the old firmware for a sunrocket spa 2102
Back to top
View user's profile Send private message
dtm
MagicJack Expert


Joined: 27 Jul 2008
Posts: 95
Location: In the hardware.

PostPosted: Mon Jun 29, 2009 12:14 pm    Post subject:

Anybody else notice that domingo and gooney evaporated once we proved the certs and encryption were disinformation? Do you think they were working for Danny B?
Back to top
View user's profile Send private message
jamoke
MagicJack Newbie


Joined: 29 Dec 2008
Posts: 9

PostPosted: Mon Jun 29, 2009 2:47 pm    Post subject:

The proxy will run under Windows XP Pro, but I get an error when I try to execute it under XP Embedded, which would be the preferred low-power box to run the proxy. Any thoughts? The error that I receive is:

The application failed to initialize properly (0xc0000135)

Thanks
Back to top
View user's profile Send private message
magicnick
MagicJack Newbie


Joined: 22 Jun 2009
Posts: 8

PostPosted: Mon Jun 29, 2009 3:39 pm    Post subject:

jamoke wrote:
The proxy will run under Windows XP Pro, but I get an error when I try to execute it under XP Embedded, which would be the preferred low-power box to run the proxy. Any thoughts? The error that I receive is:

The application failed to initialize properly (0xc0000135)

Thanks


you need to install the .NET framework

Nick
Back to top
View user's profile Send private message
rusabus
MagicJack Newbie


Joined: 09 Feb 2009
Posts: 4

PostPosted: Mon Jun 29, 2009 4:07 pm    Post subject:

AZ1324 -

Thanks for the .net proxy application. I'm currently running Asterisk on Linux without an X server. I use mono to run .net applications, but without an X server, your proxy app won't run (presumably because it depends on the presence of a GUI).

Can you write a version that runs from the CLI and reads a config file instead? I hate to ask for specific requests like this, but it would be a big help.

To all those who want an OpenWRT port:
Making .net software run on OpenWRT is not *impossible*, but nearly so. In order to make it run, you would need a mips version of mono. According to the mono website, mono will run on mips, but I've never been able to make it happen. If someone can generate a mono package for OpenWRT, then running this .net application should be automatic (provided a non-GUI version can be written). Otherwise, the software would have to be re-written without .net.
Back to top
View user's profile Send private message
steroids
MagicJack User


Joined: 15 Jun 2009
Posts: 33

PostPosted: Mon Jun 29, 2009 4:22 pm    Post subject:

rusabus wrote:
AZ1324 -

Thanks for the .net proxy application. I'm currently running Asterisk on Linux without an X server. I use mono to run .net applications, but without an X server, your proxy app won't run (presumably because it depends on the presence of a GUI).

Can you write a version that runs from the CLI and reads a config file instead? I hate to ask for specific requests like this, but it would be a big help.

To all those who want an OpenWRT port:
Making .net software run on OpenWRT is not *impossible*, but nearly so. In order to make it run, you would need a mips version of mono. According to the mono website, mono will run on mips, but I've never been able to make it happen. If someone can generate a mono package for OpenWRT, then running this .net application should be automatic (provided a non-GUI version can be written). Otherwise, the software would have to be re-written without .net.


He'll need to change out the reading/writing of the ini files to use pure .NET rather than native calls.

The application does run fine under linux (assuming you have X installed/running)


You cannot save the config file however. Trying to do so just crashes the app:
Code:
andy@deathstar> mono MJMD5.exe
System.DllNotFoundException: kernel32
  at (wrapper managed-to-native) Ini.IniFile:WritePrivateProfileString (string,string,string,string)
  at Ini.IniFile.IniWriteValue (System.String Section, System.String Key, System.String Value) [0x00000]
  at MJMD5.MJMD5.SaveSettings () [0x00000]
  at MJMD5.MJMD5.StartProxy (System.String LPort, System.String FPort, System.String Proxy) [0x00000]
  at MJMD5.MJMD5.button1_Click (System.Object sender, System.EventArgs e) [0x00000]
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000]
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000]
  at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000]
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000]
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000]
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000]
andy@deathstar>

A pure .NET CLI implementation would be nice. Then it can be run cross platform under mono. It would also allow it to run as a service for those running windows.
Back to top
View user's profile Send private message
az1324
Dan isn't smart enough to hire me


Joined: 20 Feb 2008
Posts: 100

PostPosted: Mon Jun 29, 2009 8:20 pm    Post subject:

Ok you crazy cats here's the command line version. I didn't really test it.

http://www.mediafire.com/?cjztj0ug4xl


This isn't exactly a complicated program so it really would be better to just write one for the platform you want to run it on.
Back to top
View user's profile Send private message
corb69
MagicJack Newbie


Joined: 01 Mar 2009
Posts: 1

PostPosted: Mon Jun 29, 2009 11:37 pm    Post subject: Post source code

Could you post the code of your application.
I will be able to convert it to java.
Then we could have a solution that is multi plateform.
Back to top
View user's profile Send private message
rusabus
MagicJack Newbie


Joined: 09 Feb 2009
Posts: 4

PostPosted: Mon Jun 29, 2009 11:55 pm    Post subject:

I have been successful using the CLI version of az1324's application. It is running using Mono on the asterisk server. I then pointed Asterisk to 127.0.0.1 and everything registered. I can also make inbound and outbound calls now.

Thanks!
Back to top
View user's profile Send private message
srvctek
MagicJack Expert


Joined: 09 Jan 2009
Posts: 76

PostPosted: Tue Jun 30, 2009 12:23 am    Post subject:

dtm wrote:
Anybody else notice that domingo and gooney evaporated once we proved the certs and encryption were disinformation? Do you think they were working for Danny B?
You do have a good point, I noticed too Confused
Back to top
View user's profile Send private message
jamoke
MagicJack Newbie


Joined: 29 Dec 2008
Posts: 9

PostPosted: Tue Jun 30, 2009 9:59 am    Post subject:

rusabus,

Do you know if mono will run under CentOS?
Back to top
View user's profile Send private message
MJuser909909
magicJack Apprentice


Joined: 13 Jun 2009
Posts: 15

PostPosted: Tue Jun 30, 2009 2:13 pm    Post subject:

Hey az,

Proxy works great, running the command line version using mono on a freebsd box, love it.

Is there any options for verbose output? Or log file usage?

Also, can u make a program which will fully emulate the dongle? IE: hit the 911.talk4free.com, provision.talk4free.com etc.. So that way it looks like were actually running the dongle?

Would u be willing to release ur source so others could experiment?

Either way, thanks
Back to top
View user's profile Send private message
RonV
magicJack Apprentice


Joined: 08 Dec 2008
Posts: 14

PostPosted: Tue Jun 30, 2009 2:20 pm    Post subject:

jamoke wrote:
rusabus,

Do you know if mono will run under CentOS?


I checked the yum respositories for trixbox which is centos based and came up with these:

Code:
mod_mono.i386                              1.2.1-1.el5.centos          extras
mono-basic.i386                            1.0.6-1.el5.rf              rpmforge
mono-complete.i386                         1.0.6-1.el5.rf              rpmforge
mono-core.i386                             1.2.4-2.el5.centos          extras
mono-data.i386                             1.2.4-2.el5.centos          extras
mono-data-firebird.i386                    1.2.4-2.el5.centos          extras
mono-data-oracle.i386                      1.2.4-2.el5.centos          extras
mono-data-postgresql.i386                  1.2.4-2.el5.centos          extras
mono-data-sqlite.i386                      1.2.4-2.el5.centos          extras
mono-data-sybase.i386                      1.2.4-2.el5.centos          extras
mono-devel.i386                            1.2.4-2.el5.centos          extras
mono-extras.i386                           1.2.4-2.el5.centos          extras
mono-jscript.i386                          1.2.4-2.el5.centos          extras
mono-locale-extras.i386                    1.2.4-2.el5.centos          extras
mono-nunit.i386                            1.2.4-2.el5.centos          extras
mono-nunit-devel.i386                      1.2.4-2.el5.centos          extras
mono-web.i386                              1.2.4-2.el5.centos          extras
mono-winforms.i386                         1.2.4-2.el5.centos          extras


So from what I can tell yes mono will run under centos. I am going to try it tonight.
Back to top
View user's profile Send private message
ameir
MagicJack Newbie


Joined: 28 Jun 2008
Posts: 4

PostPosted: Tue Jun 30, 2009 3:28 pm    Post subject:

This is an awesome app!

If you could post the source that would be great! I want to rewrite it in C and have it load on startup on my Asterisk server so that it can register to itself. If you don't want to share the source, could you at least give us details the algorithm?

Whoever figured this out is the man.
Back to top
View user's profile Send private message
teddy_b
MagicJack Contributor


Joined: 30 Dec 2007
Posts: 55

PostPosted: Tue Jun 30, 2009 3:55 pm    Post subject:

ameir,

All the details with the exact algorithm are on the page 3 of this thread, dtm's post. There's really nothing else you can get from the az1324 sources.
But I just wrote the same thing in plain C last night, and it's running on my linux-based router already along with the Asterisk server Wink. Can be compiled for any other Linux distribution of course. I'll post it later when I get back home tonight - unless of course someone else beats me to it - it's really not a complex app to write.
Back to top
View user's profile Send private message
jjanton
MagicJack Newbie


Joined: 20 Apr 2009
Posts: 4

PostPosted: Tue Jun 30, 2009 4:45 pm    Post subject: running the script on asterisk

Rusabus,
Could you give me a rundown on how you configured the .Net app to run?
That would be a great help.
I "yummed" Mono on my Trixbox today and want to know how the rest integrates..
Thanks!
Back to top
View user's profile Send private message
rusabus
MagicJack Newbie


Joined: 09 Feb 2009
Posts: 4

PostPosted: Tue Jun 30, 2009 4:49 pm    Post subject:

jamoke wrote:
rusabus,

Do you know if mono will run under CentOS?


I'm running CentOS, but I installed mono from sources, not from an RPM. The mono webpage has an easy-to-use installer.
Code:

[cmpc.lan ~]# /opt/mono/bin/mono -V
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  x86
        Disabled:      none

I installed in /opt/mono (not that it matters) and copied the .net proxy tool to /etc/asterisk (again, not that it matters).

Then, in /etc/rc.local, I added the following line:
Code:
/opt/mono/bin/mono /etc/asterisk/MJMD5CL.exe proxy01.saltlakecity.talk4free.com 5070 5070 <my password> &


Finally, in trixbox, I used the following configuration:
under Outgoing Peer details:
Code:

context=from-trunk
username=E<my phone number>01
type=peer
secret=<my password>
host=127.0.0.1
port=5070
nat=yes
insecure=very
fromuser=E<my phone number>01
dtmfmode=inband
qualify=2000


Here is my registration string:
Code:
E<my phone number>01:<my password>@127.0.0.1:5070


I was amazed when it worked on the first try! It took about 1 full minute before it was able to receive incoming calls, but outgoing worked immediately.

FWIW: the only reason that I used the installer is that I have a .net application that is very particular with mono versions. It seems like every time I upgrade mono, my other application breaks. Using an RPM presents the risk that mono could be upgraded at any time, and I didn't want that. The most current mono installer is found here http://ftp.novell.com/pub/mono/archive/1.9.1/linux-installer/2/mono-1.9.1_2-installer.bin.

For this application, you could probably just do a yum install mono-core and it would work, but I haven't tested that.
Back to top
View user's profile Send private message
craigm1
MagicJack User


Joined: 18 Jun 2008
Posts: 43

PostPosted: Tue Jun 30, 2009 5:05 pm    Post subject: Using Proxy with multiple MJ's

I have 2 Linksys Pap2 and 4 Magic Jack's has anybody tested this with multiple Magic Jack's


Craig
Back to top
View user's profile Send private message
lowno
MagicJack Newbie


Joined: 09 Mar 2009
Posts: 7

PostPosted: Tue Jun 30, 2009 6:44 pm    Post subject:

Is there any possibility to have it run with multiple MJ's? I guess I will be installing mono on my trixbox.

Thanks.
Back to top
View user's profile Send private message
RonV
magicJack Apprentice


Joined: 08 Dec 2008
Posts: 14

PostPosted: Tue Jun 30, 2009 6:56 pm    Post subject:

Thanks rusabus,

So far I have reinstated by magicJack trunk in Trixbox but pointed it do my PC running the .net proxy for now. I didn't want to play around with mono yet. Also there is someone else here that looks like they are compiling C code native for linux which would remove the need for mono.

Darn and I just spent $100 bucks on a two port FXO card and got that working yesterday and now I am back to jack less magicJack...oh well if the proxy stops working I alway have a backup via the FXO card.

But its great having the better sound quality and call control that Asterisk gives vs. the magicJack dongle.
Back to top
View user's profile Send private message
az1324
Dan isn't smart enough to hire me


Joined: 20 Feb 2008
Posts: 100

PostPosted: Tue Jun 30, 2009 7:17 pm    Post subject:

teddy_b wrote:
ameir,

All the details with the exact algorithm are on the page 3 of this thread, dtm's post. There's really nothing else you can get from the az1324 sources.
But I just wrote the same thing in plain C last night, and it's running on my linux-based router already along with the Asterisk server Wink. Can be compiled for any other Linux distribution of course. I'll post it later when I get back home tonight - unless of course someone else beats me to it - it's really not a complex app to write.


That's what I've been saying. Your source will be more useful than mine so I'll defer to you on that.
Back to top
View user's profile Send private message
teddy_b
MagicJack Contributor


Joined: 30 Dec 2007
Posts: 55

PostPosted: Tue Jun 30, 2009 8:39 pm    Post subject:

Ok, here's the plain C version of the simple MJ proxy:
http://www.mediafire.com/file/yzwmjzotmyy/mjproxy.c.tar.gz.
It works exactly the same as the az1324's app - the only difference is that it doesn't need mono to run on Linux - can be compiled for [almost] any linux distribution, including embedded systems like OpenWRT.

Of course, you need to know how to compile applications from sources for your linux system. You can create a Makefile, or just run gcc to compile it, somethig like:
gcc -o mjproxy md5.c mjproxy.c

Run it using the following command:
mjproxy listen-ip(can use 0.0.0.0) listen-port your-preferred-mj-proxy-server-addr mj-proxy-port(should be 5070) your-mj-password
The listen port should also be 5070 for incoming calls to work, however outgoing should work with any listen port.

Then configure your client the same way as you did for az1324's proxy - specify the listening IP and port of the proxy as the outbound proxy on your ATA or * trunc. Just remember not to expose this proxy to the Internet without additional protection, as anybody who can connect to it will only need to know your MJ phone number to be able to register and make calls using your MJ account.

You can modify the app as you wish - clean up the mess in my code (I've been doing .NET stuff for too long), add more console output or logging, add support for config file, make it to replace user-agent, etc etc... But I suggest you don't spend too much time on it - MJ seems to be determined to screw up any attempts to use MJ service without the dongle, so I bet it's not going to last long... And the next time dtm may not be around to discover the changed algorithm, or it will take someone too long to figure it out...


Last edited by teddy_b on Tue Jun 30, 2009 11:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
vMAC
magicJack Apprentice


Joined: 28 May 2009
Posts: 14

PostPosted: Tue Jun 30, 2009 8:52 pm    Post subject:

Any progress on getting this to run as a service/ addon for OpenWRT?
Back to top
View user's profile Send private message
MJuser909909
magicJack Apprentice


Joined: 13 Jun 2009
Posts: 15

PostPosted: Tue Jun 30, 2009 8:57 pm    Post subject:

wonderful!

Thanks
Back to top
View user's profile Send private message
teddy_b
MagicJack Contributor


Joined: 30 Dec 2007
Posts: 55

PostPosted: Tue Jun 30, 2009 9:07 pm    Post subject:

vMAC wrote:
Any progress on getting this to run as a service/ addon for OpenWRT?

Well... Did you read the post above yours Smile? Just compile it using OpenWRT toolchain, and you're good to go...
Back to top
View user's profile Send private message
samdaman
MagicJack Newbie


Joined: 29 Jun 2009
Posts: 5

PostPosted: Tue Jun 30, 2009 11:07 pm    Post subject:

teddy_b wrote:
Ok, here's the plain C version of the simple MJ proxy:
http://www.mediafire.com/file/yzwmjzotmyy/mjproxy.c.tar.gz.
It works exactly the same as the az1324's app - the only difference is that it doesn't need mono to run on Linux - can be compiled for [almost] any linux distribution, including embedded systems like OpenWRT.

Of course, you need to know how to compile applications from sources for your linux system. You can create a Makefile, or just run gcc to compile it, somethig like:
gcc -o mjproxy md5.c mjproxy.c

Run it using the following command:
mjproxy listen-ip(can use 0.0.0.0) listen-port your-preferred-mj-proxy-server-addr mj-proxy-port(should be 5070) your-mj-password

Then configure your client the same way as you did for az1324's proxy - specify the listening IP and port of the proxy as the outbound proxy on your ATA or * trunc. Just remember not to expose this proxy to the Internet without additional protection, as anybody who can connect to it will only need to know your MJ phone number to be able to register and make calls using your MJ account.

You can modify the app as you wish - clean up the mess in my code (I've been doing .NET stuff for too long), add more console output or logging, add support for config file, make it to replace user-agent, etc etc... But I suggest you don't spend too much time on it - MJ seems to be determined to screw up any attempts to use MJ service without the dongle, so I bet it's not going to last long... And the next time dtm may not be around to discover the changed algorithm, or it will take someone too long to figure it out...


Thank you and to all those who contributed

Works perfect calling out but incoming goes straight to vm Confused Confused
Back to top
View user's profile Send private message
vMAC
magicJack Apprentice


Joined: 28 May 2009
Posts: 14

PostPosted: Tue Jun 30, 2009 11:08 pm    Post subject:

teddy_b wrote:
vMAC wrote:
Any progress on getting this to run as a service/ addon for OpenWRT?

Well... Did you read the post above yours Smile? Just compile it using OpenWRT toolchain, and you're good to go...


Sorry Smile I hit reply then forgot about the posting for a couple minutes so it looks like you responded before I did. and I didn't see that.

You may want to setup a donation page for all those thankful for the help you all have provided. Wink
Back to top
View user's profile Send private message
teddy_b
MagicJack Contributor


Joined: 30 Dec 2007
Posts: 55

PostPosted: Tue Jun 30, 2009 11:20 pm    Post subject:

samdaman wrote:
Works perfect calling out but incoming goes straight to vm Confused

Don't know why - here incoming works perfect, as well as outgoing, with Asterisk and this command to run the proxy:
mjproxy 0.0.0.0 5070 proxy01.my_favorite_proxy.talk4free.com 5070 XXXXXXXXXXXXXXXXXXXX
Back to top
View user's profile Send private message
samdaman
MagicJack Newbie


Joined: 29 Jun 2009
Posts: 5

PostPosted: Tue Jun 30, 2009 11:28 pm    Post subject:

teddy_b wrote:
samdaman wrote:
Works perfect calling out but incoming goes straight to vm Confused

Don't know why - here incoming works perfect, as well as outgoing, with Asterisk and this command to run the proxy:
mjproxy 0.0.0.0 5070 proxy01.my_favorite_proxy.talk4free.com 5070 XXXXXXXXXXXXXXXXXXXX


I used the following command

Code:
mjproxy 0.0.0.0 6987 proxy01.my_favorite_proxy.talk4free.com 5070 XXXXXXXXXXXXXXXXXXXX


Ill change the listen port to 5070 and report back brb

POST EDIT: YES! it now works and very clear audio both ways Wink

My answere to your question is "Yes, I am a newbie for putting 6987 for my listening port as you can see hahaha
Back to top
View user's profile Send private message
teddy_b
MagicJack Contributor


Joined: 30 Dec 2007
Posts: 55

PostPosted: Tue Jun 30, 2009 11:49 pm    Post subject:

Well, the outgoing should work with any listen port...
However, the responses to incoming INVITEs are sent to the port specified by the server, so if it's different from the listen port they will bypass the proxy.

I should've mentioned it when posting the source, sorry...
Back to top
View user's profile Send private message
netdata
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 29

PostPosted: Wed Jul 01, 2009 4:05 am    Post subject: PS

teddy looks like that mediafire link is dead, can you be a champ and reup somewhere?

Thanks - great job buddy
Back to top
View user's profile Send private message
az1324
Dan isn't smart enough to hire me


Joined: 20 Feb 2008
Posts: 100

PostPosted: Wed Jul 01, 2009 4:35 am    Post subject:

link is working.
Back to top
View user's profile Send private message
pagemen
Dan isn't smart enough to hire me


Joined: 15 Dec 2008
Posts: 128

PostPosted: Wed Jul 01, 2009 10:07 am    Post subject:

thanks for the c code, compiled nicely and works great on my WRT54G w/Kamikaze 8.09.

for anyone with a similar setup, here is the binary(for brcm-2.4, ymmv on other platforms), directly from teddy_b's code without modification

http://www.mediafire.com/download.php?m3tymmejhwu

download, unzip and install with opkg

and to make it run on startup, create /etc/init.d/mjproxy

Code:


#!/bin/sh /etc/rc.common
# Example script
# Copyright (C) 2007 OpenWrt.org

START=70
STOP=70

start() {
        mjproxy 0.0.0.0 5070 proxy01.your_city.talk4free.com 5070 your_password
        }

stop() {
        pkill -9 mjproxy
        }


then run
Code:

chmod a+x /etc/init.d/mjproxy
/etc/init.d/mjproxy enable


Last edited by pagemen on Wed Jul 01, 2009 9:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
RonV
magicJack Apprentice


Joined: 08 Dec 2008
Posts: 14

PostPosted: Wed Jul 01, 2009 10:50 am    Post subject:

teddy_b wrote:
Ok, here's the plain C version of the simple MJ proxy:
http://www.mediafire.com/file/yzwmjzotmyy/mjproxy.c.tar.gz.
It works exactly the same as the az1324's app - the only difference is that it doesn't need mono to run on Linux - can be compiled for [almost] any linux distribution, including embedded systems like OpenWRT.


Thanks for the C version. I compiled it with no problem and was up and running in about 5 minutes after I repointed my MJ Trunk on my PBX to 127.0.0.1.

Since I don't take inbound calls on the MJ trunk I have upped the proxy port number not to conflict with my PBX's inound ports.
Back to top
View user's profile Send private message
jaybob413
MagicJack Newbie


Joined: 23 Mar 2009
Posts: 6

PostPosted: Wed Jul 01, 2009 12:08 pm    Post subject:

pagemen, thanks for the upload. This works brilliantly on my OpenWRT router. Great stuff.
Back to top
View user's profile Send private message
synchron
Dan isn't smart enough to hire me


Joined: 15 May 2008
Posts: 230

PostPosted: Wed Jul 01, 2009 2:18 pm    Post subject:

Many, many thanks to dtm, az1324, teddy_b, Stewart and to all those who contributed to this thread! Great job and good stuff here! This is definitely a start and it will be interesting how long it will last! A true, genuine Tip/Trick/Hack!

I'm curious - if it weren't for algorithm:MD5 in the initial wireshark captures could this have even been accomplished? Could this be done on their end where they don't expose the encryption algorithm or can all things eventually be decrypted, even if the info isn't given?

Synchron Cool
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Unofficial magicJack Forum -> magicJack Tips, Tricks, and Hacks All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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
Powered by phpBB Ultra Turbo Extended Edition Live © 2001-9999, phpBB Group
magicJack and magicJack Plus are trademarks of magicJack LLP. This website is in no way affiliated, endorsed, or sponsored by magicJack LLP, and is an unofficial forum for consumers to openly communicate regarding their experiences with the magicJack products.