Hi,

We noticed an issue with the way the Kamailio is handling certain messages being sent to them, specifically, the To header being relayed from Kamailio to the next hop is malformatted. 

Any assistance is greatly appreciated

INVITE received by Kamailio:

  Request: Invite
                        Request URI: sip:2053140346;isub=33343@72.31.12.137:5060;transport=udp
                               From: <sip:+13037819601@71.44.15.84;user=phone>;tag=gK00a85927
                                 To: <sip:+12053140346@72.31.12.137>;tag=SDnpoa601-1c711123926
                            Call-ID: SDnpoa601-f1bc387aa5a486c1dd943d1b53ae8e6a-8q7og02
                               CSeq: 860668 INVITE
                            Contact: <sip:+13037819601@107.14.122.29:5060>
                             SDP IP: 0.0.0.0
                           SDP Port: 43126

INVITE forwarded by Kamailio:

 Request: Invite
                        Request URI: sip:2053140346;isub=33343@72.31.12.137:5060;transport=udp
                               From: <sip:+13037819601@71.44.15.84;user=phone>;tag=gK00a85927
                                 To: <sip:+120531403Oh.lc".3/+0]1..31.12.137>;tag=SDnpoa601-1c711123926
                            Call-ID: SDnpoa601-f1bc387aa5a486c1dd943d1b53ae8e6a-8q7og02
                               CSeq: 860668 INVITE
                            Contact: <sip:+13037819601@107.14.122.29:5060>
                             SDP IP: 0.0.0.0
                           SDP Port: 43126



Another example in BYE:



BYE received by Kamailio:

To: "WIRELESS CALLER" <sip:+18131111111@71.44.13.84>;tag=gK0a788ca6


BYE forwarded by Kamailio:

To: "WIRELESS CALLER" <sip:+18131112222A.++.+,-94


Thanks.
AL