Re: Telnet Problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If the TCP client disconnects then my script cannot help.
You should try to capture the output of tcp and find exactly what happens.
For me the problem was that when listing large number of rows (many calls for example) the status port stopped after a while but did not disconnect. I found that sending 'GoAhead' it makes tcp to continue with the rest of the rows. If the number of rows is really large it can stop again but the same solution works.
Also this was a thing not related to gnugk version but only on the number of rows. Usually a "cv" of 3-400 calls will make it happend.

Best regards,
Gabriel


At 01:40 PM 1/24/2007, Nyamul Hassaan wrote:
Dear Gabriel,
 
I've tested the modification today on 2.2.5, but it doesn't seem to be working.  I've reverted back to 2.2.4.
 
Regards
HASSAAN
 
 
 
----- Original Message -----
From: Gabriel Georgescu
To: GNU Gatekeeper Users ; GNU Gatekeeper Users
Sent: Sunday, January 21, 2007 22:19
Subject: Re: 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" <jan@xxxxxxxxxxxxxx>
To: <openh323gk-users@xxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, January 21, 2007 07:29
Subject: Re: 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, jan@xxxxxxxxxxxxxx, 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:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> 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:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
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:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
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:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
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:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux