1. <?php
  2. $fp = fsockopen("udp://sip.VoipCheap.com", 5060, $errno, $errstr, 3);
  3. if (!$fp) {
  4.    echo "$errstr ($errno)<br />\n";
  5. } else {
  6.    $out = "Action: Loginr\nUserName: $usernamer\nSecret: $passwordr\nEvents: offr\nr\n";
  7.    fwrite($fp, $out);
  8.    while (!feof($fp)) {
  9.        echo fgets($fp, 128);
  10.    }
  11.    fclose($fp);
  12. }
  13. ?>


Lord! what's the matter with you Lord?! smile.gif

nie działa.. a powinno, nie rozumie.. może fsockopen" title="Zobacz w manualu PHP" target="_manual jakoś inaczej działa na UDP ?