login about faq

Good afternoon All,

I am looking to connect to my phone system through an SSH session (no need to log in) and monitor for specific text to be output. If the text is fount then grab all additional text until another specific string of text is encountered then e-mail the grabbed text. I am looking for the text that gets output when someone dials 911. The subsequent text shows the time/date/name/phone number/location for who place the 911 call.

I am using VB2015 and I am one of those people who knows just enough to be dangerous. :P

I am having a bit of trouble figuring out how to open an SSH session and then having the program monitor for the specific text to come through. I was hoping someone might have a suggestion about how to proceed or where to look for pertinent documentation. I've played around with parsing text/e-mailing and I am pretty comfortable with that.

Any help/advice would be greatly appreciated.

Vr

Mike

asked Dec 27 '16 at 15:15

Mike_Schock's gravatar image

Mike_Schock
1


Mike

What phone ? Is it jailbroken/rooted ? What output you are looking for ? In a dedicated file or generic system log ? If you know the specific file location you might can just use the equivalent of SCP from the lib and copy the file.

link

answered Dec 27 '16 at 19:39

ChristianVirtual's gravatar image

ChristianVirtual
16

Good morning Christian,

Thank you for your response. I am sorry. I should have been clearer in my post. I am connecting to a PBX (Private Branch Exchange)phone system. It provides telecommunication services throughout our organization. We have telephones at our user's work stations that are hard wired back to the phone system. The phone system is programmed through a command line interface. (Either via a serial or ethernet connection... I happen use PuTTY to connect using SSH). The interface also spits out system status such as audit codes, bug messages, clocking status, etc.

(Dec 28 '16 at 10:04) Mike_Schock

In addition it displays other information that I am looking to capture. When someone dials 911 for emergency services the system will display information about the call as soon as the last '1' is pressed. This is the information that I wish to capture and e-mail out. It shows the time/date/telephone number/name/location of the phone where the 911 call was placed. The information isn't written anywhere. It is just spit out when the even occurs.

(Dec 28 '16 at 10:04) Mike_Schock

So I am trying to find a way to write a VB program to sit there and look at what comes out of the PBX and it happens to see a 911 event then it should capture the info and e-mail it.

I hope this helps clarify.

Thanks!

Mike

(Dec 28 '16 at 10:04) Mike_Schock

Good evening Mike

Had you a look at this example ? https://www.example-code.com/vbdotnet/socket_connect.asp

This should give some first hint and if not working at least some concrete error log.

I assume you have an IP address and port number to connect to; eventually you will use stream of data via a TCP socket. Sounds not far away from a telnet/shell setup.

(Dec 29 '16 at 08:34) ChristianVirtual

If required you can encapsulate it in SSH with password or key-based autentification. I'm new with this framework but managed rather quick to do something similar from iPhone to a TCP socket server. Local and via SSH. To bad I'm more on Linux, Mac and iOS ; no VB at hand I could play with.

If you could try and share the logging data it would help to help further.

Enjoy the endeavor Christian

(Dec 29 '16 at 08:34) ChristianVirtual

Example with SSH https://www.example-code.com/vbdotnet/ssh_remote_command.asp

Not sure how the PBX react on input; might better to skip the sending/write stuff and try to only read/receive data

(Dec 29 '16 at 08:37) ChristianVirtual
showing 5 of 6 show all

phone system is a phone or a pc server?

I think chilkat can only be used to make client soft, not server soft(ssh server).

link

answered Dec 28 '16 at 11:52

muggle222's gravatar image

muggle222
184

Would you happen to have any other suggestions for anything that might help?

Thanks!

Mike

(Dec 28 '16 at 14:51) Mike_Schock
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×107
×7
×3

Asked: Dec 27 '16 at 15:15

Seen: 863 times

Last updated: Dec 29 '16 at 08:37

powered by OSQA