Project

General

Profile

Download (847 Bytes) Statistics
| Branch: | Tag: | Revision:
1
# SIP - Session Initiation Protocol - Internet telephony - RFC 3261, 3265, etc.
2
# Pattern attributes: good fast fast
3
# Protocol groups: voip ietf_proposed_standard
4
# Wiki: http://www.protocolinfo.org/wiki/SIP
5
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
6
#
7
# This pattern has been tested with the Ubiquity SIP user agent and has been
8
# confirmed by at least one other user.
9
# 
10
# Thanks to Ankit Desai for this pattern.  Updated by tehseen sagar.
11
#
12
# SIP typically uses port 5060.
13
#
14
# This pattern is based on SIP request format as per RFC 3261. I'm not
15
# sure about the version part. The RFC doesn't say anything about it, so
16
# I have allowed version ranging from 0.x to 2.x.
17

    
18
#Request-Line  =  Method SP Request-URI SP SIP-Version CRLF
19
sip
20
^(invite|register|cancel|message|subscribe|notify) sip[\x09-\x0d -~]*sip/[0-2]\.[0-9]
(107-107/146)