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

Joel Serrano joel at textplus.com
Fri Nov 15 21:47:51 CET 2019


Hello Tomasz,

In the past when I had to implement something similar, I found these to
guides very helpful:

https://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/

I believe your scenario is very similar as described in the second link,
and although it's written for opensips, you can use it perfectly well with
Kamailio (in fact, that's what I did).

Hope it helps!
Joel.

On Fri, Nov 15, 2019 at 11:30 AM Henning Westerholt <hw at skalatan.de> wrote:

> Hello,
>
>
>
> if you want to just forward a message to a second server, have a look to
> the “t_replicate” function in the tm module.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
> Kamailio Merchandising – https://skalatan.de/merchandising
>
>
>
> *From:* sr-users <sr-users-bounces at lists.kamailio.org> *On Behalf Of *Voip
> support
> *Sent:* Thursday, November 14, 2019 9:36 PM
> *To:* sr-users at 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 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 secondary SIP server to
> achieve High Availability.
>
>
>
> I am looking for module or a way to save into kamailio database client
> information such as IP address, register username (from FROM header),
> digest username (authorization username), call-id for
> successful registration.
>
> I tried to use registrar module but once i used function save("location")
> the client was registered on kamailio and packets was not forwarded to
> main/secondary SIP server (like dispatcher stopped working, the destination
> did not override).
>
> REGISTER is sent to SIP URI of kamailio.
>
>
>
> Please let me know if you have any idea how to make this data update in
> database (insert an entry on fresh successfull REGISTER, delete on expired
> or removed binding).
>
>
>
> Best regards,
> Tomasz
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191115/82171b7e/attachment.html>


More information about the sr-users mailing list