Can you use the command line to dial magic jack
Moderators: Bill Smith, Pilot
Can you use the command line to dial magic jack
I did a search for this but didn't find anything, sorry if this was already answered. I have a home automation program I'm running and would like dial from a command line. Is this possible? Maybe from a batch file or AutoHotKey script? thanks
Command Line Arguments
Are there other command line arguments? I would be nice if one could restart the application, e.g. schedule "C:\Documents and Settings\YOURUSERNAME\Application Data\mjusbsp\magicJack.exe" /restart
R/mw
You can write a batch file (.BAT) that runs automatically at times you set up in the Task Scheduler in Windows. The Windows XP batch file code below works and simply kills the magicJack program that is running and then starts up the magicJack program again.
Windows XP Batch File Code
TASKKILL /F /IM "magicJack.exe"
"C:\Documents and Settings\YOURUSERNAME\Application Data\mjusbsp\magicJack.exe"
Note: Some Windows XP versions use the command TSKILL and a slightly different set of parameters to kill a program instead of the command TASKKILL.
Windows XP Batch File Code
TASKKILL /F /IM "magicJack.exe"
"C:\Documents and Settings\YOURUSERNAME\Application Data\mjusbsp\magicJack.exe"
Note: Some Windows XP versions use the command TSKILL and a slightly different set of parameters to kill a program instead of the command TASKKILL.
The Application Data directory has moved in Windows 7, and may vary if you are connected to a domain (mine is under "Roaming"). The simplest thing is probably to just use the %appdata% environment variable, which should work in XP or 7:
PLACE A CALL
"%appdata%\mjusbsp\magicJack.exe" /callto 8005551212
HANGUP
"%appdata%\mjusbsp\magicJack.exe" /d
The disappointing thing is that on my system, it takes 6-7 seconds to dial or hang up the call after issuing the command. What kind of response are others seeing?
I had forgotten that MJ is a mod of SJPhone. There are some command-line instructions on page 65 of this manual:
http://www.sjphone.org/doc/SJphone_User_Guide.pdf
I tried adding "+type=phone" and it didn't work, so some functions are apparently disabled. The /lf parameter to create a log file does work. This command creates the log in the directory from which you run the command:
CREATE LOG
"%appdata%\mjusbsp\magicJack.exe" /lf MJ.log
Mark
PLACE A CALL
"%appdata%\mjusbsp\magicJack.exe" /callto 8005551212
HANGUP
"%appdata%\mjusbsp\magicJack.exe" /d
The disappointing thing is that on my system, it takes 6-7 seconds to dial or hang up the call after issuing the command. What kind of response are others seeing?
I had forgotten that MJ is a mod of SJPhone. There are some command-line instructions on page 65 of this manual:
http://www.sjphone.org/doc/SJphone_User_Guide.pdf
I tried adding "+type=phone" and it didn't work, so some functions are apparently disabled. The /lf parameter to create a log file does work. This command creates the log in the directory from which you run the command:
CREATE LOG
"%appdata%\mjusbsp\magicJack.exe" /lf MJ.log
Mark
MJ Now Running as a Service
I took the guidance of redpepper, created a batch file called mjRestart and scheduled it daily using schtasks, hoping a periodic restart would would help with what appears to be a memory leak.
Not wanting to wait until 0300 to see if it would run properly I executed:
schtasks /run /tn mjRestart
For what it's worth, it's running fine (with the admin account credentials it was installed under) as a service.
MJ phone functions are working fine under different non-admin accounts and with no one logged in.
At this point I have not idea if it is stable. I guess at 0300 is will restart and hopefully, the phone functions will still work with no one logged on.
Not wanting to wait until 0300 to see if it would run properly I executed:
schtasks /run /tn mjRestart
For what it's worth, it's running fine (with the admin account credentials it was installed under) as a service.
MJ phone functions are working fine under different non-admin accounts and with no one logged in.
At this point I have not idea if it is stable. I guess at 0300 is will restart and hopefully, the phone functions will still work with no one logged on.
R/mw
-
RussMartin
- MagicJack Newbie
- Posts: 1
- Joined: Wed Jan 25, 2012 1:08 pm
command line examples for use in click.to
Thanks for this info, I got it to work from the command line.redpepper wrote:Here are the command line examples for Windows XP:
PLACE A CALL
"C:\Documents and Settings\YOURUSERNAME\Application Data\mjusbsp\magicJack.exe" /callto 8005551212
HANGUP
"C:\Documents and Settings\YOURUSERNAME\Application Data\mjusbsp\magicJack.exe" /d
I am now trying to get it to work with click.to (http://www.clicktoapp.com/)
I get magicJack to load but I am having trouble passing "Arguments of the call:"
My best guess for this field of (/callto "[Text]") except for the (), is not working.
Any suggestions?
Note: the copied text for the variable [Text] is a phone number in the format of (###)_###-###
where _ is a space.