Hi, I'am intergrating Asterisk with our CRM system. I have tryed this but thats not working: fwrite($socket, "Context: local\r\n"); fwrite($socket, "Setvar: Var\r\n"); fwrite($socket, "Var: ". $channel ."\r\n"); Regards, Paul