this post was submitted on 19 Nov 2023
1 points (100.0% liked)

VoIP

1 readers
1 users here now

Rules

founded 11 months ago
MODERATORS
 

I'm using the latest version of sip.js (0.21.2) in a nodejs app.  I have an external device that sends and accepts packets of G.711 ulaw encoded audio using RTSP.  I am able to instantiate my SIP client, and able to  call that SIP client and accept the call.  However, I'm floundering in what to do next in order to handle the RTP packets to and from the caller.  My intent is to act as a proxy between the caller and the external device shunting audio packet between the two.

I'm really struggling to figure out what to do next.  It feels like creating a custom MediadHandlerFactory is the way to go,  but beyond that I really don't have any good ideas about what to do there.

Would anyone out there be able to offer any sort of help or information as to how I should proceed?

Thanks in advance

top 3 comments
sorted by: hot top controversial new old
[–] ravenze@alien.top 1 points 10 months ago

This sounds like you lied in the interview to get the job, but reality has hit you. Sink or swim, good luck!

[–] TheRealNalaLockspur@alien.top 0 points 10 months ago (1 children)

I don't know where to begin with this... holy cow man.

When you googled everything.. how did you magically land on Sip.js needs to be on Node.js (Backend)?

[–] waffenwolf@alien.top 1 points 10 months ago

Node.js can host both frontend and backend JS.

You would have SIP.js on the front end while having authentication and database connections at the backend.