Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATH1 "off-hook" doesn't work #14

Open
cbmbas opened this issue Aug 25, 2019 · 0 comments
Open

ATH1 "off-hook" doesn't work #14

cbmbas opened this issue Aug 25, 2019 · 0 comments

Comments

@cbmbas
Copy link

cbmbas commented Aug 25, 2019

tcpser seems to make no difference between ATH0 and ATH1.
ATH0 = Hang up / On-Hook works, while ATH1 = busy / Off-Hook has no effect.
Loglevel 5 output of both commands:

2019-08-25 14:07:23:-1711884544:DEBUG:Evaluating ATH0
2019-08-25 14:07:23:-1711884544:DEBUG:Command: H (72), Flags: 0, index=2, num=0, data=0-0
2019-08-25 14:07:23:-1711884544:INFO:Disconnecting modem
2019-08-25 14:07:23:-1711884544:INFO:Disconnecting
2019-08-25 14:07:23:-1711884544:INFO:Control Lines: DSR:1 DCD:0 CTS:1
2019-08-25 14:07:23:-1711884544:DEBUG:Command: (-1), Flags: -1, index=2, num=0, data=0-0
2019-08-25 14:07:23:-1711884544:DEBUG:Sending OK response to modem
2019-08-25 14:07:26:-1711884544:DEBUG:Data available on serial port
2019-08-25 14:07:26:-1711884544:DEBUG:Read 1 bytes from ip232 socket
2019-08-25 14:07:26:-1711884544:DEBUG:Read 1 bytes from serial port
2019-08-25 14:07:26:-1711884544:DEBUG:Data available on serial port
2019-08-25 14:07:26:-1711884544:DEBUG:Read 1 bytes from ip232 socket
2019-08-25 14:07:26:-1711884544:DEBUG:Read 1 bytes from serial port
2019-08-25 14:07:26:-1711884544:DEBUG:Data available on serial port
2019-08-25 14:07:26:-1711884544:DEBUG:Read 1 bytes from ip232 socket
2019-08-25 14:07:26:-1711884544:DEBUG:Read 1 bytes from serial port
2019-08-25 14:07:27:-1711884544:DEBUG:Data available on serial port
2019-08-25 14:07:27:-1711884544:DEBUG:Read 1 bytes from ip232 socket
2019-08-25 14:07:27:-1711884544:DEBUG:Read 1 bytes from serial port
2019-08-25 14:07:27:-1711884544:DEBUG:Data available on serial port
2019-08-25 14:07:27:-1711884544:DEBUG:Read 1 bytes from ip232 socket
2019-08-25 14:07:27:-1711884544:DEBUG:Read 1 bytes from serial port
2019-08-25 14:07:27:-1711884544:DEBUG:Evaluating ATH1
2019-08-25 14:07:27:-1711884544:DEBUG:Command: H (72), Flags: 0, index=2, num=1, data=0-0
2019-08-25 14:07:27:-1711884544:INFO:Disconnecting modem
2019-08-25 14:07:27:-1711884544:INFO:Disconnecting
2019-08-25 14:07:27:-1711884544:INFO:Control Lines: DSR:1 DCD:0 CTS:1
2019-08-25 14:07:27:-1711884544:DEBUG:Command: (-1), Flags: -1, index=2, num=0, data=0-0
2019-08-25 14:07:27:-1711884544:DEBUG:Sending OK response to modem

"1" after ATH is recognized -> num=1.
On a RS-232 Tester which displays the Lines with LEDs, DCD doesn't change state after ATH1.

I guess it's located in modem_core.c:
case 'H':
if (num == 0) {
mdm_disconnect(cfg);
}
else if (num == 1) {
mdm_answer(cfg); <----
}

This only makes line busy, on a "RING". But I don't know, if that's the right / only Codepart.
SysOps sometimes want to make their Line busy f.e. for BBS maintanance with ATH1, which currently doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant