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 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: Wed Jun 24, 2009 8:23 pm    Post subject:

Maybe but probably only if you are already experienced with analysing osx programs. Historically there have been some instances of osx programs being easier to analyze for one reason or another but if you know what you're doing it doesn't matter too much.
Back to top
View user's profile Send private message
dtm
MagicJack Expert


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

PostPosted: Wed Jun 24, 2009 8:35 pm    Post subject:

srvtec:

It is MD5 as that is specified in the sip register request. The problem is, they could be doing a million things to hide or alter the password. I have tried a few obvious things like MD5ing the password, adding and removing characters from it, and appending things to it. The reality is, I am shooting into the dark. The only hope is to debug it and figure out what is going on.
Back to top
View user's profile Send private message
laserjobs
Dan Should Pay Me


Joined: 12 Nov 2007
Posts: 670

PostPosted: Wed Jun 24, 2009 8:41 pm    Post subject:

dtm wrote:
srvtec:

It is MD5 as that is specified in the sip register request. The problem is, they could be doing a million things to hide or alter the password. I have tried a few obvious things like MD5ing the password, adding and removing characters from it, and appending things to it. The reality is, I am shooting into the dark. The only hope is to debug it and figure out what is going on.


I think you have figured it out but we will probably need to decompile the software and hope we can find the algorithm. That is why I was wondering if the Mac OS version would be easier to deal with than Windows.
Back to top
View user's profile Send private message
dtm
MagicJack Expert


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

PostPosted: Wed Jun 24, 2009 9:20 pm    Post subject:

Here is the php code to calculate the response if anyone else wants to play. I have confirmed it works on a sucessful login to a known account with my ATA.

Take a wireshark dump from your MJ and see if you can make the response match the MJ response by manipulating your password. Maybe somebody will get lucky! If you do, you are required to PM me. Wink

<?php

$nonce = "XXXXXXXXXXXXXXXXX";
$user = "EXXXXXXXXXX01";
$password = "XXXXXXXXXXXXXXXXXXXX";
$realm = "stratus.com";
$uri = "sip:talk4free.com";
$method = "REGISTER";

$A1 = ($user.":".$realm.":".$password);
$A2 = ($method.":".$uri);
echo "A1 = ".$A1."<br>";
echo "A2 = ".$A2."<br><br>";

$HA1 = MD5($A1);
$HA2 = MD5($A2);
echo "HA1 = ".$HA1."<br>";
echo "HA2 = ".$HA2."<br><br>";

$response = MD5($HA1.":".$nonce.":".$HA2);
echo "response = ".$response."<br>";

?>
Back to top
View user's profile Send private message
MJuser909909
magicJack Apprentice


Joined: 13 Jun 2009
Posts: 15

PostPosted: Thu Jun 25, 2009 9:30 am    Post subject:

DTM that is pretty sweet, ill play with it and let you know my results...
Back to top
View user's profile Send private message
MJuser909909
magicJack Apprentice


Joined: 13 Jun 2009
Posts: 15

PostPosted: Thu Jun 25, 2009 6:30 pm    Post subject:

deleted due to stewart being smarter and far more superior.

Last edited by MJuser909909 on Fri Jun 26, 2009 9:05 am; edited 2 times in total
Back to top
View user's profile Send private message
Stewart
Dan Should Pay Me


Joined: 13 Nov 2007
Posts: 663

PostPosted: Thu Jun 25, 2009 9:29 pm    Post subject:

MJuser909909 wrote:
here is the Perl version of dtm's script. (run from a unix shell):
The above is not correct; the argument to the final digest must include colon separator characters. Unless you are trying to spread disinformation (like some others here), you should test your code before posting, e.g. on the traffic generated by your ATA.

Also, IMHO, while OOP has its place, it's better to use simple procedural code when explaining a concept or an algorithm to a wide audience.
Code:
#!/usr/local/bin/perl -w

use Digest::MD5 qw(md5_hex);

