Re: Anyone have an example of a perl script which sends commands to the status port?

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

 



Robert Kulagowski wrote:
> On Fri, Sep 24, 2010 at 3:01 PM, Jan Willamowius <jan@xxxxxxxxxxxxxx> wrote:
> > Robert Kulagowski wrote:
> >> On Fri, Sep 24, 2010 at 12:26 PM, Jan Willamowius <jan@xxxxxxxxxxxxxx> wrote:
> >> > Hi Robert,
> >> >
> >> > GnuGk includes 2 examples Perl scripts in contrib/statusport/,
> >>
> >> The unregisterip.pl script doesn't work.  If I perform the same
> >> command from a telnet session is does... :(
> >
> > We must make sure the connection is only closed after GnuGk had a
> > chance to process the commands. To avoid this timing issue, I added
> > reading GnuGk's responses to the sample before it closes the
> > connection. Then the unregisterip.pl script works again.
> 
> OK, thanks.  Is this something that changed recently?  Did the
> unregister_ip.pl script ever work?
> 
> I will alter my testing vqueue script and try again, now that I have a
> working example!

Of course it worked for me, when I initially put it into the CVS, but
that was years ago. This is a timing issue and it only happens when you
send a command and disconnect and most most status port scripts stay
connected for a long time. So if this timing window has changed over
the years, probably nobody noticed.

Regards,
Jan

-- 
Jan Willamowius, jan@xxxxxxxxxxxxxx, http://www.gnugk.org/

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
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