[sr-dev] [kamailio] RLS : Full state NOTIFY should be produced on first subscription (#276)

foucse notifications at github.com
Fri Aug 7 16:05:33 CEST 2015


Well replacing this :

```C++
if (dbmode != RLS_DB_ONLY)
```

By this :
```C++
if(get_to(msg)->tag_value.s==NULL || get_to(msg)->tag_value.len==0)
```

Which is a detection of initial transaction if I'am understanding well (no to tag). There is such a detection upper in the code (line 610-611) :

```C++
	if(get_to(msg)->tag_value.s==NULL || get_to(msg)->tag_value.len==0)
	{ /* initial Subscribe */
```

But I was afraid that the test dbmode != RLS_DB_ONLY wasn't here for nothing (Maybe performance reasons ?)

I ran my test 10 times and everything seems OK for now.



---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/276#issuecomment-128709229
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150807/8c2e795d/attachment.html>


More information about the sr-dev mailing list