Hi all,
Does anybody know, when the xcap_client deletes a registered document from the database? Is it possible to deregister a document?
Are you sure, the documented get_elem API function is actually implemented?
All the best Christoph
Hello Christoph,
this is the API from the code:
typedef struct xcap_api { xcap_nodeSel_init_t int_node_sel; xcap_nodeSel_add_step_t add_step; xcap_nodeSel_add_terminal_t add_terminal; xcap_nodeSel_free_t free_node_sel; xcapGetNewDoc_t getNewDoc; register_xcapcb_t register_xcb; }xcap_api_t;
So the get_elem seems to be not implemented. About the other question, it seems to not call the delete API from the database layer either.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Valentin Christoph Sent: Saturday, October 3, 2020 2:36 PM To: sr-users@lists.kamailio.org Cc: Onic Roman Roman.Onic@kontron.com; Friedrich Peter Peter.Friedrich@kontron.com Subject: [SR-Users] xcap_client: storage of document in local DB
Hi all,
Does anybody know, when the xcap_client deletes a registered document from the database? Is it possible to deregister a document?
Are you sure, the documented get_elem API function is actually implemented?
All the best Christoph
Hello Henning,
Thank you. I will try to workaround these shortcomings.
If it turns out I need some new feature(s) from the xcap_client, then what would be the recommended proceeding?
Kr Christoph
-------- Ursprüngliche Nachricht -------- Von: Henning Westerholt hw@skalatan.de Datum: 03.10.20 15:04 (GMT+01:00) An: "Kamailio (SER) - Users Mailing List" sr-users@lists.kamailio.org Cc: Onic Roman Roman.Onic@kontron.com, Friedrich Peter Peter.Friedrich@kontron.com, Valentin Christoph Christoph.Valentin@kontron.com Betreff: RE: xcap_client: storage of document in local DB
Hello Christoph,
this is the API from the code:
typedef struct xcap_api { xcap_nodeSel_init_t int_node_sel; xcap_nodeSel_add_step_t add_step; xcap_nodeSel_add_terminal_t add_terminal; xcap_nodeSel_free_t free_node_sel; xcapGetNewDoc_t getNewDoc; register_xcapcb_t register_xcb; }xcap_api_t;
So the get_elem seems to be not implemented. About the other question, it seems to not call the delete API from the database layer either.
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F&data=02%7C01%7CChristoph.Valentin%40kontron.com%7Cd045fe66e66945896be108d8679cb556%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373270491253300&sdata=gjUlJGDd1Xqy0AosHLBMUhelhdVi2skTSlhSTpcxSw8%3D&reserved=0 Kamailio services – https://gilawa.comhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F&data=02%7C01%7CChristoph.Valentin%40kontron.com%7Cd045fe66e66945896be108d8679cb556%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373270491253300&sdata=M3vYzAJ14IRaVPylmGzUMfMenlIIKJ8KafLNii9F%2Bxw%3D&reserved=0
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Valentin Christoph Sent: Saturday, October 3, 2020 2:36 PM To: sr-users@lists.kamailio.org Cc: Onic Roman Roman.Onic@kontron.com; Friedrich Peter Peter.Friedrich@kontron.com Subject: [SR-Users] xcap_client: storage of document in local DB
Hi all,
Does anybody know, when the xcap_client deletes a registered document from the database? Is it possible to deregister a document?
Are you sure, the documented get_elem API function is actually implemented?
All the best Christoph
Hi Christoph,
I'd say with the usual process. Create a pull request to integrate your developed enhancements to the module. In case of questions or different implementation options ask/discuss before on sr-dev list.
If you do not want to develop it by yourself, you can create a feature request, or you can also approach one of the companies that offer Kamailio services.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.comhttps://gilawa.com/
From: Valentin Christoph Christoph.Valentin@kontron.com Sent: Saturday, October 3, 2020 5:41 PM To: Henning Westerholt hw@skalatan.de; Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Onic Roman Roman.Onic@kontron.com; Friedrich Peter Peter.Friedrich@kontron.com Subject: RE: xcap_client: storage of document in local DB
Hello Henning,
Thank you. I will try to workaround these shortcomings.
If it turns out I need some new feature(s) from the xcap_client, then what would be the recommended proceeding?
Kr Christoph
-------- Ursprüngliche Nachricht -------- Von: Henning Westerholt <hw@skalatan.demailto:hw@skalatan.de> Datum: 03.10.20 15:04 (GMT+01:00) An: "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Cc: Onic Roman <Roman.Onic@kontron.commailto:Roman.Onic@kontron.com>, Friedrich Peter <Peter.Friedrich@kontron.commailto:Peter.Friedrich@kontron.com>, Valentin Christoph <Christoph.Valentin@kontron.commailto:Christoph.Valentin@kontron.com> Betreff: RE: xcap_client: storage of document in local DB
Hello Christoph,
this is the API from the code:
typedef struct xcap_api { xcap_nodeSel_init_t int_node_sel; xcap_nodeSel_add_step_t add_step; xcap_nodeSel_add_terminal_t add_terminal; xcap_nodeSel_free_t free_node_sel; xcapGetNewDoc_t getNewDoc; register_xcapcb_t register_xcb; }xcap_api_t;
So the get_elem seems to be not implemented. About the other question, it seems to not call the delete API from the database layer either.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F&data=02%7C01%7CChristoph.Valentin%40kontron.com%7Cd045fe66e66945896be108d8679cb556%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373270491253300&sdata=gjUlJGDd1Xqy0AosHLBMUhelhdVi2skTSlhSTpcxSw8%3D&reserved=0 Kamailio services - https://gilawa.comhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F&data=02%7C01%7CChristoph.Valentin%40kontron.com%7Cd045fe66e66945896be108d8679cb556%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373270491253300&sdata=M3vYzAJ14IRaVPylmGzUMfMenlIIKJ8KafLNii9F%2Bxw%3D&reserved=0
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of Valentin Christoph Sent: Saturday, October 3, 2020 2:36 PM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Cc: Onic Roman <Roman.Onic@kontron.commailto:Roman.Onic@kontron.com>; Friedrich Peter <Peter.Friedrich@kontron.commailto:Peter.Friedrich@kontron.com> Subject: [SR-Users] xcap_client: storage of document in local DB
Hi all,
Does anybody know, when the xcap_client deletes a registered document from the database? Is it possible to deregister a document?
Are you sure, the documented get_elem API function is actually implemented?
All the best Christoph
Hello,
afaik, xcap_client only fetches the xcap documents from a remote xcap server via http/https, it doesn't do anything else. The fetched xcap document is used by presence modules for watchers management and persentity rules.
On the other hand, xcap_server does the management of xcap documents pushed by the clients, storing/deleting/updating them in database. You do not need xcap_client module if you use the integrated xcap server implemented in the xcap_server module, the presence modules bind directly to xcap_server internally.
Cheers, Daniel
On 03.10.20 14:36, Valentin Christoph wrote:
Hi all,
Does anybody know, when the xcap_client deletes a registered document from the database? Is it possible to deregister a document?
Are you sure, the documented get_elem API function is actually implemented?
All the best Christoph
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel,
Just for clarification. This case is about data from non-kamailio xcap server to be handled in a self-written Kamailio module (Railway specific functionality) during call setup, where we would appreciate the module-API services of the xcap_client module.
Currently discussing it internally, eventually we might implement get_elem method of xcap_client module (just sending GET request and forwarding the body of the response via the API to the Railway specific module).
KR
Von: Daniel-Constantin Mierla miconda@gmail.com Gesendet: Samstag, 3. Oktober 2020 19:45 An: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org; Valentin Christoph Christoph.Valentin@kontron.com Cc: Onic Roman Roman.Onic@kontron.com; Friedrich Peter Peter.Friedrich@kontron.com Betreff: Re: [SR-Users] xcap_client: storage of document in local DB
Hello,
afaik, xcap_client only fetches the xcap documents from a remote xcap server via http/https, it doesn't do anything else. The fetched xcap document is used by presence modules for watchers management and persentity rules.
On the other hand, xcap_server does the management of xcap documents pushed by the clients, storing/deleting/updating them in database. You do not need xcap_client module if you use the integrated xcap server implemented in the xcap_server module, the presence modules bind directly to xcap_server internally.
Cheers, Daniel
On 03.10.20 14:36, Valentin Christoph wrote: Hi all,
Does anybody know, when the xcap_client deletes a registered document from the database? Is it possible to deregister a document?
Are you sure, the documented get_elem API function is actually implemented?
All the best Christoph
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-usershttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users&data=02%7C01%7CChristoph.Valentin%40kontron.com%7C8d2c0af35a86456d631108d867c40517%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373439346926567&sdata=R0EYNsKxkYWHuYjHXRQbAWdVaJiRevdejvvU%2BPhj%2FTQ%3D&reserved=0
--
Daniel-Constantin Mierla -- www.asipto.comhttps://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.asipto.com%2F&data=02%7C01%7CChristoph.Valentin%40kontron.com%7C8d2c0af35a86456d631108d867c40517%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373439346936563&sdata=rNakAZEH%2BtKlJIi68PVM5rPx7y3hnTC2516YJjGcTR8%3D&reserved=0
www.twitter.com/micondahttps://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.twitter.com%2Fmiconda&data=02%7C01%7CChristoph.Valentin%40kontron.com%7C8d2c0af35a86456d631108d867c40517%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373439346936563&sdata=RqlaWxQnA0XNYqHe%2FvFQjCCOvRMIqxPuwjXW63Xi3S8%3D&reserved=0 -- www.linkedin.com/in/micondahttps://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fmiconda&data=02%7C01%7CChristoph.Valentin%40kontron.com%7C8d2c0af35a86456d631108d867c40517%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373439346936563&sdata=Sq3qtYFNuZ2HgyTGx71dASLzmqE8T3hxHN2RcWTAOYA%3D&reserved=0
Funding: https://www.paypal.me/dcmierlahttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.paypal.me%2Fdcmierla&data=02%7C01%7CChristoph.Valentin%40kontron.com%7C8d2c0af35a86456d631108d867c40517%7C8c9d3c973fd941c8a2b1646f3942daf1%7C0%7C0%7C637373439346946557&sdata=zhsjDWGF7qcgtr%2FmDtjMlgrtZFDoadCMF046quA2Rvk%3D&reserved=0