$nonce = "XXXXXXXXXXX";
$user = "EXXXXXXXXX01";
$password = "XXXXXXXXXXXXXX";
$realm = "stratus.com";
$uri = "sip:talk4free.com";
$method = "REGISTER";

$ha1 = md5_hex($a1 = "$user:$realm:$password");
$ha2 = md5_hex($a2 = "$method:$uri");
$response = md5_hex("$ha1:$nonce:$ha2");

print "a1 = $a1\n";
print "a2 = $a2\n\n";

print "ha1 = $ha1\n";
print "ha2 = $ha2\n\n";

print "response = $response\n\n";
Above tested on ActiveState perl 5.8.7 under Win XP; I would expect it to also work under Linux, Unix, or Mac, all of which normally have perl preinstalled.
Back to top
View user's profile Send private message
dan
Dan isn't smart enough to hire me


Joined: 12 Nov 2007
Posts: 113
Location: Denver

PostPosted: Fri Jun 26, 2009 9:14 am    Post subject:

Stewart did you come out of reitrement?

You going to make an app to pull all the registrations requirments?
Back to top
View user's profile Send private message
srvctek
MagicJack Expert


Joined: 09 Jan 2009
Posts: 76

PostPosted: Fri Jun 26, 2009 9:52 am    Post subject:

Great Idea! Stewart please help us! Very Happy
Back to top
View user's profile Send private message
banstro
MagicJack Newbie


Joined: 03 Dec 2007
Posts: 4

PostPosted: Fri Jun 26, 2009 10:27 am    Post subject:

Ahh finally Stewart. I thought you retired. Now I see some ray of hope.
Back to top
View user's profile Send private message
srvctek
MagicJack Expert


Joined: 09 Jan 2009
Posts: 76

PostPosted: Fri Jun 26, 2009 11:26 am    Post subject:

Yes please come out of retirement, lots of people need your help right now, retirement sux anyway, you can only sip margarita's on a beach for so long before it gets boring Laughing
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: Fri Jun 26, 2009 11:37 am    Post subject:

same here~ please help us. So, I don't have to look very hard to find any other VOIPs to make it works with sipsorcery, etc...
Back to top
View user's profile Send private message
dtm
MagicJack Expert


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

PostPosted: Fri Jun 26, 2009 1:49 pm    Post subject:

Question: How did Ringo get high?

Answer that and you will know how I got this... MJ is dead and so is RFC 2617. It doesn't require any certs or keys or TLS encryption to verify the code below. Just punch in your numbers and see if the response matches the dongle's response. The trick is explained in the code.

The bad news is, an ATA won't do this and even if you modify the firmware to do it, the other side can change it again. They can keep screwing us until the sun don't shine. Once you leave the RFC standards behind (which they have) then you can do as you please.

So I present this here for your discussion. To Mr. Dan the inventor; I ask that you do consider a byod service, premium account, or whatever you want to call it. You now have the ATAs locked out so we can't cheat so charge us a little extra to use them legitimately.
--------------------------------------
<?php

$nonce = "5437837f0_06998";
$callid = "75E16D8104254DB68CFE8CAF8D78DCD60xc0a80504";
$realm = "stratus.com";
$uri = "sip:talk4free.com";
$method = "REGISTER";
$user = "EXXXXXXXXXX01";
$password = "XXXXXXXXXXXXXXXXXXXX";

// Here comes the trick
// $callid is used as a lookup table to append the nonce value
// 75E16D8104254DB68CFE... callid
// 0123456789abcdef....... index
// First an underscore is appended to the nonce
// Now take the first hex character of the nonce which is 5 so get the callid character at index 5
// This is a D since the index is zero based
// Append a D to the nonce and so on
// The final nonce = 5437837f0_06998_D6110116 in this example
// The next block of code does the trick

$newnonce = $nonce."_";
for ($i=0; $i<8; $i++){
$index = hexdec(substr($nonce,$i,1));
$newnonce = $newnonce.substr($callid,$index,1);
}

