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?