blob: 70f5ab946091c4db398534aaf73dc65ce5c92822 [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Ticket http://trac.pjsip.org/repos/ticket/623, based on
6# http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-September/004709.html:
7#
8# Assertion when receiving SUBSCRIBE with non-presence Event.
9complete_msg = \
10"""SUBSCRIBE sip:localhost;transport=UDP SIP/2.0
11Call-ID: f20e8783e764cae325dba17be4b8fe19@10.0.2.15
12CSeq: 1 SUBSCRIBE
13From: <sip:localhost>;tag=1710895
14To: <sip:localhost>
15Via: SIP/2.0/UDP localhost;rport;branch=z9hG4bKd88a.18c427d2.0
16Max-Forwards: 69
17Event: message-summary
18Contact: <sip:localhost>
19Allow: NOTIFY, SUBSCRIBE
20Content-Length: 0
21
22"""
23
24
25sendto_cfg = sip.SendtoCfg( "Incoming SUBSCRIBE with non presence",
26 "--null-audio",
27 "", 489, complete_msg=complete_msg)
28