Random Thoughts

By , December 23, 2010 10:01 PM

Sunlight exposure

Cortisol Levels
– depression
– waking times and sleeping times

Calories consumed compared to calories used

noticed that, when testing oxygen intake, long periods of exercise did not necessarily lead to significant improvement. This led him to the conclusion that the intensity of exercise was more important to improving fitness than the amount of time spent on it

required amount of fast time before eating
ie not eating when hungry but actually waiting

Hacking MagicJack for the sip infomation

By , December 23, 2010 8:11 PM

Definition:
Magicjack is really a simple device that uses the standard SIP protocol to make inbound and outbound calls.
Thus if we know the details of this we can put it an Asterisk server or sipphone, eg iphone etc.

MagicJack uses standard SIP, so once you determine your SIP information (username/password/etc), you can use your MagicJack service with any standard VoIP device.
The easiest way to uncover your MagicJack SIP information is to use Fiddler.
Since all MagicJack passwords are very simple, you could also very easily brute force them using cain, although this technique is a bit more involved than using fiddler.

MagicJack Voip settings you will need to put into your device:
Voip Settings:

Username:
Password:
sip port: 5070
proxy: proxy1.yourcityname.talk4free.com:5070
register: yes
make call without reg: yes
answer call without reg: no
register expires: 3600
display name: your phone number

Replace EXXXXXXXXXX01 with your MJ number. Include E and 01.
Replace the proxy proxy1.Atlanta.talk4free.com:5070 with the proxy your MJ registers to and change host=67.90.138.70 to host=YourProxyIPHere.

OTHER METHOD

1. download pmdump from http://magicjackhacks.com/downloads/pmdump.exe
2. follow tutorial on how to create a dump file on this page http://magicjackhacks.com/ using pmdump.
3. download “hex workshop” its free. search on google for it. or use any other free hex editor.
4. open the dump file in the hex editor.
5. search for “ProxyUserName”
6. search for “ProxyUserPassword”
7. search for “SIPProxyURI”

the user name will be your phone number with a leading E and ending 01
password is 20 digits
sipproxy is an IP address

First download pmdump and hexeditor

http://magicjackhacks.com <–pmdump
http://www.hexworkshop.com/
cmd(enter) and then connect your magicjack.

The rest with hexeditor is simple, just drag the created file and search the two strings, it worked for me at the 4th try.
My last post is incomplete. Here is what i missed.
It is just the WHEN you are dumping the memory, it should be done inmediatly (5 seconds) after connecting magicjack, and executing the application. It worked for me at the 3th try.
I suggest to keep open CMD while magicjack is loading that way you will have the chance to do it quick.
pmdump -list (after magicjack has begin to run)
pmdump PID anyfilename (3 seconds after)
Then it’ll work.

FILES YOU MAY NEED:
http://www.megaupload.com/?d=SJ6V5SPF
http://rapidshare.com/#!download|221tl|181798719|MagicJack_Utilities_v1.6.zip|3513
http://rapidshare.com/#!download|492tl|196998576|MJInfo.exe|456

REF:
http://www.bauer-power.net/2010/05/how-to-hack-your-magicjack-to-make.html

Siemens Gigaset SIPPHONE Gizmo5 Settings

By , December 23, 2010 7:23 PM

I have searched numerous forums and cannot find any decente
sipphone settings for the Siemens Gigaset Phone for Sipphone / Gizmo5

The setup:

Personal Provider Data
* Authentication Name:  1747xxxxx what ever your gizmo5 number is
* Authentication password: password what ever yours is
* Username:     1747xxxxxx what ever your gizmo5 number is
* Display name:  1747xxxxxx what ever your gizmo5 number is

General Provider Data
* Domain:   proxy01.sipphone.com
* Proxy server address: proxy01.sipphone.com
* Proxy server port:     5060
* Registration Server: proxy01.sipphone.com
* Registrar server port: 5060
* Registration refresh time: 180

