SIPREC support in PJSUA2 , PJSUA or PJSIP

NW
Norbert Weyrich
Wed, Jan 26, 2022 12:19 PM

Hi,

Is there support in PJSUA2, PJSUA or PJSIP for SIPREC as SRC (Session Recording Client) to initiate connections to SIP REC Server?

At least, it is necessary to change the SDP content, add a feature tag to the CONTACT haeder and add or change the REQUIRE header.

Thanks a lot.

Norbert

--

Norbert Weyrich Software Communication Systems
Tel. +49 4101 69699-78 :: Fax +49 4101 69699-18
n.weyrich@wenzel-elektronik.de
WENZEL Elektronik GmbH :: Gehrstücken 7 :: 25421 Pinneberg, Germany
www.wenzel-elektronik.de
Sitz und Registergericht: Pinneberg, HRB 9316 PI
USt-IdNr.: DE 812946778
Geschäftsführung: Dipl.-Ing. Thomas Zwick

Hi, Is there support in PJSUA2, PJSUA or PJSIP for SIPREC as SRC (Session Recording Client) to initiate connections to SIP REC Server? At least, it is necessary to change the SDP content, add a feature tag to the CONTACT haeder and add or change the REQUIRE header. Thanks a lot. Norbert -- Norbert Weyrich Software Communication Systems Tel. +49 4101 69699-78 :: Fax +49 4101 69699-18 n.weyrich@wenzel-elektronik.de WENZEL Elektronik GmbH :: Gehrstücken 7 :: 25421 Pinneberg, Germany www.wenzel-elektronik.de Sitz und Registergericht: Pinneberg, HRB 9316 PI USt-IdNr.: DE 812946778 Geschäftsführung: Dipl.-Ing. Thomas Zwick
AW
Andreas Wehrmann
Wed, Jan 26, 2022 8:00 PM

On 26.01.22 13:19, Norbert Weyrich wrote:

Hi,

Is there support in PJSUA2, PJSUA or PJSIP for SIPREC as SRC (Session
Recording Client) to initiate connections to SIP REC Server?

At least, it is necessary to change the SDP content, add a feature tag
to the CONTACT haeder and add or change the REQUIRE header.

Thanks a lot.

Norbert

Hey there,

there is no out of the box support, but you can implement it using
PJSUA, I did so myself.
You need to apply SDP media label and maybe the direction attribute
"sendonly" in the on_sdp_created()
callback and add the XML metadata when making requests,
you can use the msg_data param of pjsua_call_make_call() for this; see:

https://www.pjsip.org/docs/latest-2/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga8989dbf44d51e89934dac960097b7d2a

Also, you should add a Contact header parameter ("+sip.src" if I
remember correctly)
and you must add the "siprec" feature string to the "Require" header.

Don't forget to handle re-INVITEs from the SRS in case it requests
metadata snapshots.
That's roughly it, hope this helps somewhat.

All the best,
Andreas

On 26.01.22 13:19, Norbert Weyrich wrote: > Hi, > > Is there support in PJSUA2, PJSUA or PJSIP for SIPREC as SRC (Session > Recording Client) to initiate connections to SIP REC Server? > > At least, it is necessary to change the SDP content, add a feature tag > to the CONTACT haeder and add or change the REQUIRE header. > > Thanks a lot. > > Norbert Hey there, there is no out of the box support, but you can implement it using PJSUA, I did so myself. You need to apply SDP media label and maybe the direction attribute "sendonly" in the on_sdp_created() callback and add the XML metadata when making requests, you can use the msg_data param of pjsua_call_make_call() for this; see: https://www.pjsip.org/docs/latest-2/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga8989dbf44d51e89934dac960097b7d2a Also, you should add a Contact header parameter ("+sip.src" if I remember correctly) and you must add the "siprec" feature string to the "Require" header. Don't forget to handle re-INVITEs from the SRS in case it requests metadata snapshots. That's roughly it, hope this helps somewhat. All the best, Andreas