Implementing custom mediaport for PJSUA2 (stdin/stdout)

B
bloodcarter
Fri, Dec 16, 2016 9:08 AM

Hi,

I want make an app that plays sound file from stdin to the SIP call stream.
And writes what the other party is saying to stdout.
As I understood from official API docs, I need to change media port to my
custom implementation in onStreamCreated().

But how do I implement it? There is only example for plain C (playsine.c)
and I failed to get it working with PJSUA2. Thanks in advance.

Vlad

Hi, I want make an app that plays sound file from stdin to the SIP call stream. And writes what the other party is saying to stdout. As I understood from official API docs, I need to change media port to my custom implementation in onStreamCreated(). But how do I implement it? There is only example for plain C (playsine.c) and I failed to get it working with PJSUA2. Thanks in advance. Vlad