Streaming Frames capture and transmit in PJSUA2 (Python)

D
deps77@gmail.com
Mon, Oct 21, 2024 7:52 AM

Hi,

Is there a way to capture RTP stream for a call setup using PJSUA2 python.
\

  1. We would like to basically using PJSUA2 Python lib to establish a SIP call (which we are able to do) but handle media external to PJSUA2.  Ideally establish or point to an external RTP endpoint for sending and transmitting media and not use the conference bridge.  The SDP can be frozen for our side of the media / media negotiations since we would know pre-hand what is the supported media type encoding/format.
    \
  2. In case that is not possible, is it possible to connect an RTP / PCMU stream as the source and patch it as a sending port to the conference bridge. We were able to capture PCMU incoming packets but have not been able to use streaming audio as the source. The constructs require specifying either a mic or an audio file to be played out.

    Look forward to help or pointers on this from the community. 

    Thanks

    Deepak
Hi, Is there a way to capture RTP stream for a call setup using PJSUA2 python. \ \ 1) We would like to basically using PJSUA2 Python lib to establish a SIP call (which we are able to do) but handle media external to PJSUA2. Ideally establish or point to an external RTP endpoint for sending and transmitting media and not use the conference bridge. The SDP can be frozen for our side of the media / media negotiations since we would know pre-hand what is the supported media type encoding/format.\ \ 2) In case that is not possible, is it possible to connect an RTP / PCMU stream as the source and patch it as a sending port to the conference bridge. We were able to capture PCMU incoming packets but have not been able to use streaming audio as the source. The constructs require specifying either a mic or an audio file to be played out. \ \ Look forward to help or pointers on this from the community. \ \ Thanks\ \ Deepak