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

Design scenario #8

Open
smalls12 opened this issue May 19, 2020 · 10 comments
Open

Design scenario #8

smalls12 opened this issue May 19, 2020 · 10 comments

Comments

@smalls12
Copy link
Contributor

I've finished cross compiling everything for my raspberry pi and can run the sip and rtp servers respectively there.

I'm now trying to establish a working understanding of these components and what I can do with them.

I had a basic idea of a baby monitor in my head where the raspberry pi could make some sort of sip call to my x86 machine; further down the line this call could stream video and audio.

Do you have a starting point maybe for me?

I've also only been able to get the control server running, but don't know what it's doing.

@smalls12 smalls12 changed the title Design scneario Design scenario May 19, 2020
@tinpotnick
Copy link
Owner

tinpotnick commented May 19, 2020 via email

@smalls12
Copy link
Contributor Author

That all makes sense.

My first goal is to establish a connection from my rpi to my x86 machine.

Since the rpi is headless, I will probably just use a script to send the necessary HTTP commands to the local SIP server to call the x86 machine, and just play one of the sound files.

I can use the node client you made on the x86 side to receive the call.

I guess I am looking for the step by step commands my rpi would need to send to its local SIP server that would call the x86 SIP server.

@smalls12
Copy link
Contributor Author

I guess I'm looking for more info to get the following to work:

  1. Start SIP & RTP on rpi
  2. Start SIP & RTP on x86
  3. Start node client on x86 ( to receive a phone call )
  4. From rpi, call x86
  5. Accept call from rpi on x86
  6. Close call on x86

@smalls12 smalls12 reopened this May 19, 2020
@tinpotnick
Copy link
Owner

tinpotnick commented May 20, 2020 via email

@smalls12
Copy link
Contributor Author

Sorry for this, my ignorance on the system design.

I just want the rpi to call my x86 machine; ideally there would be a mic on the rpi and streaming voice to the x86 machine; however the rpi could just play an mp3 for now.

Based on what you've said, I will run all three components on x86.

What would the rpi need on its end to call the SIP server on my x86 machine?

@tinpotnick
Copy link
Owner

tinpotnick commented May 20, 2020 via email

@smalls12
Copy link
Contributor Author

Okay I installed a couple different soft phones on my x86 machine, asterisk and linphone, but I haven't figured out how to get them to connect into mediaswitch. It seems to try and bind to the same port as the mediaswitch SIP server, I assume they will launch their own SIP server by default.

The rpi would need to install similar software presumably and connect int the SIP server on the x86 machine?

@tinpotnick
Copy link
Owner

tinpotnick commented May 21, 2020 via email

@smalls12
Copy link
Contributor Author

Right going to take a step back here.
Going to run everything on x86 and just try and establish a call.

@smalls12
Copy link
Contributor Author

So what is this exactly ?

projectcontrol.directory( "bling.babblevoice.com", [ { "username": "1003",
"secret": "1123654789" } ] )

I'm not overly familiar with node and js so I'm trying to figure out a way to get this working with curl and python if possible.

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

2 participants