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

VoIP

1 readers
1 users here now

Rules

founded 1 year 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

you are viewing a single comment's thread
view the rest of the comments
[–] TheRealNalaLockspur@alien.top 0 points 11 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 11 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.