Update - problem solved.
It was bad data. I had a value of 1 in the dr_rules.routeid field which caused
do_routing to call route[1] which contained a t_relay statement.
This mistake was made after following the example for adding a new rule shown
in opensipsctl help:
dr addrule '10,20' '+1'
Hi, John!
The do_routing() function is not adding a branch so it must be added by
someone/something else.
What branch is first sent? The one to the gateway, or the one? Can you
provide a trace for such a call? If privacy is a concern, send it privately.
Best regards,
Răzvan Crainea
OpenSIPS