Module: kamailio
Branch: master
Commit: da126ce96dbdadc4f3655825b358bf8357e3efd9
URL: https://github.com/kamailio/kamailio/commit/da126ce96dbdadc4f3655825b358bf8…
Author: Torrey Searle <torrey.searle(a)wavecrest.com>
Committer: tsearle <tsearle(a)gmail.com>
Date: 2025-07-08T09:57:34+02:00
rtpengine: fix method name rtpengine_subscribe_offer
---
Modified: src/modules/rtpengine/doc/rtpengine_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/da126ce96dbdadc4f3655825b358bf8…
Patch: https://github.com/kamailio/kamailio/commit/da126ce96dbdadc4f3655825b358bf8…
---
diff --git a/src/modules/rtpengine/doc/rtpengine_admin.xml b/src/modules/rtpengine/doc/rtpengine_admin.xml
index 6f1a07fea41..6d079f0bfaa 100644
--- a/src/modules/rtpengine/doc/rtpengine_admin.xml
+++ b/src/modules/rtpengine/doc/rtpengine_admin.xml
@@ -3252,9 +3252,9 @@ rtpengine_manage();
</programlisting>
</example>
</section>
- <section id="rtpengine.f.rtpengine_subscribe_request">
+ <section id="rtpengine.f.rtpengine_subscribe_offer">
<title>
- <function moreinfo="none">rtpengine_subscribe_request(flags,sdp_avp,to_tag_avp,stream_xavp[,via-branch])</function>
+ <function moreinfo="none">rtpengine_subscribe_offer(flags,sdp_avp,to_tag_avp,stream_xavp[,via-branch])</function>
</title>
<para>
Generates &sdp; body for forking the current &rtp; stream and stores it in the
@@ -3266,7 +3266,7 @@ rtpengine_manage();
</para>
<para>
The function will return true on success and false (-1) on various failures,
- like using rtpengine_subscribe_request() before an rtpengine session was established.
+ like using rtpengine_subscribe_offer() before an rtpengine session was established.
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
@@ -3365,7 +3365,7 @@ rtpengine_manage();
This function can be used from ANY_ROUTE.
</para>
<example>
- <title><function>rtpengine_off</function> usage</title>
+ <title><function>rtpengine_subscribe_offer</function> usage</title>
<programlisting format="linespecific">
route {
...
@@ -3383,7 +3383,7 @@ onreply_route[1]
...
if (has_body("application/sdp")) {
rtpengine_answer();
- rtpengine_subscribe_request("all siprec", "$avp(siprec_offer)",
+ rtpengine_subscribe_offer("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");
@@ -3460,7 +3460,7 @@ onreply_route[1] {
<itemizedlist>
<listitem><para>
<emphasis>to-tag=...</emphasis> - value of the to tag returned by
- <quote>rtpengine_subscribe_request</quote>
+ <quote>rtpengine_subscribe_offer</quote>
</para></listitem>
<listitem><para>
<emphasis>from-tag=...</emphasis> - value of the from tag of the original call.
@@ -3474,7 +3474,7 @@ onreply_route[1] {
<example>
<title><function>rtpengine_subscribe_answer</function> usage</title>
<para>
- See rtpengine_subscribe_request() function example above for example.
+ See rtpengine_subscribe_offer() function example above for example.
</para>
</example>
</section>
@@ -3505,7 +3505,7 @@ onreply_route[1] {
<itemizedlist>
<listitem><para>
<emphasis>to-tag=...</emphasis> - value of the to tag returned by
- <quote>rtpengine_subscribe_request</quote>
+ <quote>rtpengine_subscribe_offer</quote>
</para></listitem>
<listitem><para>
<emphasis>from-tag=...</emphasis> - value of the from tag of the original call.
Roni12q created an issue (kamailio/kamailio#4307)
hello
can you help me with my last project in my college i try to install kamailio but when i run pcscf i have many error. The point in my error is the kamailio can't find module
how the installation i make
mkdir -p /usr/local/src/
cd /usr/local/src/
git clone https://github.com/kamailio/kamailio kamailio-5.4
cd kamailio
git checkout -b 5.4 origin/5.4
i used kamailio 5.4 just like journal i found in google scholar (https://riu.ufam.edu.br/handle/prefix/6232) and they made it so i used it journal for my references, but the end is error.
maybe you can help me to my last project
that's mean a lot to me thank you
this the log
dragonroni@dragonroni:~$ sudo su
[sudo] password for dragonroni:
Sorry, try again.
[sudo] password for dragonroni:
root@dragonroni:/home/dragonroni# mkdir -p /var/run/kamailio_pcscfroot@dragonroni:/home/dragonroni# kamailio -f /etc/kamailio_pcscf/kamailio_pcscf.cfg -P /kamailio_pcscf.pid -DD -E -e
loading modules under config path: /usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/:/usr/lib/x86_64-linux-gnu/kamailio/modules/:/usr/local/lib64/kamailio/modules
0(44774) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <delete_delay> of type <2:int> not found in module <ims_registrar_pcscf>
0(44774) CRITICAL: [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 399, column 51: Can't set module parameter
0(44774) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <ipsec_preferred_ealg> of type <1:string> not found in module <ims_ipsec_pcscf>
0(44774) CRITICAL: [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 417, column 59: Can't set module parameter
0(44774) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <recv_mode> of type <2:int> not found in module <ims_qos>
0(44774) CRITICAL: [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 435, column 35: Can't set module parameter
0(44774) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <dialog_direction> of type <2:int> not found in module <ims_qos>
0(44774) CRITICAL: [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 436, column 42: Can't set module parameter
0(44774) ERROR: [core/cfg.y:3451]: yyparse(): cfg. parser: failed to find command ipsec_destroy_by_contact (params 4)
0(44774) CRITICAL: [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 935, column 129: unknown command, missing loadmodule?
0(44774) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
0(44774) ERROR: [core/cfg.y:3451]: yyparse(): cfg. parser: failed to find command ipsec_create (params 2)
0(44774) CRITICAL: [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/route/register.cfg, line 264, column 77: unknown command, missing loadmodule?
ERROR: bad config file (6 errors)
0(44774) WARNING: [core/mem/q_malloc.c:487]: qm_free(): WARNING: free(0) called from cdp_avp: cdp_avp_mod.c: cdp_avp_destroy(226)
0(44774) INFO: cdp [cdp_mod.c:255]: cdp_exit(): CDiameterPeer child stopping ...
0(44774) INFO: cdp [cdp_mod.c:257]: cdp_exit(): ... CDiameterPeer child stopped
0(44774) ERROR: ims_ipsec_pcscf [ipsec.c:567]: clean_sa(): Error sending delete SAs command via netlink socket: No data available
0(44774) WARNING: ims_ipsec_pcscf [cmd.c:998]: ipsec_cleanall(): Error cleaning IPSec Security associations during startup.
0(44774) ERROR: ims_ipsec_pcscf [ipsec.c:609]: clean_policy(): Error sending delete policies command via netlink socket: No data available
0(44774) WARNING: ims_ipsec_pcscf [cmd.c:1002]: ipsec_cleanall(): Error cleaning IPSec Policies during startup.
0(44774) ERROR: ims_ipsec_pcscf [ims_ipsec_pcscf_mod.c:309]: mod_destroy(): Error destroying spi generator
0(44774) ERROR: ims_ipsec_pcscf [ims_ipsec_pcscf_mod.c:313]: mod_destroy(): Error destroying port generator
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4307
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4307(a)github.com>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A user has added themself to the list of users assigned to this task.
FS#100 - Assignment operators don't work
User who did this - Alex Hermann (axlh)
http://sip-router.org/tracker/index.php?do=details&task_id=100
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
xadhoom created an issue (kamailio/kamailio#4252)
### Description
A kamailio cluster which replicates presentities and usrloc via dmq may incur into duplicated presentities and notifications depending on config.
The problematic setup, where each kamailio node has the following setup:
- presence enabled with dmq
- usrloc distributed with dmq
- pua_reginfo used to publish reginfo to self
Really is multiplicated by the numbers of nodes, so 4 nodes -> 4 times notifications and presentities.
### Troubleshooting
The problem arise because pua_reginfo hooks to usrloc and every time a "save()" is done a publish is sent, which is by design. Then the handled publish generates a presentity which is replicated via dmq from presence module.
Now, if also usrloc is replicated via DMQ, the handling of such message still trigger the hook, causing another publish with generates a different presentiy, since is new and the e-tag is different.
This causes subscribers to receive <number of nodes> notifications on every status change.
### Possible Solutions
The approach can be to optionally disable that hook (basically making pua_reginfo skipping publish) when handling a message via DMQ, so the usrloc replica is just saved.
In other modules, like pua_dialoginfo or pua_usrloc this can be already done, since publishing can be controlled from script.
### Additional Information
* **Kamailio Version**
```
6.0.1
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4252
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4252(a)github.com>