Custom Provisioning Server

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
MagicHack
Dan isn't smart enough to hire me
Posts: 241
Joined: Mon Nov 12, 2007 4:11 pm
Contact:

Custom Provisioning Server

Post by MagicHack »

A few people have asked me about setting up a custom provisioning server, so I decided to post some information on the subject...

By now, I am sure most of you know that when the magicJack starts up, it contacts the provisioning server to get your SIP credentials (along with some other information). Some people have asked if it is possible to change this information (for various reasons we will touch on below).

You could always use everyone's favorite tool (fiddler) to modify data on the fly as it is returned from the provision server, but the approach I like to use is simply to set up my own provisioning server, and 'trick' the magicJack into talking to my provisioning server (rather than the one out at prov1.talk4free.com).

To do this, you will need to:
  1. install and configure an https server - in my case, the https server is apache, running on my local windows machine. (You'll need to generate your own certificate, etc.)
  2. determine your sip credentials, and save this information as index.html (or index.php, whatever you have as the default file served from your webserver) in your htdocs\softphone\provision directory
  3. edit your host file, and reconfigure it so that any https calls to the provisioning server go to your local machine rather than to prov1.talk4free.com. To do this, add a line to your hosts file like:

    Code: Select all

    127.0.0.1   prov1.talk4free.com
  4. open up your web browser to https://prov1.talk4free.com/softphone/provision/, accept the certificate, verify the SIP information is correct, etc.
  5. start up your magicjack
The beauty of a solution like this is you can modify any of your provisioning information simply by editing that html file. For example, you could:
  • change your ProxyUserName/Password/etc to be that of an old magicJack (to retain your original MJ number)
  • modify the Software update section to prevent a new version of the software from being installed (or to force a particular version to be installed)
  • set the CustomField10 to be a URL that is launched when you hit 411 (I like setting mine to the URL for this forum)
  • set the CustomField11 to be a name/phone number to display in your softphone (I like setting this to MagicHack)
  • set the CustomerBannerURL to be the url you want displayed in the ad portion of the softphone (I like setting this to: http://www.ymaxcorp.com/_images/DanBori ... Pic_01.jpg)
Once complete, you too can have a beautiful softphone with the inventor's picture on it!
Image

Personally, I'd set the index.html file to be some php script to return provisioning information based on the serial number of the jack that is passed in, but I'll leave all of this as an exercise for the reader.

-MH
Last edited by MagicHack on Tue Dec 04, 2007 11:27 pm, edited 1 time in total.
testing123
Dan Should Pay Me
Posts: 703
Joined: Tue Nov 13, 2007 2:36 pm
Contact:

Interesting

Post by testing123 »

Dude, you are hilarious ... :lol:

VERY useful though. Thanks alot of this and all the other great info!

(I may be able to use this to repair a "dead" jack that once worked fine and now doesn't seem to want to configure itself properly ... and with no real support, this may be the ticket).
Post Reply