If we try to serialize branches after an async() call, it fails with:
```
core:serialize_branches: nothing to do - all same q!
```

We are able to list all branches from the config using the following snippet:
```
    $var(i) = 0;
    while ($(branch(uri)[$var(i)]) != null) {
        xlog("L_INFO","$$(branch(uri)[$var(i)])=[$(branch(uri)[$var(i)])]\n");
        $var(i) = $var(i) + 1;
    }
...
$(branch(uri)[0])=[sip:u...@my.domain1.com;q=0.96]
$(branch(uri)[1])=[sip:u...@my.domain2.com;q=0.97]
$(branch(uri)[2])=[sip:u...@my.domain3.com;q=0.98]
```

Now, inside serialize.c:serialize_branches(), if we add a debug probe after 
setting ruri and ruri_q we see:
```
LM_INFO("ruri=[%.*s] ruri_q=[%d]\n", ruri->len, ruri->s, ruri_q);
...
INFO:core:serialize_branches: ruri=[sip:u...@my.domain4.com;q=0.99] ruri_q=[-1]
```
The q value is present in ruri, but ruri_q is not set.
Same thing inside branches.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/835
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to