MJMD5/MJProxy for Android - possible solution

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
arcadia2uk
Dan isn't smart enough to hire me
Posts: 187
Joined: Sun Dec 07, 2008 9:03 pm

MJMD5/MJProxy for Android - possible solution

Post by arcadia2uk »

Has anyone a solution for this?
I use my G4 connection and WiFi tethering from my conputer with MagicJack plugged in, but it would be easier to do it though SipDroid directly, if there was a solution like the MJMD5 to run on Android.
Currently I can use GV via SipGate, SipSourcery and Pbxes to have free calling in/out, but it would be convenient to use my MJ.
Thanks in advance,
arc
Last edited by arcadia2uk on Fri Aug 20, 2010 12:55 am, edited 1 time in total.
arcadia2uk
Dan isn't smart enough to hire me
Posts: 187
Joined: Sun Dec 07, 2008 9:03 pm

Post by arcadia2uk »

If MJMD5/MJProxy is built in C, as I have understood it is and if I get the following right, you could compile it into an Android application (.apk). Does anyone have this experience/knowledge?
It seems rather straight fwd if you know Cygwin (Windows) or Linux, but what do I know?
The NDK provides:

* A set of tools and build files used to generate native code libraries from C and C++ sources
* A way to embed the corresponding native libraries into an application package file (.apk) that can be deployed on Android devices
* A set of native system headers and libraries that will be supported in all future versions of the Android platform, starting from Android 1.5
* Documentation, samples, and tutorials
The application can be found here:

Code: Select all

http://developer.android.com/sdk/ndk/index.html
But, first you need to have SDK installed:

Code: Select all

http://developer.android.com/sdk/index.html
If MJProxy is written in C++, the NDK apparently need some modifications, see:

Code: Select all

http://wiki.gnashdev.org/Building_for_Android

Code: Select all

http://www.crystax.net/android/ndk-r4.php#description
The C source code for MJProxy is found here:

Code: Select all

http://www.digitaloffensive.com/mjproxy.c.tar.gz
Unless someone can re-write the MJProxy into a Java application...

Keeps dreaming...
arc
Spider210
MagicJack Expert
Posts: 96
Joined: Sat Dec 06, 2008 12:50 pm

Post by Spider210 »

I have a linux server can i run mjproxy on that and then connect sipdroid on my droid and make calls? Because i tried it and it fails to connect (times out)...
arcadia2uk
Dan isn't smart enough to hire me
Posts: 187
Joined: Sun Dec 07, 2008 9:03 pm

Post by arcadia2uk »

According to this post by newtoncd there should be no problem.
http://www.phoneservicesupport.com/mjpr ... t9030.html
Note, you have to use the ip of the computer as the proxy in your SIP application. The MJProxy, in turn, will refer to the actual MJ proxy server.
I connected this way on Windows and had no issues using SIPDroid a couple of months back.
If this doesn't work with the newer versions of SIPDroid, you can try other SIP applications. You can find dozens of them on android market.
Spider210
MagicJack Expert
Posts: 96
Joined: Sat Dec 06, 2008 12:50 pm

Post by Spider210 »

unable to get it to work. I've tried hosting mjmd5 on my home computer and connecting to it with several sip clients on android through 3g and no success. I have also tried compiling and running mjmd5 on my centos server and trying to connect with my android phone and still no luck.


any ideas? it would be awesome to get this to work since i would love to use this as an alternative to using my minutes
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Post by crackerjack »

Spider210 wrote:unable to get it to work. I've tried hosting mjmd5 on my home computer and connecting to it with several sip clients on android through 3g and no success. I have also tried compiling and running mjmd5 on my centos server and trying to connect with my android phone and still no luck.


any ideas? it would be awesome to get this to work since i would love to use this as an alternative to using my minutes
Verify that you have the proper sip credentials and that the proxy is working by using a softphone on your internal network. Then connect your android phone wireless on your internal network and verify that works.
You may need to forward ports to access the proxy from outside your network and give your network a fixed ip addy using dyndns or the like.

You can find specifics for the steps I outlined within this forum
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
arcadia2uk
Dan isn't smart enough to hire me
Posts: 187
Joined: Sun Dec 07, 2008 9:03 pm

Post by arcadia2uk »

Post Reply