<p></p>
<p>updated and now hit another problem. again, comment out the <code>add_rport</code> function removes the err.</p>
<pre><code>11(37206) INFO: <core> [core/kemi.c:105]: sr_kemi_core_info(): ===== tm module triggered event: tm:local-request
11(37206) INFO: <core> [core/kemi.c:105]: sr_kemi_core_info(): ===== add local rport =====
11(37206) ERROR: <core> [core/parser/parse_hname2.c:235]: parse_sip_header_name(): invalid start of header name for [;received=172.18.0.4To: <sip:6077@xyt.xswitch.cn>
From: <sip:6077@xyt.xswitch.cn>;tag=313d8852a4ab4756667432d70505cb2e-432aedaf
CSeq: 10 REGISTER
Call-ID: 61936a7e322da704-37206@172.18.0.4
Max-Forwards: 70
Content-Length: 0
User-Agent: kamailio (5.5.0-dev4 (x86_64/linux))
Contact: <sip:a@172.16.131.200:9060>
Expires: 300

]
11(37206) ERROR: <core> [core/parser/msg_parser.c:98]: get_hdr_field(): bad header
11(37206) ERROR: <core> [core/parser/msg_parser.c:339]: parse_headers(): bad header field [;received=172.18.0.4To: <sip:6077@xyt.xswitch.cn>
From: <sip:6077@xyt.xswitch.cn>;tag=313d8852a4ab4]
11(37206) ERROR: tm [uac.c:175]: uac_refresh_hdr_shortcuts(): failed to parse headers in new message
11(37206) ERROR: tm [uac.c:579]: t_uac_prepare(): failed to refresh header shortcuts
11(37206) ERROR: uac [uac_reg.c:1163]: uac_reg_send(): failed to send request for [a]
</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/2639#issuecomment-779945796">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKC3WME7I4I4S3R22DS7KLG5ANCNFSM4XWIGQUA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNAQJLQ236FDDTZT4LS7KLG5A5CNFSM4XWIGQUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFZ6QORA.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/2639#issuecomment-779945796",
"url": "https://github.com/kamailio/kamailio/issues/2639#issuecomment-779945796",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>