Could not resolve socket address for

Hello friends, I have a bug that does not stop from cli my asterisk 13.22.0:

ERROR[1442]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“100.64.32.44”, “49516branch=z9hG4bK-524287-1—247099d1bfec9e11”, …): Servname not supported for ai_socktype
[2018-08-13 00:14:39] WARNING[1442]: chan_sip.c:19017 check_via: Could not resolve socket address for ‘100.64.32.44:49516branch=z9hG4bK-524287-1—247099d1bfec9e11’
[2018-08-13 00:14:39] ERROR[1442]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“100.64.32.44”, “49516branch=z9hG4bK-524287-1—247099d1bfec9e11”, …): Servname not supported for ai_socktype
[2018-08-13 00:14:39] WARNING[1442]: chan_sip.c:19017 check_via: Could not resolve socket address for ‘100.64.32.44:49516branch=z9hG4bK-524287-1—247099d1bfec9e11’

any ideas whatsoever, I’m using DNS 8.8.8.8 and 8.8.4.4

thanks

This is not a valid port number. Get the peer to send valid SIP messages. It appears to have missed out at least a “;”.

This ip 100.64.32.44 appears to be an IP CGNAT and I can not even block iptables, I’m thinking it might be an attack attempt, is there any way to block this, since it is flooding my screen with this error!

You need to block the actual source IP address, not an address contained within the SIP protocol.

how to find out this real ip in asterisk? thanks

It will appear in the output from “sip set debug on”. It should also appear in the security log, if a possible attack is detected, but I think this is failing before then.