Activity for pcapsipdump

  • Hiep Pham Hong Hiep Pham Hong created ticket #25

    Trigger close state not working

  • Hiep Pham Hong Hiep Pham Hong posted a comment on ticket #24

    Hello, Can I ask how the close trigger is working? Because I tried trigger close to run another cmd, the debug log did not appear when the call ended

  • Michael Michael created ticket #24

    Filter on two numbers via RegEx

  • Antonio Antonio posted a comment on ticket #21

    solution was to delete old pcapsipdump reinstall(update)libpcap intall pcapsipdump from svn

  • Antonio Antonio posted a comment on ticket #21

    have the same error on Centos no RTP in pcapsipdump i am usign it pcapsipdump -i eth0 -d /tmp/siplog/ when i do tcpdump -i eth0 -n -s 0 udp port 5060 or udp portrange 10000-50000 -v -w dump.cap and then open it with wireshark i can see RTP

  • Daniel Greenwald Daniel Greenwald created ticket #12

    Far side is behind NAT, pcapsipdump doesn't capture media

  • Saad Munir Saad Munir posted a comment on ticket #32

    Did you find the solution? I ran into a similar problem on RHEL 8.

  • Florian Florian posted a comment on ticket #44

    @Aex Aey: Any Updates / Ideas here ??...

  • Florian Florian posted a comment on ticket #44

    Yes, exactly.

  • Aex Aey Aex Aey posted a comment on ticket #44

    If we take an example of: From: "Joe Random" <joe@example.com> ...would that be "Joe Random" that you want to match on?

  • Florian Florian created ticket #44

    Filter / Output "SIP Display Info" Field

  • Code Medic Code Medic created ticket #3

    New versioned release

  • Alex Rozhnovskiy Alex Rozhnovskiy modified a comment on ticket #23

    Fixed with #include <netinet/in.h>

  • Alex Rozhnovskiy Alex Rozhnovskiy modified a comment on ticket #23

    Fixed with #include <netinet/in.h>

  • Alex Rozhnovskiy Alex Rozhnovskiy posted a comment on ticket #35

    I'm having the same problem in FreeBSD 11.3-RELEASE #0 r349754 libpcap version 1.9.0

  • Aex Aey Aex Aey modified a comment on ticket #43

    Fixed with #include <netinet/in.h>

  • Alex Rozhnovskiy Alex Rozhnovskiy posted a comment on ticket #43

    Fixed with #include <netinet in.h=""></netinet>

  • Alex Rozhnovskiy Alex Rozhnovskiy posted a comment on ticket #23

    Fixed with #include <netinet in.h=""></netinet>

  • Alex Rozhnovskiy Alex Rozhnovskiy created ticket #43

    Compiling on FreeBSD 11.3

  • Alex Rozhnovskiy Alex Rozhnovskiy created ticket #23

    Compiling on FreeBSD

  • Leo Brown Leo Brown created ticket #42

    Segfault

  • Leo Brown Leo Brown created ticket #41

    Transparent Ethernet Bridging (Protocol 0x6558) Ignored

  • Mark Murawski Mark Murawski created ticket #40

    pcapsipdump does not dump all sip calls

  • Nerijus Nerijus created ticket #22

    Skipping lot of calls

  • david Villaume david Villaume posted a comment on ticket #2

    Hi Alex, Thanks a lot it works like a charm. Do you plan to add RTP capture for IPV6 ? tried to add it but failed. David

  • Aex Aey Aex Aey modified ticket #2

    ipv6 + vlan

  • Aex Aey Aex Aey posted a comment on ticket #2

    Should be fixed in [r157]. Can you give it a try?

  • Aex Aey Aex Aey committed [r157]

    add another encapsulation - 802.1Q-then-IPv6

  • david Villaume david Villaume created ticket #2

    ipv6 + vlan

  • Oliver Stange Oliver Stange posted a comment on ticket #13

    I found a solution to get working files. Tshark has a option to export PDUs. input from fritzbox | tshark -i - -w - | tshark -r - -U "OSI layer 4" -Y "sip or rtp or rtcp" -w capture.cap This works for me. Maybe you can add support for this "57 Unknown interface type (252)." so we can pipe from tshark into pcapsipdump :D

  • Oliver Stange Oliver Stange posted a comment on ticket #13

    Would be very nice if someone can fix this, i really need it for my work. I tried some tricks with tshark to filter sip/rtp/rtcp only traffic, because it cant filter (-f) from pipe stream. input from fritzbox | tshark -i - -Y "sip or rtp or rtcp" -x | text2pcap - capture.cap But the rtp packets are not visible as those. Maybe the same problem as with pcapsipdump.

  • Oliver Stange Oliver Stange posted a comment on ticket #13

    On IPv6 without ds lite i'm getting this: Can't get ip/port from SDP: v=0 o=user 8368762 8368762 IN IP6 2001:16b8:4100:2e90:9a9b:cbff:fe56:fc96 s=call c=IN IP6 2001:16b8:4100:2e90:9a9b:cbff:fe56:fc96 t=0 0 m=audio 7078 RTP/AVP 8 0 2 102 100 99 97 101 a=sendrecv a=rtpmap:2 G726-32/8000 a=rtpmap:102 G726-32/8000 a=rtpmap:100 G726-40/8000 a=rtpmap:99 G726-24/8000 a=rtpmap:97 iLBC/8000 a=fmtp:97 mode=30 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=rtcp:7079 a=ptime:20 v=0 o=user 8368762 8368762...

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    Ok some more is working. Seems IPv4 works without ds lite. But IPv6 is not working yet neither with or without ds lite. Here some captures:

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    Ok some more is working. Seems IPv4 works without ds lite. But IPv6 is not working yet neither with or without ds lite. Here some captures:

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    Ok some more is working. Seems IPv4 works fawlessly. But IPv6 is not working yet neither with or without ds lite. Here some captures:

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    Ok some more is working. But IPv6 is not working yet neither with or without ds lite. Here a capture of an outgoing call.

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    Ok some more is working. But IPv6 is not working yet neither with or without ds lite.

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    Youre a genius! All working now :) except ds-lite. ds lite still shows this Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet...

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    Youre a genius! All working now :) except ds-lite. ds lite still shows this Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet...

  • Oliver Stange Oliver Stange posted a comment on ticket #13

    Youre a genius! All working now :) except ds-lite and nice debugging function. ds lite still shows this Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566 Skipping udp packet 2001:16b8:4103:7a5e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:73:41566...

  • Oliver Stange Oliver Stange posted a comment on ticket #13

    Capture with ds lite still does not work, but with real dual stack it works now, but only on the pppoe interface without vlan (7). The pppoe interface with vlan gives me masses of this here: Can't parse Ethernet tags: 8100 0007 8864 1100 27c3 05d6 Can't parse Ethernet tags: 8100 0007 8864 1100 27c3 0036 Can't parse Ethernet tags: 8100 0007 8864 1100 27c3 05d6 Can't parse Ethernet tags: 8100 0007 8864 1100 27c3 05d6 Can't parse Ethernet tags: 8100 0007 8864 1100 27c3 05d6 Can't parse Ethernet tags:...

  • Aex Aey Aex Aey posted a comment on ticket #13

    First one (8100 0007 8864 1100 27c3 05d6) appears to be PPPoE inside an 802.1Q VLAN. I've added this in [r155] (untested, I don't have any pcaps with such traffic) On the LAN: - Ethernet tag 86dd is IPv6 - added in [r156] - Ethernet tag 88e1 homeplug (ethernet over powerline) protocol: https://en.avm.de/service/fritzbox/fritzbox-7360/knowledge-base/publication/show/249_Firewall-reports-attacks-on-TCP-port-80-or-14013-or-unsolicited-packets-of-type-0x88e1/ - Ethernet tag 8912 - can't figure this one...

  • Aex Aey Aex Aey committed [r156]

    support 0x86dd as IPv6 EtherType

  • Aex Aey Aex Aey committed [r155]

    support PPPoE-in-802.1Q

  • Aex Aey Aex Aey posted a comment on ticket #13

    Yes, of course. thank you for attaching. I've integrated your fix as [r152] With a fresh svn checkout, you should see SIP working on both native IPv6 and IPv4-tunneled-in-IPv6 (as is customary to do in DS-lite). However, RTP will likely still be missing (if SDP is not in the first fragment, like it is in the attached pcap). To make that work, we need teach pcapsipdump to do full segment reassembly. I'll add this on to-do list.

  • Oliver Stange Oliver Stange posted a comment on ticket #13

    Did you test it against the cap file? Still does not work or do i need to add my fix after fresh svn checkout? To verify that i have no old stuff i did rm -fr pcapsipdump-code rm /usr/sbin/pcapsipdump

  • Aex Aey Aex Aey posted a comment on ticket #13

    [r154] should deal with DS-lite and some IPv6 fragmented packets, but latter is quite limited similarly to the IPv4 fragmenation handler - RTP will only be picked up if enough of SDP (m= and c=) are included in first fragment.

  • Aex Aey Aex Aey committed [r154]

    handle ipv4-in-ipv6 (a.k.a. dual-stack lite)

  • Aex Aey Aex Aey committed [r153]

    first attempt to handle ipv6 fragmentation

  • Aex Aey Aex Aey committed [r152]

    refactor ethernet header parsing and add pppoe support

  • Oliver Stange Oliver Stange modified a comment on ticket #13

    When the provider is forcing a dual stack lite tunnel, its nearly impossible for pcapsipdump to find some packets. Unknown SIP method:''! Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252 Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252 Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252 Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252...

  • Oliver Stange Oliver Stange posted a comment on ticket #13

    When the provider is forcing dual stack lite, its nearly impossible for pcapsipdump to find the right packets. Unknown SIP method:''! Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252 Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252 Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252 Skipping udp packet 2001:16b8:4102:c71e:3a10:d5ff:fe0c:93fc:7078->2001:8d8:104:0:212:227:124:6:23252...

  • Aex Aey Aex Aey posted a comment on ticket #13

    Hi Oliver, thanks for reporing this. Would you be able to attach a .pcap file with pppoe ipv4/ipv6 sip packets? Just one packet for each(ipv4/ipv6) would be enough.

  • Oliver Stange Oliver Stange created ticket #13

    fix for direct input from avm fritzbox

  • micmac1 micmac1 posted a comment on ticket #12

    Morning, cleaned up the patch for pcapsipdump_lib.h a bit. Regards, Seb

  • micmac1 micmac1 created ticket #12

    Using libc's strlcpy if available

  • Aex Aey Aex Aey modified ticket #39

    Endian issue, pcapsipdump not working on big endian

  • micmac1 micmac1 posted a comment on ticket #39

    Hello Aex, It's working fine now without patches. I compile-tested on x86_64, once a native compile and once a cross-combile for MIPS BE, endian was properly detected during both. Run-tested on MIPS BE. Thank you very much! Regards, Seb P.S.: I didn't see a way to close this ticket. Maybe you can close it when you get around to it.

  • micmac1 micmac1 posted a comment on ticket #39

    Sure, will try when I get home and ping you back. Thanks!

  • Aex Aey Aex Aey posted a comment on ticket #39

    Ok, I you are right. I was confused beween solaris-style defines (either _LITTLE_ENDIAN == 1 or _BIG_ENDIAN == 1; other one undefined) and BSD/Linux-style defines (either __BYTE_ORDER == __LITTLE_ENDIAN or __BYTE_ORDER == __BIG_ENDIAN; all three always defined), so trunk since [r139] was broken on BE systems. Should be fixed in [r151], can you give it a try?

  • Aex Aey Aex Aey committed [r151]

    refactor endianness detection (fix #39 2/2)

  • Aex Aey Aex Aey modified a comment on ticket #39

    Hello Aex, I crosscompile on x86_64 with OpenWrt buildroot. gcc is 7.4.0 and libc in this case is musl. Will try tonight. I think __LITTLE_ENDIAN and __BIG_ENDIAN can't be used for tests, because they seem to be defined both at the same time. I put an #error below if !defined (__LITTLE_ENDIAN) && !defined (__BIG_ENDIAN) and the build never reached this error. Also, pcapsipdump testing like this ("do this if both __LITTLE_ENDIAN and __BIG_ENDIAN aren't defined") suggests this is normal. I found this...

  • micmac1 micmac1 modified a comment on ticket #39

    Hello Aex, I crosscompile on x86_64 with OpenWrt buildroot. gcc is 7.4.0 and libc in this case is musl. Will try tonight. I think __LITTLE_ENDIAN and __BIG_ENDIAN can't be used for tests, because they seem to be defined both at the same time. I put an #error below if !defined (__LITTLE_ENDIAN) && !defined (__BIG_ENDIAN) and the build never reached this error. Also, pcapsipdump testing like this ("do this if both __LITTLE_ENDIAN and __BIG_ENDIAN aren't defined") suggests this is normal. I found this...

  • micmac1 micmac1 modified a comment on ticket #39

    Hello Aex, I crosscompile on x86_64 with OpenWrt buildroot. gcc is 7.4.0 and libc in this case is musl. Will try tonight. I think __LITTLE_ENDIAN and __BIG_ENDIAN can't be used for tests, because they seem to be defined both at the same time. I put an #error below if !defined (__LITTLE_ENDIAN) && !defined (__BIG_ENDIAN) and the build never reached this error. Also, pcapsipdump testing like this ("do this if both __LITTLE_ENDIAN and __BIG_ENDIAN aren't defined") suggests this is normal. I found this...

  • micmac1 micmac1 posted a comment on ticket #39

    Hello Aex, I crosscompile on x86_64 with OpenWrt buildroot. gcc is 7.4.0 and libc in this case is musl. Will try tonight. I think __LITTLE_ENDIAN and __BIG_ENDIAN can't be used for tests, because they seem to be defined both at the same time. I put an #error below if !defined (__LITTLE_ENDIAN) && !defined (__BIG_ENDIAN) and the build never reached this error. Also, pcapsipdump testing like this ("do this if both __LITTLE_ENDIAN and __BIG_ENDIAN aren't defined") suggests this is normal. I found this...

  • Aex Aey Aex Aey posted a comment on ticket #39

    Re: endinannes though - that is not what is going on here. __LITTLE_ENDIAN or __BIG_ENDIAN are used to construct packet header structs. On most systems, one of them is defined to indicate endianness (not both). If neither is defined, then, as a fallback __BYTE_ORDER is probed, and either __LITTLE_ENDIAN or __BIG_ENDIAN is defined locally. Do you complile this natively on BE host? Which gcc/libc? Can you try to compile lines 31..42 of pcapsipdump.h standalone to see if this is what compliler chokes...

  • Aex Aey Aex Aey modified ticket #39

    Endian issue, pcapsipdump not working on big endian

  • Aex Aey Aex Aey posted a comment on ticket #39

    time_t fix is in [r150], thanks!

  • Aex Aey Aex Aey committed [r150]

    Fix #39 (1/2)

  • micmac1 micmac1 posted a comment on ticket #39

    Here's the endian patch I used.

  • micmac1 micmac1 created ticket #39

    Endian issue, pcapsipdump not working on big endian

  • Aex Aey Aex Aey modified ticket #38

    Major bug -- Inverted logical expression

  • Aex Aey Aex Aey posted a comment on ticket #38

    Fixed in [r149], thanks for reporting! Note that while missing "!" before memcmp is indeed a bug, it was never a problem, being masked by another bug in the same line: confusion between sizeof (string constant length including final \0, i.e. memcmp does exact match) vs. strlen (string length excluding final \0, i.e. memcmp does prefix match). That is to say - if you don't see .pcap files being created, check other things too.

  • Aex Aey Aex Aey committed [r149]

    Fix #38

  • Andrea Andrea created ticket #38

    Major bug -- Inverted logical expression

  • Ivan Ivan posted a comment on ticket #37

    Hello. Thank you for explanations. Now I can split the file. Also, I was suprised that it is possible to set filetrs like TCP/UDP port. Thank you.

  • Aex Aey Aex Aey modified ticket #9

    Support q-in-q VLANs

  • Aex Aey Aex Aey posted a comment on ticket #9

    hm... looks like sf wouldn't allow me to set you as commit author :-/

  • Aex Aey Aex Aey modified ticket #9

    Support q-in-q VLANs

  • Aex Aey Aex Aey posted a comment on ticket #9

    Commited in [r148]. Thanks for contributing!

  • Aex Aey Aex Aey committed [r148]

    Allow q-in-q capture. This should really be dynamic number of tags - walk through all the 0x8100s until we get 0x0800

  • Aex Aey Aex Aey modified ticket #8

    BSD

  • Aex Aey Aex Aey modified a comment on ticket #37

    Thanks for reporting. According to /usr/include/pcap/dlt.h link type 113 is "Linux cooked sockets". This interface type (lo, tun, etc...) lack L2 header, and therefore vlan support. Vlan was, until now, part of default pcap filter expression. This should be fixed in [r147] (by dropping default pcap filter expression altogether). For earlier version, any explicit pcap expression compatible with linktype can be specified after all the other parameters, for example ip. This will override default pcap...

  • Aex Aey Aex Aey modified ticket #37

    Unable to split pcap file

  • Aex Aey Aex Aey posted a comment on ticket #37

    Thanks for reporting. According to /usr/include/pcap/dlt.h link type 113 is "Linux cooked sockets". This interface type (lo, tun, etc...) lack L2 header, and therefore vlan support. Vlan was, until now, part of default pcap filter expression. This should be fixed in [r147] (by dropping default pcap filter expression altogether). For earlier version, any explicit pcap expression compatible with linktype can be specified after all the other parameters, for example ip. This will overrive default pcap...

  • Aex Aey Aex Aey committed [r147]

    Drop the default pcap filter expression

  • Ivan Ivan created ticket #37

    Unable to split pcap file

  • Nathan Ward Nathan Ward created ticket #11

    Fix calltable cache segfaults

  • Nathan Ward Nathan Ward created ticket #10

    Make indenting consistent

  • Nathan Ward Nathan Ward created ticket #9

    Support q-in-q VLANs

  • Daniel Greenwald Daniel Greenwald created ticket #21

    Crashes since switching to AWS m5a instance type

  • Divyanshu Chauhan Divyanshu Chauhan created ticket #36

    pcapsipdump crashes while parsing packet greater than MTU

  • Daniel Greenwald Daniel Greenwald posted a comment on ticket #22

    Indeed, it works. Thanks for the speedy fix!

  • Aex Aey Aex Aey posted a comment on ticket #22

    Should be fixed in [r146], thanks for reporting!

  • Aex Aey Aex Aey committed [r146]

    Fix gettag()

  • Daniel Greenwald Daniel Greenwald posted a comment on ticket #22

    TCP support appears to be broken in r143 and forward. Only the first INVITE packet is captured. It works in r142. Thanks!

  • mn7474 mn7474 posted a comment on ticket #35

    Is there anything I can colelct for you that might help understand why yhis is happening?

1 >