Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-18 Thread Voip support
I figured this finally out and all works for me very well. In usrloc dbmode i set value of 3 (its saving immediately changes into DB). In request route for REGISTER method i set t_on_reply("MANAGE_REPLY_REGISTER" and for REGISTER with expires set to 0 i set t_on_reply("MANAGE_REPLY_UNREGISTER")

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-17 Thread Joel Serrano
Yes sir! Works perfectly! To give you a quick example: 1) Add in the appropriate place for the REGISTER request: t_on_reply("MANAGE_REG_REPLY"); 2) Create a new onreply route: # Manage registration incoming replies onreply_route[MANAGE_REG_REPLY] { if(status=~"2[0-9][0-9]") { if

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-17 Thread Ovidiu Sas
Did it work calling save() on the reply route? -ovidiu On Thu, Nov 14, 2019 at 6:20 PM Voip support wrote: > > I am using kamailio 5.3. > > Ovidiu Sas, i will try this tomorrow today is bit late. Maybe it could work. > > David Villasmil , i know i can use SQLOPS but i was thinking of easier

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-15 Thread Joel Serrano
rchandising – https://skalatan.de/merchandising > > > > *From:* sr-users *On Behalf Of *Voip > support > *Sent:* Thursday, November 14, 2019 9:36 PM > *To:* sr-users@lists.kamailio.org > *Subject:* [SR-Users] Saving REGISTER status in kamailio database while > REGSITER packets ar

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-15 Thread Henning Westerholt
https://skalatan.de/merchandising From: sr-users On Behalf Of Voip support Sent: Thursday, November 14, 2019 9:36 PM To: sr-users@lists.kamailio.org Subject: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded. I setup kamailio to forward REGISTER packets using disp

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-14 Thread Voip support
I am using kamailio 5.3. Ovidiu Sas, i will try this tomorrow today is bit late. Maybe it could work. David Villasmil , i know i can use SQLOPS but i was thinking of easier method of doing this. By successful REGISTER i mean save only REGISTER attempt that authenticated correctly at SIP server

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-14 Thread Ovidiu Sas
Try to use save() when you process the 200 ok reply for REGISTER in the reply route. Regards, Ovidiu Sas On Thu, Nov 14, 2019 at 3:40 PM Voip support wrote: > > I setup kamailio to forward REGISTER packets using dispatcher to two servers > main and backup. > > The routing logic is quite simple

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-14 Thread David Villasmil
you can change that link for whatever version you're using. Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Thu, Nov 14, 2019 at 10:28 PM David Villasmil < david.villasmil.w...@gmail.com> wrote: > Hello, > > Do you want to store them in terms of "active

Re: [SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-14 Thread David Villasmil
Hello, Do you want to store them in terms of "active registration"? or simply a list of registers, as in adding to a table? Adding to a table is simple enough, use https://kamailio.org/docs/modules/4.0.x/modules/sqlops.html Regards, David Villasmil email: david.villasmil.w...@gmail.com phone:

[SR-Users] Saving REGISTER status in kamailio database while REGSITER packets are forwarded.

2019-11-14 Thread Voip support
I setup kamailio to forward REGISTER packets using dispatcher to two servers main and backup. The routing logic is quite simple i use the dispatcher probing mechanism to detect if my main dispatcher set id (one server) is active or inactive once it detect a failure all packets are sent to