Apply port parsing workarounds  (empty port and duplicate port) to the IPv4 case as well and unify port parsing code.
Apply port parsing workarounds  (empty port and duplicate port) to the
IPv4 case as well and unify port parsing code.

sippy/b2bua,sippy/b2bua