0

I am trying to get the details when a VOIP phone rings. The hardware phone is connected to the same network.

With softphone I can get the device details as per the given example with the source.

IList<LivePacketDevice> allDevices = LivePacketDevice.AllLocalMachine;

and get the SIP header

private static void PacketHandler(Packet packet)
        {
            IpV4Datagram ip = packet.Ethernet.IpV4;
            UdpDatagram udp = ip.Udp;9
            Datagram datagram = null;

            if (ip.Protocol == IpV4Protocol.Udp)
            {
                datagram = udp.Payload;

                if (null != datagram)
                {
                    var decoded = datagram.Decode(System.Text.Encoding.UTF8);
                    //i can get the SIP header here
                }
            }
        }

How do I get the same with another IP within the same network?

Anup
  • 115
  • 5
  • 15

1 Answers1

0

Using switch with port mirroring function or hub (personally I prefer the latter). Many phones have also built-in capture function started/stopped from their webserver.

TMSZ
  • 695
  • 4
  • 5