[SR-Users] KAMAILIO not updating Registration status to DB
Gonzalo Gasca
gascagonzalo at gmail.com
Thu Oct 9 08:46:57 CEST 2014
Hi Varghese,
When you mentioned some of the endpoint registrations are not updated
to Db, which Db type and command are you using to verify this?
Do you mean new registrations are not updated into Db and info stays in cache?
I see you are using mode 1, check if "timer_interval" param makes a difference.
In one of my webrtc PoC I'm using a shared db in mode 3 to force Db
only write and I use 0x04 flag: save("location", "0x04") to allow only
1 record.
since I haven't implemented SIP replication across my Kamailio cluster.
This is what I get:
a) I register using webrtc client:
In both Servers I get:
#kamctl ul show gogasca
Contact:: <sips:gogasca at df7jal23ls0d.invalid;rtcweb-breaker=no;transport=wss>;q=;expires=202;flags=0x0;cflags=0x0;state=1;socket=<NUL>;methods=0xFFFFFFFF;user_agent=<Llamato
client>;reg-id=0
mysql> use kamailiodb;
mysql>select username,contact,socket,expires from location;
+----------+-------------------------------------------------------------------+-----------------------+---------------------+
| username | contact
| socket | expires |
+----------+-------------------------------------------------------------------+-----------------------+---------------------+
| gogasca | sips:gogasca at df7jal23ls0d.invalid;rtcweb-breaker=no;transport=wss
| tcp:172.31.27.85:5062 | 2014-10-09 06:32:56 |
+----------+-------------------------------------------------------------------+-----------------------+---------------------+
I unregister and in both servers I get:
root at ip-172-31-38-153:/etc/kamailio# kamctl ul show gogasca
404 AOR not found
Can you send us the output of what are you getting?
-Gonzalo
On Wed, Oct 8, 2014 at 10:01 AM, Varghese Paul <varghesepaul87 at gmail.com> wrote:
> Hi all,
>
> We are experiencing a strange problem in our Kamilio server. Some of the
> webrtc endpoint registrations are not updated to the Database and there is
> no issue with the registration. Once we flushed the registration for this
> endpoint then it is updating to the DB for the new Register Packet.
>
> Flushed the Registration for the endpont : kamctl ul rm <USERNAME>
>
> Kamalio Version: 4.1.2
>
> modparam("usrloc", "db_url", DBURL)
> modparam("usrloc", "db_mode", 1)
> modparam("usrloc", "nat_bflag", 3)
> modparam("usrloc", "use_domain", 1)
>
> Is there any other settings to avoid this issue ?
>
> Regards
>
> Varghese Paul
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
More information about the sr-users
mailing list