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
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to