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

Provide a Emulated Terminal as virtual pty for connected calls #1

Open
gdassori opened this issue Jan 2, 2020 · 4 comments
Open

Provide a Emulated Terminal as virtual pty for connected calls #1

gdassori opened this issue Jan 2, 2020 · 4 comments
Labels

Comments

@gdassori
Copy link
Member

gdassori commented Jan 2, 2020

Evaluate socat for vmodem

socat -u TCP4-LISTEN:8290 PTY,link=$HOME/vmodem0,rawer,wait-slave

@fpietrosanti
Copy link
Contributor

fpietrosanti commented Jan 2, 2020

We could make a TCP listener to receive the asterisk_modem connection back into Python and then decide whenever just to log the output or to make it also available as a PTY for interaction with minicom

https://stackoverflow.com/questions/48781155/how-to-connect-inet-socket-to-pty-device-in-python

@fpietrosanti
Copy link
Contributor

@fpietrosanti
Copy link
Contributor

@fpietrosanti
Copy link
Contributor

Probably using socat, even if may sounds a "dirty design decision", would gave us clean portability across multiple operating system for the PTY-related handling code?

@fpietrosanti fpietrosanti changed the title Evaluate virtual pty Provider a Emulated Terminal as virtual pty for connected calls Jan 3, 2020
@fpietrosanti fpietrosanti changed the title Provider a Emulated Terminal as virtual pty for connected calls Provide a Emulated Terminal as virtual pty for connected calls Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants