Hmm still have problems with the get variable with PHP i have this error now separated with a script: Sending string GET VARIABLE CALLERIDNUM\n to Asterisk... Wroten bytes to STDOUT: 25 Reading 80 bytes response from Asterisk... Received response: 510 Invalid or unknown command