Hello dears,
I'm using kamailio devel version as an IMS (P-CSCF,S-CSCC,I-CSCF) with forking mode ,when more than one client registered with the same AOR and the servers received a call to that Aor All the clients ringing , after that one of the clients answer the call which will cause cancel message with reason call completed elsewhere . This cancel message affect on the running call which answered by one of the client and terminate it . So how to set up kamailio to allow registration only for one client per Aor or to prevent the affection of this cancel messages .
Thanks in advance & best regards
https://kamailio.org/docs/modules/5.1.x/modules/registrar.html#registrar.p.m...
On Fri, Sep 14, 2018 at 9:35 AM eyas barhouk eyas37@hotmail.com wrote:
Hello dears,
I'm using kamailio devel version as an IMS (P-CSCF,S-CSCC,I-CSCF) with forking mode ,when more than one client registered with the same AOR and the servers received a call to that Aor All the clients ringing , after that one of the clients answer the call which will cause cancel message with reason call completed elsewhere . This cancel message affect on the running call which answered by one of the client and terminate it . So how to set up kamailio to allow registration only for one client per Aor or to prevent the affection of this cancel messages .
Thanks in advance & best regards _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Dear thanks for your response I'm using kamilio ims_registrar-scscf module Instead of register module
So is the parameter max_contacts on thats module do the same ?? ________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Sergiu Pojoga pojogas@gmail.com Sent: Friday, September 14, 2018 4:44:24 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Allow registration only for one client per AOR
https://kamailio.org/docs/modules/5.1.x/modules/registrar.html#registrar.p.m...
On Fri, Sep 14, 2018 at 9:35 AM eyas barhouk <eyas37@hotmail.commailto:eyas37@hotmail.com> wrote: Hello dears,
I'm using kamailio devel version as an IMS (P-CSCF,S-CSCC,I-CSCF) with forking mode ,when more than one client registered with the same AOR and the servers received a call to that Aor All the clients ringing , after that one of the clients answer the call which will cause cancel message with reason call completed elsewhere . This cancel message affect on the running call which answered by one of the client and terminate it . So how to set up kamailio to allow registration only for one client per Aor or to prevent the affection of this cancel messages .
Thanks in advance & best regards _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Am Freitag, 14. September 2018, 16:03:33 CEST schrieb eyas barhouk:
Dear thanks for your response I'm using kamilio ims_registrar-scscf module Instead of register module
So is the parameter max_contacts on thats module do the same ??
Hello,
it seems it does. I am not an expert for this IMS modules. It seems that the storage for the registrar is also the ims_usrloc_scscf module. But maybe somebody which uses this modules can comment on that too.
This module unfortunately has no documentation, I will open a github issue for it. It seems that the parameter is named "maxcontact". There is another parameter "maxcontact_behaviour", set to 1 it will reject the contact, set to 2 it will replace the oldest.
Best regards,
Henning
Hi, Mybe it is better to add some policy in kamailio config file to do it. As you could see in kamailio.cfg, if (!impu_registered("location")) { xlog("L_ERR", "Not REGISTERED\n"); save("PRE_REG_SAR_REPLY","location"); exit; } else { isc_match_filter_reg("1","location"); save("REG_SAR_REPLY","location"); exit; } If the IMPU is registered or not, the save function is executed, You could add your favourite policy here, WIth Regards.Mojtaba On Sat, Sep 15, 2018 at 1:02 AM Henning Westerholt hw@kamailio.org wrote:
Am Freitag, 14. September 2018, 16:03:33 CEST schrieb eyas barhouk:
Dear thanks for your response I'm using kamilio ims_registrar-scscf module Instead of register module
So is the parameter max_contacts on thats module do the same ??
Hello,
it seems it does. I am not an expert for this IMS modules. It seems that the storage for the registrar is also the ims_usrloc_scscf module. But maybe somebody which uses this modules can comment on that too.
This module unfortunately has no documentation, I will open a github issue for it. It seems that the parameter is named "maxcontact". There is another parameter "maxcontact_behaviour", set to 1 it will reject the contact, set to 2 it will replace the oldest.
Best regards,
Henning
-- Henning Westerholt https://skalatan.de/blog/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Thanks dears for your kind response
But after testing the both ways (modifying the parameters and the configuration), I still have the same issue , the s-cscf generate a Cancel message with reason : call completed elsewhere after receiving the 200 ok message and then transmit it to the proxy wich affect on the RTPengine and terminate the call .
From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Mojtaba mespio@gmail.com Sent: Saturday, September 15, 2018 7:17:39 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Allow registration only for one client per AOR
Hi, Mybe it is better to add some policy in kamailio config file to do it. As you could see in kamailio.cfg, if (!impu_registered("location")) { xlog("L_ERR", "Not REGISTERED\n"); save("PRE_REG_SAR_REPLY","location"); exit; } else { isc_match_filter_reg("1","location"); save("REG_SAR_REPLY","location"); exit; } If the IMPU is registered or not, the save function is executed, You could add your favourite policy here, WIth Regards.Mojtaba On Sat, Sep 15, 2018 at 1:02 AM Henning Westerholt hw@kamailio.org wrote:
Am Freitag, 14. September 2018, 16:03:33 CEST schrieb eyas barhouk:
Dear thanks for your response I'm using kamilio ims_registrar-scscf module Instead of register module
So is the parameter max_contacts on thats module do the same ??
Hello,
it seems it does. I am not an expert for this IMS modules. It seems that the storage for the registrar is also the ims_usrloc_scscf module. But maybe somebody which uses this modules can comment on that too.
This module unfortunately has no documentation, I will open a github issue for it. It seems that the parameter is named "maxcontact". There is another parameter "maxcontact_behaviour", set to 1 it will reject the contact, set to 2 it will replace the oldest.
Best regards,
Henning
-- Henning Westerholt https://skalatan.de/blog/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- --Mojtaba Esfandiari.S
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users