blob: 9a24ddfd0eb595c19c9e01521b31e6f355e4329f [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Torture message from RFC 4475
6# 3.1.1. Valid Messages
7# 3.1.1.4. Escaped Nulls in URIs
8complete_msg = \
9"""REGISTER sip:example.com SIP/2.0
10To: sip:null-%00-null@example.com
11From: sip:null-%00-null@example.com;tag=839923423
12Max-Forwards: 70
13Call-ID: escnull.39203ndfvkjdasfkq3w4otrq0adsfdfnavd
14CSeq: 14398234 REGISTER
15Via: SIP/2.0/UDP host5.example.com;rport;branch=z9hG4bKkdjuw
16Contact: <sip:%00@host5.example.com>
17Contact: <sip:%00%00@host5.example.com>
18L:0
19"""
20
21
22sendto_cfg = sip.SendtoCfg( "RFC 4475 3.1.1.4",
23 "--null-audio --auto-answer 200",
24 "", 200, complete_msg=complete_msg)
25