Skip to content
Snippets Groups Projects
Commit c45495b4 authored by rswindell's avatar rswindell
Browse files

Log (to session log file) baud rate and Caller-ID info from SEXPOTS.

parent 3acd92b0
No related branches found
No related tags found
No related merge requests found
...@@ -352,11 +352,15 @@ bool sbbs_t::answer() ...@@ -352,11 +352,15 @@ bool sbbs_t::answer()
return(false); return(false);
if(stricmp(terminal,"sexpots")==0) { /* dial-up connection (via SexPOTS) */ if(stricmp(terminal,"sexpots")==0) { /* dial-up connection (via SexPOTS) */
SAFEPRINTF2(str,"%s connection detected at %lu bps", terminal, cur_rate);
logline("@S",str);
node_connection = (ushort)cur_rate; node_connection = (ushort)cur_rate;
SAFEPRINTF(connection,"%lu",cur_rate); SAFEPRINTF(connection,"%lu",cur_rate);
SAFECOPY(cid,"Unknown"); SAFECOPY(cid,"Unknown");
SAFECOPY(client_name,"Unknown"); SAFECOPY(client_name,"Unknown");
if(telnet_location[0]) { /* Caller-ID info provided */ if(telnet_location[0]) { /* Caller-ID info provided */
SAFEPRINTF(str, "CID: %s", telnet_location);
logline("@*",str);
SAFECOPY(cid,telnet_location); SAFECOPY(cid,telnet_location);
truncstr(cid," "); /* Only include phone number in CID */ truncstr(cid," "); /* Only include phone number in CID */
char* p=telnet_location; char* p=telnet_location;
...@@ -369,7 +373,13 @@ bool sbbs_t::answer() ...@@ -369,7 +373,13 @@ bool sbbs_t::answer()
SAFECOPY(client.addr,cid); SAFECOPY(client.addr,cid);
SAFECOPY(client.host,client_name); SAFECOPY(client.host,client_name);
client_on(client_socket,&client,TRUE /* update */); client_on(client_socket,&client,TRUE /* update */);
} else {
if(telnet_location[0]) { /* Telnet Location info provided */
SAFEPRINTF(str, "Telnet Location: %s", telnet_location);
logline("@*",str);
} }
}
useron.misc&=~(ANSI|COLOR|RIP|WIP); useron.misc&=~(ANSI|COLOR|RIP|WIP);
useron.misc|=autoterm; useron.misc|=autoterm;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment