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/718 |
| 6 | # RTC doesn't put rport in Via, and it is reported to have caused segfault. |
| 7 | # |
| 8 | complete_msg = \ |
| 9 | """MESSAGE sip:localhost SIP/2.0 |
| 10 | Via: SIP/2.0/UDP localhost:$LOCAL_PORT;branch=z9hG4bK$BRANCH |
| 11 | From: <sip:tester@localhost>;tag=as2858a32c |
| 12 | To: <sip:pjsua@localhost> |
| 13 | Call-ID: 123@localhost |
| 14 | CSeq: 1 MESSAGE |
| 15 | Max-Forwards: 70 |
| 16 | Content-Length: 11 |
| 17 | Content-Type: text/plain |
| 18 | |
| 19 | Hello world |
| 20 | """ |
| 21 | |
| 22 | |
| 23 | sendto_cfg = sip.SendtoCfg( "RTC no rport", "--null-audio --auto-answer 200", |
| 24 | "", 200, complete_msg=complete_msg) |
| 25 | |