juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
194 stars 111 forks source link

Implement upstream echo response #28

Closed rustamin closed 4 years ago

rustamin commented 6 years ago

Hallo, I am trying to implement auto reply echo request from the ISO host. When the ISO host send echo request I got this upstream error:

2018-03-26 16:47:50 - info: Upstream error: ISO host sent data with no client connected! Ignoring...

ISO host says
================================================================================================

     [Echo Request]

     Message Type Indicator [0].......................0800
     Bitmap [1].......................................82200000000000000400000000000000
     Transmission Date and Time [7]...................0326094750
     System Trace Audit Number [11]...................018386
     Network Management Information Code [70].........301

================================================================================================
juks commented 6 years ago

Done.

if414029 commented 5 years ago

Hello, I have an error like that picture. Im trying to echo test tes

juks commented 5 years ago

Hi!

Please refer to this line of code: https://github.com/juks/SocketQueue/blob/ddbab6578559cd2ff2191c03615ea873f95fe9d3/lib/iso8583/lib/packager/smartVista.js#L21

There are some basic sets of fields that SQ expects for every known message type.

if414029 commented 5 years ago

Thank you i have change that code. But when i run my code in port 80, the server listen in tcp6 . and when i send the data i got error like this crop

juks commented 5 years ago

What happens is the upstream host closes the connection after it receives the message. This might be due to the fact it expects different message format or due to some other reason else. Checking the upstream log might help.

if414029 commented 5 years ago

How to Checking the upstream log ?

if414029 commented 5 years ago

But when i run the server, host to host connection refused to my server. But can access my ip server in their browser. Host to host say they dont receive the message. The format that I made was in accordance with what the host to host needed and in accordance with the documentation

juks commented 5 years ago

What you might check:

if414029 commented 5 years ago

Hi,

Thank you

if414029 commented 5 years ago

The Host To Host run aplikasi visual basic, they dont have port? so how can i connect? example if my port 80 listend as apache2 they can connect. but if i stop my apache and run the socket queue they can;t connet

juks commented 5 years ago

You should not use privileged port numbers (under 1024).

I am sorry, but I can't help with your specific setup. You need to engineer it yourself.

if414029 commented 5 years ago

why i can't use privileged port numbers?