Network
* STUN enabled: YES
* STUN server: stun01.sipphone.com
* STUN port: 3478
* STUN refresh time: 240
* NAT refresh time: 20
* Outbound proxy mode: Never (can anyone confirm?)
* Outbound proxy: EMPTY
* Outbound proxy port: 5060

If you are having trouble with missing one part of the audio on a call ie cant hear the other person speaking but can hear and speak
fine otherwise then you should enable STUN.     (can anyone confirm?)
Gizmo5 does not provide an outbound proxy, so you should leave that field blank.

The screen shot:

siemens gigaset sipphone gizmo5 setup

The codecs:

Codecs:
GSM — fixed bit rate, not loss tolerant, narrow band (8khz sampling rate).
iSAC — variable bit rate, loss tolerant, narrow and wideband (8 to 16khz). Varies based on Bandwidth, packet loss, delay
iLBC — variable bit rate, loss tolerant, narrow
PCMA — fixed bit rate (8kHz sampling rate)
PCMU — fixed bit rate (8kHz sampling rate, high band width)
IPCMWB — 16 kHz sampling rate
EG711 (enhanced g711) — fixed bit rate, loss tolerant, narrowband
iPCM — fixed bit rate, loss tolerant, wide band.

I would recommend that you enable
ulaw u711
alaw a711
GSM
iLBC
g729

and disable
g722 (wideband)

I believe but have no confirmation that it does g729 in passthu mode only. (can anyone confirm?)

DTMF

In-band
Incoming stream delivers DTMF signals in-audio independently of codecs

Out-of-band
Incoming stream delivers DTMF signals out-of-audio using either SIP-INFO or RFC-2833 mechanism,
independently of codecs – in this case the DTMF signals are sent separately from the actual audio stream.

SIP-INFO is not recommended for DTMF delivery, since it cannot deliver strokes synchronously with the audio stream, introducing timing artifacts (mainly because it’s delivered using SIP, which is not a real-time mechanism for delivering media). It is very common for public services to NOT support SIP INFO, and it seems unlikely that such services will improve support for this delivery mechanism.

We want to use rfc2833

MYSQL REP STATUS

By , December 6, 2010 11:36 AM

OK – REPLICAITON  MASTER -> SLAVE BROKEN

Check the slave
cd to the mysql dir then cd to bin dir
mysql -u root -p
enter the password

then: show slave status \G
stop slave;
flush slave;
** consider putting RESET SLAVE; in (to reset sync file to 01)

ok so it really is broken

Then go to Master
again go to mysql and bin

mysql -u root -p

enter password

then
WARN USERS NOT TO USE MASTER SERVER FOR 3-4 mins

FLUSH TABLES WITH READ LOCK;
RESET MASTER;
FLUSH LOGS;
SHOW MASTER STATUS;

this will give you a file name and a position, write these down
then copy over the databases over to the slave

UNLOCK TABLES;
 QUIT;

Users are ok to use the master server,

SLAVE MACHINE
now go back to the backup server

copy the database files over the top of the existing ones then type in the mysql prompt:

CHANGE MASTER TO MASTER_HOST='192.168.1.20',
MASTER_USER='slave',
MASTER_PASSWORD='slavepassword',
MASTER_LOG_FILE='mserver-relay-sync-bin.000001',
MASTER_LOG_POS=106;
RATHER ALL THAT IS NEEDED IS

CHANGE MASTER TO MASTER_LOG_FILE='mserver-relay-sync-bin.000001', MASTER_LOG_POS=106;
START SLAVE;

START SLAVE;
 SHOW SLAVE STATUS \G

1. Should read seconds behind master a 0 NOT NULL
2. null = problem
3. if there is a number eg 123 seconds behind master then repeat

SHOW SLAVE STATUS;

b. It will read 0 in a few moments as it updates

QUIT;

Now it is all fixed until it breaks again

Thomas Challenger Thomas Challenger