<p></p>
<p>So I applied Victor's <code>route[TEST]</code> at the beginning of my config and added the usrloc entries.  The problem with branches could not be reproduced.  Instead of <code>drop</code> at the end of <code>route[TEST]</code>, I <code>revert_uri()</code> so I could continue with my <code>append_branch</code> portion.  Same result.  Here's the log (DEBUG=2).</p>
<pre><code>ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: Entering test route
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== $ru:sip:alice5@127.0.0.5:5085
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === $branch 0: uri:sip:alice4@127.0.0.4:5084, q:400
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === $branch 1: uri:sip:alice3@127.0.0.3:5083, q:300
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === $branch 2: uri:sip:alice2@127.0.0.2:5082, q:200
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === $branch 3: uri:sip:alice1@127.0.0.1:5081, q:100
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === $branch 4: uri:<null>, q:<null>
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== $ru:sip:alice5@127.0.0.5:5085
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== $ru:sip:alice4@127.0.0.4:5084
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== $ru:sip:alice3@127.0.0.3:5083
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== $ru:sip:alice2@127.0.0.2:5082
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== $ru:sip:alice1@127.0.0.1:5081
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: Starting append_branch() sequence
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === sip:1001@gateway1.carrierB.com;transport=tcp, 300
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === sip:1001@gateway2.carrierB.com;transport=tcp, 200
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === sip:1001@gateway3.carrierB.com;transport=tcp, 700
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === sip:1001@gateway4.carrierB.com;transport=tcp, 500
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: === sip:1001@gateway5.carrierB.com;transport=tcp, 600
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: Starting t_next_contacts
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== sip:alice@carrierB
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== sip:1001@gateway5.carrierB.com;transport=tcp
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== sip:1001@gateway4.carrierB.com;transport=tcp
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== sip:1001@gateway1.carrierB.com;transport=tcp
ERROR: sipp-ci1-20200827020223-1-21@172.19.1.21: ==== sip:1001@gateway2.carrierB.com;transport=tcp
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2449#issuecomment-681300206">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOETXPFFJF7N53HG33SCW6DVANCNFSM4QFF6F4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOBMK2ZFKVU3QSMKDDSCW6DVA5CNFSM4QFF6F42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFCN5B3Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2449#issuecomment-681300206",
"url": "https://github.com/kamailio/kamailio/issues/2449#issuecomment-681300206",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>