|
|
|
|
@ -2182,16 +2182,16 @@ void CQnetLink::ProcessREF(unsigned char *buf, const int length)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (length==5 && buf[0]==5 && buf[1]==0 && buf[2]==24 && buf[3]==0 && buf[4]==0)
|
|
|
|
|
{
|
|
|
|
|
for (int i=0; i<3; i++)
|
|
|
|
|
{
|
|
|
|
|
if (fromDst4==to_remote_g2[i].addr && to_remote_g2[i].addr.GetPort()==rmt_ref_port)
|
|
|
|
|
{
|
|
|
|
|
if (log_debug)
|
|
|
|
|
printf("Got a disconnect request!!\n");
|
|
|
|
|
/* reply with the same DISCONNECT */
|
|
|
|
|
REFWrite(buf, 5, fromDst4);
|
|
|
|
|
|
|
|
|
|
for (int i=0; i<3; i++)
|
|
|
|
|
{
|
|
|
|
|
if (fromDst4==to_remote_g2[i].addr && to_remote_g2[i].addr.GetPort()==rmt_ref_port)
|
|
|
|
|
{
|
|
|
|
|
printf("Call %s disconnected\n", to_remote_g2[i].cs);
|
|
|
|
|
|
|
|
|
|
to_remote_g2[i].cs[0] = '\0';
|
|
|
|
|
|