How to search byte[] in packet.Ethernet.Ipv4.Udp ?

Apr 26, 2014 at 6:02 AM
I want to check if packet contains SIP methods.

For example: how to search Encoding.ASCII.GetBytes("INVITE") in the first bytes of the packet?
Coordinator
May 9, 2014 at 5:05 PM
Hi LIPA,

Have you tried looking at the UDP ports in the packet and seeing if it is (probably) a SIP packet?
Assuming it is SIP over UDP over IPv4 over Ethernet you can do
packet.Ethernet.IpV4.Udp.Payload to get the SIP data.
See Datagram and DataSegment methods to manipulate it.

I hope this helps,

Boaz.
May 9, 2014 at 5:06 PM

Thank you for your help

Lionel

Le 9 mai 2014 19:05, "Brickner" <[email removed]> a écrit :

From: Brickner

Hi LIPA,

Have you tried looking at the UDP ports in the packet and seeing if it is (probably) a SIP packet?
Assuming it is SIP over UDP over IPv4 over Ethernet you can do
packet.Ethernet.IpV4.Udp.Payload to get the SIP data.
See Datagram and DataSegment methods to manipulate it.

I hope this helps,

Boaz.

Read the full discussion online.

To add a post to this discussion, reply to this email ([email removed])

To start a new discussion for this project, email [email removed]

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com