has anyone made a successful implementation of SIPREC in kamailio + rtpengine?
with very bleeding edge code (you need to build master yourself, not in any release)
The rtpengine methods "subscribe request" and "subscribe answer" have been exposed in kamailio.
Look at the code segments in for subscribe_request and unsubscribe_request https://kamailio.org/docs/modules/devel/modules/rtpengine.html#rtpengine.f.r...
basic idea: after the call is established use the use rtpengine_subscribe_request get the SDP needed to send to the siprec server
to get the sdp you need to send to the sip rec server, the last parameter of this you specify an xavp where you determine which stream labels are associated with which endpoint. This can be used to build the xml metadata for the siprec server.
send the request using t_uac_send
use the local event handler on the outbound invite to save the original dialog information into the new transaction, and arm a response handler to get the response from the sip rec server
on the local ack, save set the dialog to be for the orignal call so you can save all the routset information (route, contact, rui, csec) as variables in the original call dialog. This can be used so you can correctly build an in-dialog bye to the sip-rec server at the end of the call.
I hope this helps!
Regards, Torrey
On Thu, 19 Jun 2025 at 05:02, Guilherme via sr-users < sr-users@lists.kamailio.org> wrote:
has anyone made a successful implementation of SIPREC in kamailio + rtpengine? __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Thanks for the insight!
Honestly, I'm having a really hard time to get it done. everytime that I try to configure this function I'm getting a parse error. I've tried "rtpengine_subscribe_request" as document in both kamailio and rtpengine sipwise documentation, but I find it weird that in the kamailio/src/modules/rtpengine the rtpengine_subscribe_request is not being exported, but rather a rtpengine_subscribe_offer. How did you manage to get this working?
Hi my friend; You should use: rtpengine_subscribe_offer("replace-origin replace-session-connection");
That function is exported and available.
It’s used when you want to subscribe to RTP engine updates for a specific dialog branch. It’s commonly followed by logic to rtpengine_answer() or rtpengine_delete() once the dialog ends.
El 7 jul 2025, a las 18:04, Guilherme via sr-users sr-users@lists.kamailio.org escribió:
Thanks for the insight!
Honestly, I'm having a really hard time to get it done. everytime that I try to configure this function I'm getting a parse error. I've tried "rtpengine_subscribe_request" as document in both kamailio and rtpengine sipwise documentation, but I find it weird that in the kamailio/src/modules/rtpengine the rtpengine_subscribe_request is not being exported, but rather a rtpengine_subscribe_offer. How did you manage to get this working? __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
indeed, seems I've made a mistake in the documentation.
in kemi it is exposed as rtpengine_subscribe_request but in the kamailio.cfg it is exposed as rtpengine_subscribe_offer
I'll fix the documentation
Regards, Torrey
On Mon, 7 Jul 2025 at 20:48, ahmed via sr-users sr-users@lists.kamailio.org wrote:
Hi my friend; You should use: rtpengine_subscribe_offer("replace-origin replace-session-connection");
That function is exported and available.
- It’s used when you want to subscribe to RTP engine updates for a
specific dialog branch.
- It’s commonly followed by logic to rtpengine_answer() or
rtpengine_delete() once the dialog ends.
El 7 jul 2025, a las 18:04, Guilherme via sr-users < sr-users@lists.kamailio.org> escribió:
Thanks for the insight!
Honestly, I'm having a really hard time to get it done. everytime that I try to configure this function I'm getting a parse error. I've tried "rtpengine_subscribe_request" as document in both kamailio and rtpengine sipwise documentation, but I find it weird that in the kamailio/src/modules/rtpengine the rtpengine_subscribe_request is not being exported, but rather a rtpengine_subscribe_offer. How did you manage to get this working? __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
after talking with Daniel, we've decided to change the metion to rtpengine_subscribe_request to match the actual name of the command.
I'll revert my documentation fix, and instead change the kamailio.cfg method name
Regards, Torrey
On Tue, 8 Jul 2025 at 09:30, Torrey Searle tsearle@gmail.com wrote:
indeed, seems I've made a mistake in the documentation.
in kemi it is exposed as rtpengine_subscribe_request but in the kamailio.cfg it is exposed as rtpengine_subscribe_offer
I'll fix the documentation
Regards, Torrey
On Mon, 7 Jul 2025 at 20:48, ahmed via sr-users < sr-users@lists.kamailio.org> wrote:
Hi my friend; You should use: rtpengine_subscribe_offer("replace-origin replace-session-connection");
That function is exported and available.
- It’s used when you want to subscribe to RTP engine updates for a
specific dialog branch.
- It’s commonly followed by logic to rtpengine_answer() or
rtpengine_delete() once the dialog ends.
El 7 jul 2025, a las 18:04, Guilherme via sr-users < sr-users@lists.kamailio.org> escribió:
Thanks for the insight!
Honestly, I'm having a really hard time to get it done. everytime that I try to configure this function I'm getting a parse error. I've tried "rtpengine_subscribe_request" as document in both kamailio and rtpengine sipwise documentation, but I find it weird that in the kamailio/src/modules/rtpengine the rtpengine_subscribe_request is not being exported, but rather a rtpengine_subscribe_offer. How did you manage to get this working? __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Hi Torrey,
I'm sorry to be persistent in this, but I'm still having problems with the rtpengine_subscribe_offer usage. Although I know that this is not the proper way to use the function, I entered the following line to my kamailio.cfg file:
(...) rtpengine_subscribe_offer("all siprec", "siprec_offer", "siprec_to_tag", "siprec_streams");
"../../usr/local/etc/kamailio/kamailio.cfg" 1119L, 27677B 1118,1 Bot
When I run the kamailio -c command to test the compilation I get the following result:
/home/ubuntu# kamailio -c 0(148679) CRITICAL: <core> [core/cfg.y:4089]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1118, column 26: syntax error
From my understanding, it seems that the "rtpengine_subscribe_offer" is not being recognized. Can you explain me why? I'm very confused about the implementation of these functions.
PS: I'm using the latest version of Kamailio /home/ubuntu# kamailio -v version: kamailio 6.1.0-dev1 (x86_64/linux)
as far as I can tell, that should be accepted.
are you loading the rtpengine module? if so did it load successfully? (grep the startup output for rtpengine)
Torrey
On Tue, 8 Jul 2025 at 20:01, Guilherme via sr-users < sr-users@lists.kamailio.org> wrote:
Hi Torrey,
I'm sorry to be persistent in this, but I'm still having problems with the rtpengine_subscribe_offer usage. Although I know that this is not the proper way to use the function, I entered the following line to my kamailio.cfg file:
(...) rtpengine_subscribe_offer("all siprec", "siprec_offer", "siprec_to_tag", "siprec_streams");
"../../usr/local/etc/kamailio/kamailio.cfg" 1119L, 27677B
1118,1 Bot
When I run the kamailio -c command to test the compilation I get the following result:
/home/ubuntu# kamailio -c 0(148679) CRITICAL: <core> [core/cfg.y:4089]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1118, column 26: syntax error
From my understanding, it seems that the "rtpengine_subscribe_offer" is
not being recognized. Can you explain me why? I'm very confused about the implementation of these functions.
PS: I'm using the latest version of Kamailio /home/ubuntu# kamailio -v version: kamailio 6.1.0-dev1 (x86_64/linux) __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Looking at the docs there is no rtpengine_subscribe_offer() function for 6.1.x
Are you wanting rtpengine_offer() or rtpengine_subscribe_request()?
Regards,
Richard Robson
On 08/07/2025 18:40, Guilherme via sr-users wrote:
Hi Torrey,
I'm sorry to be persistent in this, but I'm still having problems with the rtpengine_subscribe_offer usage. Although I know that this is not the proper way to use the function, I entered the following line to my kamailio.cfg file:
(...) rtpengine_subscribe_offer("all siprec", "siprec_offer", "siprec_to_tag", "siprec_streams");
"../../usr/local/etc/kamailio/kamailio.cfg" 1119L, 27677B 1118,1 Bot
When I run the kamailio -c command to test the compilation I get the following result:
/home/ubuntu# kamailio -c 0(148679) CRITICAL: <core> [core/cfg.y:4089]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1118, column 26: syntax error
From my understanding, it seems that the "rtpengine_subscribe_offer" is not being recognized. Can you explain me why? I'm very confused about the implementation of these functions.
PS: I'm using the latest version of Kamailio /home/ubuntu# kamailio -v version: kamailio 6.1.0-dev1 (x86_64/linux) __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!