Alexandre Lision | 8af73cb | 2013-12-10 14:11:20 -0500 | [diff] [blame] | 1 | # $Id$ |
| 2 | import inc_sip as sip |
| 3 | import 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. |
| 9 | complete_msg = \ |
| 10 | """SUBSCRIBE sip:localhost;transport=UDP SIP/2.0 |
| 11 | Call-ID: f20e8783e764cae325dba17be4b8fe19@10.0.2.15 |
| 12 | CSeq: 1 SUBSCRIBE |
| 13 | From: <sip:localhost>;tag=1710895 |
| 14 | To: <sip:localhost> |
| 15 | Via: SIP/2.0/UDP localhost;rport;branch=z9hG4bKd88a.18c427d2.0 |
| 16 | Max-Forwards: 69 |
| 17 | Event: message-summary |
| 18 | Contact: <sip:localhost> |
| 19 | Allow: NOTIFY, SUBSCRIBE |
| 20 | Content-Length: 0 |
| 21 | |
| 22 | """ |
| 23 | |
| 24 | |
| 25 | sendto_cfg = sip.SendtoCfg( "Incoming SUBSCRIBE with non presence", |
| 26 | "--null-audio", |
| 27 | "", 489, complete_msg=complete_msg) |
| 28 | |