$A2 = ($method.":".$uri);
$A1 = ($user.":".$realm.":".$password);
$HA1 = MD5($A1);
$HA2 = MD5($A2);
$response = MD5($HA1.":".$newnonce.":".$HA2);

echo "A1 = ".$A1."<br>";
echo "A2 = ".$A2."<br><br>";
echo "response = ".$response."<br>";

// The original nonce is returned to the server but the response
// is actually calculated with the appended nonce.

?>
Back to top
View user's profile Send private message
srvctek
MagicJack Expert


Joined: 09 Jan 2009
Posts: 76

PostPosted: Fri Jun 26, 2009 2:32 pm    Post subject:

Are you 100% sure this is what they did and it cant be emulated?
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: Fri Jun 26, 2009 2:37 pm    Post subject:

Nice friends.

Well that is interesting. At least now we can make a proxy server that will run without the dongle for now.
Back to top
View user's profile Send private message
onlinepcfun
magicJack Apprentice


Joined: 21 Apr 2008
Posts: 19

PostPosted: Fri Jun 26, 2009 2:46 pm    Post subject:

az1324 wrote:
Nice friends.

Well that is interesting. At least now we can make a proxy server that will run without the dongle for now.

Exactly...something similar to Stewart's callerid spoof script Smile I see light at the end of tunnel
Stewart...you are next Smile
Back to top
View user's profile Send private message
netdata
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 29

PostPosted: Fri Jun 26, 2009 11:31 pm    Post subject: Quick calculator

Making a quick calculator program to generate your password.

I will put a link to the windows executable and later put up the linux and osx version and maybe a windows mobile version also.

I have a summer cold, and my birthday is tomorrow, but I will try
to put it up tonight.

I am pretty miserable right now.

dtm and stewart if you have anything that needs to be added to the program
please pm me. Thanks guys you are great.
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: Fri Jun 26, 2009 11:42 pm    Post subject:

I wish you a happy birthday. Take a warm shower then turn it to a cold shower, and you will feel a lot better. Wish you get well.
Back to top
View user's profile Send private message
UncleRunkle
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 27

PostPosted: Fri Jun 26, 2009 11:42 pm    Post subject:

Thanks netdata for your help. You are invaluable as well to this thread...
Back to top
View user's profile Send private message
dtm
MagicJack Expert


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

PostPosted: Sat Jun 27, 2009 12:32 am    Post subject:

Quote:
Making a quick calculator program to generate your password.

How can that be done? The nonce and callid changes with each register.
Back to top
View user's profile Send private message
onlinepcfun
magicJack Apprentice


Joined: 21 Apr 2008
Posts: 19

PostPosted: Sat Jun 27, 2009 1:01 am    Post subject:

dtm wrote:
Quote:
Making a quick calculator program to generate your password.

How can that be done? The nonce and callid changes with each register.

Thank you and Don't worry DTM...you were wonderful and did your magic...let netdata and Stewart take care of the rest...I know this can be 100% done as this was done previously and I know for sure what they are doing Smile

Happy Birthday netdata and get well soon!
Back to top
View user's profile Send private message
netdata
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 29

PostPosted: Sat Jun 27, 2009 1:24 am    Post subject: well

For now I was going to make a quick calculator just for testing
to make things easier.

It wouldn't actually be doing anything useful yet, but have to start somewhere.

PS For those following this thread, I don't mean to mislead anybody, this is just the first steps to a long and bumpy road, and its going to take a collaborative effort.

I have seen mention on another thread in about an unrelated topic,
the mention of an OpenWRT addon, now this is beyond my technical expertise, but I am going to try and pick their brains about how to go about making an addon, but first we need to find a way to do it.

Of course this would only help those running a linksys router with OpenWRT firmware AND an ATA device that may also have to be modified.

Right now, as dtm states, there is NO obvious way of doing this.
That might change, but for right now that is very true.

