Main suspect is located in sip_parser.rb:
def sip_uri
Concat.new(Literal.new("sip:"),
Optional.new(userinfo),
hostport,
uri_parameters)
end
EDIT 08-10-2014
Currently it looks like modifying get_peer_info in the following way solves my issue, not yet sure how to resolve it in the context of ABNFSipParser class:
fromto_match = fromto_hdr.scan(/<(.)>(.)=(.*)/)
@peer_tag, @peer_uri = fromto_match[0][2], fromto_match[0][0]