I have modified the command
and for my case, it will be like
ss -n 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
ss -o -n state syn-sent 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
For the second command, the output will be like
[root@bcf-e-0 ~]# ss -o -n state syn-sent 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
Netid Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp 0 1 100.85.64.198:48542 8.8.8.8:5060 timer:(on,9.980ms,4)
[root@test ~]# ss -o -n state syn-sent 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
Netid Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp 0 1 100.85.64.198:48542 8.8.8.8:5060 timer:(on,8.690ms,4)
[root@test ~]# ss -o -n state syn-sent 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
Netid Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp 0 1 100.85.64.198:48542 8.8.8.8:5060 timer:(on,7.230ms,4)
[root@test ~]# ss -o -n state syn-sent 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
Netid Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp 0 1 100.85.64.198:48542 8.8.8.8:5060 timer:(on,6.140ms,4)
[root@test ~]# ss -o -n state syn-sent 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
Netid Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp 0 1 100.85.64.198:48542 8.8.8.8:5060 timer:(on,5.050ms,4)
[root@test ~]# ss -o -n state syn-sent 'dport 5060 or dport 5061 or sport 5060 or sport 5061'
Netid Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp 0 1 100.85.64.198:48542 8.8.8.8:5060 timer:(on,3.860ms,4)