[OpenSIPS-Devel] [opensips] serialize_branches doesn't work after async() call (#835)
Ovidiu Sas
notifications at github.com
Mon Mar 21 19:24:24 CET 2016
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:user at my.domain1.com;q=0.96]
$(branch(uri)[1])=[sip:user at my.domain2.com;q=0.97]
$(branch(uri)[2])=[sip:user at 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:user at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160321/0a81c80c/attachment.htm>
More information about the Devel
mailing list