That was a good resource....
Also, Im giving a sample code
#!/usr/bin/python
from scapy.all import *
client = "192.168.10.1"
server = "192.168.10.5"
client_port = 5061
server_port = 5060
#SIP Payload
sip = ("INVITE sip:105@" + server + " SIP/2.0\r\n"
"To: <sip:" + server + ":5060>\r\n"
"Via: SIP/2.0/UDP localhost:30000\r\n"
"From: \x22xtestsip\x22<sip:" + server + ":30000>\r\n"
"Call-ID:
f9844fbe7dec140ca36500a0c91e6bf5@localhost\r\n"
"CSeq: 1 INVITE\r\n"
"Max-Forwards: 70\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: -1\r\n\r\n")
pkt= Ether()/IP(src=client, dst=server)/TCP()/sip
wrpcap("sip_pkt.pcap",pkt)
send(sip)
Modify as per ur convenience...... I hope this gets you much clarity.
Cheers,
0xN41K