Error Console Asterisk 13 with PJSIP - client behind NAT IPV6

I have a client is trying access my Asterisk server and in his network has a modem/router with IPV6, when connect with Zoiper (softphone) in the asterisk server is loggin a lot of messages as bellow. When I tried to connect X-Lite (client softphone) return error SIP 408 and can’t connect.

This logs are repeting almost all the time in the Asterisk server when this client is connected with Zoiper.

[Dec 17 13:51:36] ERROR[9973]: pjproject:0 <?>:                sip_transport.c Error processing 903 bytes packet from UDP 201.75.170.21:33506 : PJSIP syntax error exception when parsing 'Via' header on line 2 col 35:
REGISTER sip:sip.solaristelecom.com;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 100.70.5.68:42373branch=z9hG4bK-524287-1---29fb55169505e8b5;rport
Max-Forwards: 70
Contact: <sip:12003011@xxx.233.xxx.33:33506;rinstance=2e3dfd90042e3666>;expires=0
To: <sip:12003011@sip.solaristelecom.com;transport=UDP>
From: <sip:12003011@sip.solaristelecom.com;transport=UDP>;tag=052f9d58
Call-ID: xblKZrIZc0J5n-iEWSeTJA..
CSeq: 15 REGISTER
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
User-Agent: Z 5.2.19 rv2.8.99
Authorization: Digest username="12003011",realm="asterisk",nonce="1545061852/59fb90afad718376b94fae1d646f679e",uri="sip:sip.solaristelecom.com;transport=UDP",response="13967c07d6fa58e43d04c9fc1bc2421d",cnonce="95a60c595ac56c7f9ad666c7eea0c381",nc=00000002,qop=auth,algorithm=MD5,opaque="51f040264bd45284"
Allow-Events: presence, kpml, talk
Content-Length: 0


-- end of packet.

The Via header is broken as it says.

Via: SIP/2.0/UDP 100.70.5.68:42373branch=z9hG4bK-524287-1---29fb55169505e8b5;rport

There should be a “;” between 42373 and branch.

Do you have any idea of what broke it ? may the router/modem could do it?

If it modified the SIP message, then yes.

I was supposing if I create a new transport layer in IPV6 may it solved, but I made it and the layer cause conflict with the principal layer in IPV4.

Transport layers set in IPV4 and IPV6 PJSIP

[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0
external_media_address=XXX.XXX.XXX.XXX
external_signaling_address=XXX.XXX.XXX.XXX
local_net=192.0.2.0/24
local_net=127.0.0.1/32
[simpletrans-ipv6]
type=transport
protocol=udp
bind=0.0.0.0
external_media_address=XXX.XXX.XXX.XXX
external_signaling_address=XXX.XXX.XXX.XXX
local_net=[2001:470:e20f:42::42]

Is it setup in IPV6 wrong?

That won’t work or alter things. If the message is still received with a broken Via header then PJSIP will drop it.

Oh, gosh.

Probably if I change the modem or add a router after the modem will solve, but I don’t want to take this solution.

This server it’s working well for others clients behind NAT too, only in this environment that not.