Inquiry about rtpengine subscribe functionality
xf han via sr-users <[email protected]>
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <[email protected]> |
Hi, Team
I have reviewed the documentation at https://www.kamailio.org/docs/modules/6.1.x/modules/rtpengine.html
I have the following questions:
1. Which SRS (Session Recording Server) has been tested with rtpengine_subscribe?
2. Should the Content-Type be application/sdp or multipart/mixed?
```
onreply_route[1]
{
...
if (has_body("application/sdp")) {
rtpengine_answer();
rtpengine_subscribe_request("all siprec", "$avp(siprec_offer)",
"$avp(siprec_to_tag)", "siprec_streams");
xinfo("SIPREC participant $xavp(siprec_streams[0]=>tag) with label $xavp(siprec_streams[0]=>label[0])\n");
xinfo("SIPREC participant $xavp(siprec_streams[1]=>tag) with label $xavp(siprec_streams[0]=>label[0])\n");
#use the above steam information to build the siprec xml metadata, will just send sdp in this example
$dlg_var(orig_to_tag) = $tt;
$dlg_var(siprec_contact) = "sip:uac@" + $Ri;
$dlg_var(siprec_to_tag) = $avp(siprec_to_tag);
t_uac_send("INVITE","sip:siprec@siprec_server.example.com",
"siprec_server.example.com", "",
"To: <$tu>\r\n" +
"From: <$fu>\r\n" +
"Contact: <$dlg_var(siprec_contact)>\r\n" +
"Content-Type: application/sdp\r\n",
$avp(siprec_offer));
}
...
}
```
The documentation mentions application/sdp, but when I tested with OpenSIPS 3.4's siprec module, it used multipart/mixed.
https://github.com/drachtio/drachtio-siprec-recording-server/blob/main/test/scenarios/uac_siprec_pcap.xml#L37
This example also shows multipart/mixed.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!