<p>After applying tm patch, no error in second call to uac.replace_from:</p>
<p>First branch:</p>
<pre><code>Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} tm [t_fwd.c:379]: prepare_new_uac(): ++++++ calling cb TMCB_REQUEST_FWDED in BRANCH_ROUTE +++++
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} tm [t_hooks.c:258]: run_trans_callbacks_internal(): DBG: trans=0x7f5c4d1a82b0, callback type 16, id 0 entered
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} pv_headers [pv_headers.c:413]: pv_apply_headers(): xavp->name:headers.0 br_xname:headers.0 keys_count: 21
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} pv_headers [pv_headers.c:445]: pv_apply_headers(): replace_from[From]:  sip:4311002@spce.test
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} uac [uac.c:489]: replace_from_api(): dsp=(nil) (len=0) , uri=0x7ffd6238a180 (len=21)
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} uac [replace.c:361]: replace_uri(): uri to replace [sip:testuser1002@spce.test]
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} uac [replace.c:362]: replace_uri(): replacement uri is [sip:4311002@spce.test]
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[0]} uac [replace.c:506]: replace_uri(): encode is=<aVBYbwMxODMSLiN6KQM7LQplW2h4fiwKMBM-> len=36
</code></pre>
<p>Second branch:</p>
<pre><code>Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} tm [t_fwd.c:379]: prepare_new_uac(): ++++++ calling cb TMCB_REQUEST_FWDED in BRANCH_ROUTE +++++
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} tm [t_hooks.c:258]: run_trans_callbacks_internal(): DBG: trans=0x7f5c4d1a82b0, callback type 16, id 0 entered
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} pv_headers [pv_headers.c:413]: pv_apply_headers(): xavp->name:headers.1 br_xname:headers.1 keys_count: 21
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} pv_headers [pv_headers.c:445]: pv_apply_headers(): replace_from[From]:  sip:4311002@spce.test
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} uac [uac.c:489]: replace_from_api(): dsp=(nil) (len=0) , uri=0x7ffd6238a180 (len=21)
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} uac [replace.c:361]: replace_uri(): uri to replace [sip:testuser1002@spce.test]
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} uac [replace.c:362]: replace_uri(): replacement uri is [sip:4311002@spce.test]
Nov 21 07:52:42 spce proxy[3502]: DEBUG: {1 NGCP%invite_q_forking%///1-3785@127.126.0.1[1]} uac [replace.c:506]: replace_uri(): encode is=<aVBYbwMxODMSLiN6KQM7LQplW2h4fiwKMBM-> len=36
</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/2141?email_source=notifications&email_token=ABO7UZJJRCTHIHJNZRBWANLQUY3HXA5CNFSM4JP6EL52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZIP5A#issuecomment-556959732">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMCITOGJKADJAEHKF3QUY3HXANCNFSM4JP6EL5Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKMALCF4THTVEUDF2DQUY3HXA5CNFSM4JP6EL52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZIP5A.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/2141?email_source=notifications\u0026email_token=ABO7UZJJRCTHIHJNZRBWANLQUY3HXA5CNFSM4JP6EL52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZIP5A#issuecomment-556959732",
"url": "https://github.com/kamailio/kamailio/issues/2141?email_source=notifications\u0026email_token=ABO7UZJJRCTHIHJNZRBWANLQUY3HXA5CNFSM4JP6EL52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZIP5A#issuecomment-556959732",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>