Im looking into piggybacking, injection, and other sneaky methods,
not as a final solution, but to hopefully gain some new insight.

dtm and stewart are the champs and they deserve all the credit,
without dtm we would still be in the dark. So kudos to them.
Back to top
View user's profile Send private message
netdata
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 29

PostPosted: Sat Jun 27, 2009 2:13 am    Post subject: callid

If we can find a way to forecast the next callid, maybe using the cisco API
or look at a call right before a new call is initiated and use that data to generate what the next matching callid would be, then we can eliminate
at least one more wildcard...

Everything has an algorithm, once you know which method you can use
the algorithm to generate your own data, that's how crackers make keygens for software... there is always a way...
Back to top
View user's profile Send private message
pancho1950
MagicJack Contributor


Joined: 07 Mar 2009
Posts: 54

PostPosted: Sat Jun 27, 2009 9:21 am    Post subject:

Happy birthday netdata
Back to top
View user's profile Send private message
los93sol
MagicJack Newbie


Joined: 31 May 2009
Posts: 4

PostPosted: Sat Jun 27, 2009 1:09 pm    Post subject:

so by running this script I should be able to get my asterisk trunk for MJ running again?
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: Sat Jun 27, 2009 1:36 pm    Post subject:

If you wanna play around with your ATAs here is a little proxy in .NET I threw together and it is tested and working though I didn't play much. This is not perfect cloaking but it does rewrite your User-Agent. Other things such as ports and Call-ID format are giveaways. Right now it seems to only work on listen port 5070 because the way BYE works apparently is to send to the port specified by the server and my proxy only listens/sends on one port for now. Use at your own risk.

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


Last edited by az1324 on Sun Jun 28, 2009 7:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
netdata
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 29

PostPosted: Sat Jun 27, 2009 1:46 pm    Post subject: wow

You guys are sharp, I feel like a dum dum compared to how quick everyone else is.

I am trying to recruit some talent to make a OpenWRT addon.

The Cat & Mouse game is now ON.

Don't expect the first release to last long, as dtm stated, this
fix could be detected easily, they will likely change it, and
the use of any such fix could result in your MJ account being
permanently banned.

So just a quick caveat, use at your own risk.

Not to be a bringer of doom, but I guess if you are about
ready to leave MJ anyway, you have nothing to lose.

If I get banned I know I will be returning my MJ to the store.
Back to top
View user's profile Send private message
UncleRunkle
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 27

PostPosted: Sat Jun 27, 2009 2:04 pm    Post subject:

lol, netdata...you feel stupid? Think about the rest of us here. I need to learn coding and obviously a bunch of other things yet...

Now, let me get this straight...

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.

If I am understanding correctly, then we could play cat and mouse easier at least...

And as far as OpenWRT, great thinking as I have a DD-WRT router myself. Might want to try DD-WRT as well or the Tomato guys. From what I understand (which isn't much) it should not be too difficult to implement the coding for this on the routers...
Back to top
View user's profile Send private message
jamoke
MagicJack Newbie


Joined: 29 Dec 2008
Posts: 9

PostPosted: Sat Jun 27, 2009 5:00 pm    Post subject:

Is there a chance that these tweaks will work for Asterisk users? I can globally set my user-agent, but that's obviously only one piece of the puzzle.
Back to top
View user's profile Send private message
netdata
magicJack Apprentice


Joined: 09 Jun 2009
Posts: 29

PostPosted: Sat Jun 27, 2009 5:14 pm    Post subject: not yet

Not until one of us has a Eureka! moment, and sees some glaring hole to leap through.

Right now this is still early.

I wouldn't expect to see an Asterix patch for at least a month.
(Maybe that is being VERY optimistic tho)

I am sure almost all of us tinkering with this stuff work a full time job
or at least have a project occupying most of our time.
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: 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:
[email protected]> 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]
[email protected]>

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
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 1, 2, 3, 4  Next
Page 1 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.