[sr-dev] [kamailio/kamailio] cannot parse IPv6 Via (Issue #2898)

Daniel-Constantin Mierla notifications at github.com
Mon Oct 25 14:57:31 CEST 2021


It works for me with Kamailio master branch injecting the OPTIONS to the network using protoshoot from the same source tree:

```
./misc/tools/protoshoot/protoshoot -f /tmp/options.sip
```

The debug messages are:

```
 1(10089) DEBUG: <core> [core/udp_server.c:494]: udp_rcv_loop(): received on udp socket: (103/100/377) [[OPTIONS sip:example.com:5080;transport=tcp SIP/2.0 0A Via: SIP/2.0/TCP [2a00:1370:8131:ffdf:4398:8903:f]]
 1(10089) DEBUG: <core> [core/parser/parse_fline.c:250]: parse_first_line(): first line type 1 (request) flags 1
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:677]: parse_msg(): SIP Request:
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:679]: parse_msg():  method:  <OPTIONS>
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:681]: parse_msg():  uri:     <sip:example.com:5080;transport=tcp>
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:683]: parse_msg():  version: <SIP/2.0>
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Via] type 1
 1(10089) DEBUG: <core> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 232, <branch> = <z9hG4bK0241.2e5db116000000000000000000000000.0>; state=15
 1(10089) DEBUG: <core> [core/parser/parse_via.c:2639]: parse_via(): end of header reached, state=5
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:555]: parse_headers(): Via found, flags=2
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:557]: parse_headers(): this is the first via
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [To] type 3
 1(10089) DEBUG: <core> [core/parser/parse_addr_spec.c:884]: parse_addr_spec(): end of header reached, state=10
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:173]: get_hdr_field(): <To> [37]; uri=[sip:example.com:5080;transport=tcp]
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:176]: get_hdr_field(): to body (37)[<sip:example.com:5080;transport=tcp>
], to tag (0)[]
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [From] type 4
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [CSeq] type 5
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:154]: get_hdr_field(): cseq <CSeq>: <10> <OPTIONS>
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Call-ID] type 6
 1(10089) DEBUG: <core> [core/receive.c:392]: receive_msg(): --- received sip message - request - call-id: [0d2146aa2a479f0d-2232 at 192.168.1.6] - cseq: [10 OPTIONS]
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Max-Forwards] type 8
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Content-Length] type 12
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:187]: get_hdr_field(): content_length=0
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:91]: get_hdr_field(): found end of header
```

Maybe it is something else in your config or another (custom) version.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2898#issuecomment-950897030
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211025/0e494e98/attachment-0001.htm>


More information about the sr-dev mailing list