Hi Bogdan!
I removed all xlog statements from the branch_route and now it works!
I guess you are right!
thanks
klaus
Bogdan-Andrei Iancu wrote:
Hi Klaus,
if I'm not wrong, this time the problem resides in the branch iterator
implementation (dset.c). It's a unique static iterator. What happens is
a nested usage of the iterator: first it is used to run build branches
and run the branch route; secondly, it's used from branch_route by xlog
to print all branches and destination set....so...you get a iteration
inside another iteration, but using same iterator.... :-/
probably that's the reason for the missing third branch route....please
re-try same scenario, but remove the "all branches and destination set "
xlog specifiers...let me know if it works....
regards,
bogdan
PS: if the iterator is the real cause, I will re-implemet it ;)
Klaus Darilion wrote:
Hi!
In the following scenario, a call is forked to 3 phones. 2 of them are
behind the same NAT (same publich IP, different port, one uses STUN,
one not).
I xlog all branches,dest-sets... in route[] and then in branch_route.
But the branch route is executed on 2 times, instead of three times
(the destination set shows that there are 3 destinations)
Although the destination set is changed in the second branch
processing. Is this the intended way?
regards
klaus
route[]:
request's first branch: $br=sip:10.10.0.50:15360
request's all branches: $bR=sip:10.10.0.50:15360,
sip:klaus@83.136.33.3:8718
request's destination set: $ds=Contact: sip:klaus@83.136.33.19:5060,
sip:10.10.0.50:15360, sip:klaus@83.136.33.3:8718
request's destination uri: $du=
request's uri: $ru=sip:klaus@83.136.33.19:5060
activating t_on_branch(1)
branch_route[1]: first branch processing
branch_route[1]: request's first branch: $br=sip:10.10.0.50:15360
branch_route[1]: request's all branches: $bR=sip:10.10.0.50:15360,
sip:klaus@83.136.33.3:8718
branch_route[1]: request's destination set: $ds=Contact:
sip:klaus@83.136.33.19:5060, sip:10.10.0.50:15360,
sip:klaus@83.136.33.3:8718
branch_route[1]: request's destination uri: $du=
branch_route[1]: request's uri: $ru=sip:klaus@83.136.33.19:5060
branch_route[1]: second branch processing
branch_route[1]: request's first branch: $br=sip:10.10.0.50:15360
branch_route[1]: request's all branches: $bR=sip:10.10.0.50:15360,
sip:klaus@83.136.33.3:8718
branch_route[1]: request's destination set: $ds=Contact:
sip:10.10.0.50:15360, sip:10.10.0.50:15360, sip:klaus@83.136.33.3:8718
branch_route[1]: request's destination uri: $du=sip:83.136.33.3:3003
branch_route[1]: request's uri: $ru=sip:10.10.0.50:15360
...no third branch procesing :-(
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users