Ludovic,
Can you share your Kamailio config?
Below is mine regarding presence config:
modparam("presence", "db_url", DBURL) modparam("presence", "subs_db_mode", 3) # DB-Only scheme. modparam("presence", "db_table_lock_type", 0) modparam("presence", "notifier_processes", 0) # setting this parameter to 0 when subs_db_mode is 3 keeps the old behaviour (sending NOTIFY requests immediately). modparam("presence", "subs_htable_size", 15) modparam("presence", "delete_same_subs", 1) modparam("presence", "clean_period", 60) modparam("presence", "retrieve_order", 1) modparam("presence", "sip_uri_match", 1) modparam("presence", "pres_subs_mode", 0) modparam("presence", "timeout_rm_subs", 0) modparam("presence", "fetch_rows", 10000) modparam("presence", "pres_htable_size", 15) modparam("presence", "max_expires", 1800) modparam("presence", "send_fast_notify", 1) modparam("presence", "force_delete", 0) modparam("presence", "expires_offset", 10)
modparam("presence_dialoginfo", "force_single_dialog", 1)
Le mer. 5 mars 2025 à 11:28, Ludovic GRANGE via sr-users < sr-users@lists.kamailio.org> a écrit :
Hi,
Thanks for your feedback.
This is my conf:
softphone <----> Kamailio <------> Asterisk <----------> 2 DeskPhones ( user100 and user101)
- softphone sends Register to Kamailio which sends it to Asterisk.
Everythin is OK.
- softphone sends Subscribe to Kamailio to see user100 and
user101presence. (BLF keys on softphone)
- asterisk sends publishes to Kamailio when user100 and user101 try to
call together
Kamailio well receives the publish requests
the first time that call between user100 and user101, the BLF keys are
OK on softphone.
- for the following calls, for example, if user100 calls user101, only the
user101 state changes on BLF keys on softphone
- idem if user101 calls user100, only user100 key on softphone changes
state
- if we wait for expiration time of publish request, the first call is OK.
It seems that the db table "presentity" is not flushed or updated
Any help, please Regards Ludovic
Le 05/03/2025 à 10:47, Ihor Olkhovskyi via sr-users a écrit :
Ludovic,
Can you please describe a bit more on your scheme? It's really not clear to me what means 1st call, 2nd call and how the scheme os overall looking. And some logs/packets would be also helpful.
Le mar. 4 mars 2025 à 18:02, Ludovic GRANGE via sr-users < sr-users@lists.kamailio.org> a écrit :
Hi,
I'm having a problem managing the presence between Kamailio and Asterisk. I have configured Kamailio as a presence server. Asterisk sends presence information via publishing sip request. My softphone which uses Kamailio as a presence server and as a proxy has 2 BLFs configured. On a first call, the presence status is displayed on the 2 keys. But for the 2nd call, only the extension receiving the call has its status changed on the BLF. Via sngrep, the Publishing requests arrive on Kamailio but the DB is not updated because the e-tag does not match. If I wait until the end of the expiry period (60s for the test), the DB is flushed and the 1st call works again.
Could you please help me? Thank you
Translated with DeepL.com (free version)
Bien cordialement,
[image: Bande verticale Prosoluce]
Ludovic Grange Administrateur systèmes & réseaux
[image: Picto mail]ludovic.grange@prosoluce.fr ludovic.grange@prosoluce.fr
[image: Picto tél] 05 31 61 62 25 <+33531616225> [image: Picto web]www.prosoluce.fr https://www.prosoluce.fr
[image: Logo Prosoluce] __________________________________________________________ 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!
-- Best regards, Ihor (Igor)
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!