Dear Gabriel,

It is good to know that somebody out there is using my scripts.  :)

I've reverted back to using 2.2.4 for now.  Will change to 2.2.5 and check 
tonight.

Thanks once again for your help.

Regards
HASSAAN



  ----- Original Message ----- 
  From: Gabriel Georgescu 
  To: GNU Gatekeeper Users ; GNU Gatekeeper Users 
  Sent: Sunday, January 21, 2007 22:19
  Subject: Re: [Openh323gk-users] Telnet Problems


  Hi Hassan,

  I am using your script also and I had same problem retrieving large messages 
from gk's status port.
  I was able to make a workarround (starting from Grzegorz Stanislawski's pyton 
script) to not remain blocked.

  These lines are in get_gknow.php and they basically send a 'GoAhead' message 
to telnet when it stops for a long time:

  function sck_read($match) {^M
          global $sck, $output; $int = ""; $chr0count = 0;^M
          while (true) {^M
                  $chr = fgetc($sck);^M
                  //if (strlen($chr) == 0) $chr0count ++;^M
                  //    if ($chr0count > 3) {^M
                  //      echo "\r\n\r\nNo new data found after ".(3 * 5)." 
seconds.\r\nCannot Continue
                  //      echo "\r\n\r\n******  OUTPUT  
******\r\n\r\n$output\r\n\r\n******  BUFFER  *
                  //      sck_close();^M
                  //    }^M
                  if (strlen($chr) == 0) {
                      fwrite($sck,CHR(255)." ".CHR(249));
                      fwrite($sck,"\r\n");
                  }
                  $int .= $chr;^M
                  if (strstr($int, $match)) {^M
                          $output .= $int;^M
                          return 1;^M
                  }^M
          }^M
  }^M

  With this it will take a little longer to retrieve entire calls but at least 
it works and doesn't stuck.
  I know is not the best method and is only a workaround but the problem seems 
to come from telnet and the chunk length is different of each OS. So is 
complicated to find a solution.

  Best regards,
  Gabriel



  At 04:03 AM 1/21/2007, Nyamul Hassaan wrote:

    Hi Jan,

    You are right, my messages are huge.  Sometimes even close to 100 kb.  I
    have written a small php utility which downloads the current calls from the
    GnuGK every 15 seconds, and this data can be viewed in an assorted manner
    (by routes and by source IPs).

    Although I use PHPs socket functions to do this, but the result is the same
    as using a regular telnet client from windows.

    Is there anything else that I should be looking into?

    Regards
    HASSAAN



    ----- Original Message ----- 
    From: "Jan Willamowius" <[EMAIL PROTECTED]>
    To: <[email protected]>
    Sent: Sunday, January 21, 2007 07:29
    Subject: Re: [Openh323gk-users] Telnet Problems


    > Hi,
    >
    > in 2.2.5 big messages (greater 10 KB) are sent in chuncks and a small
    > delay is added between them. This prevented data loss people were
    > seeing on large messages. But it has been tested mostly on Unix.
    >
    > Are your messages > 10KB ? Maybe we have to disable this on Windows,
    > but I wouldn't know why. I also tested with the MS Telnet client.
    >
    > Regards,
    > Jan
    >
    > Nyamul Hassaan wrote:
    > > Hi,
    > >
    > > There seems to be a problem with telnet status port messages in version
    2.2.5.  Whenever I want to current calls list (! command), the telnet
    session terminates in the middle, after some data has been received.  This
    usually happens when there is a moderately higher call load (over 50 calls).
    The same problem occassionaly happened during versions 2.2.2 and 2.2.3, but
    in 2.2.4 this was almost non-existent.
    > >
    > > Has there been a change in the way GnuGK sends packets over the telnet
    that is causing this?
    > >
    > > I'm using Microsoft Windows, so my telnet client is Microsoft Telnet
    Client.
    > >
    > > Regards
    > > HASSAAN
    >
    >
    > -- 
    > Jan Willamowius, [EMAIL PROTECTED], http://www.gnugk.org/ 
    >
    > -------------------------------------------------------------------------
    > Take Surveys. Earn Cash. Influence the Future of IT
    > Join SourceForge.net's Techsay panel and you'll get the chance to share
    your
    > opinions on IT & business topics through brief surveys - and earn cash
    > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
    > _______________________________________________________
    >
    > Posting: mailto:[email protected]
    > Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
    > Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
    > Homepage: http://www.gnugk.org/ 
    >


    -------------------------------------------------------------------------
    Take Surveys. Earn Cash. Influence the Future of IT
    Join SourceForge.net's Techsay panel and you'll get the chance to share your
    opinions on IT & business topics through brief surveys - and earn cash
    http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
    _______________________________________________________

    Posting: mailto:[email protected]
    Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
    Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
    Homepage: http://www.gnugk.org/ 


------------------------------------------------------------------------------


  -------------------------------------------------------------------------
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT & business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


------------------------------------------------------------------------------


  _______________________________________________________

  Posting: mailto:[email protected]
  Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
  Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
  Homepage: http://www.gnugk.org/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________________

Posting: mailto:[email protected]
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

Reply via email to