Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/999_asterisk_err.py

raw symbols SCIP
1 import inc_sip as sip
2 import inc_sdp as sdp
3
4 # http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-June/003426.html:
5 #
6 # Report in pjsip mailing list on 27/6/2008 that this message will
7 # cause pjsip to respond with 500 and then second request will cause
8 # segfault.
9 complete_msg = \
10 """INVITE sip:[email protected]:5060;transport=UDP SIP/2.0
11 Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK74a60ee5;rport
12 From: \"A user\" <sip:[email protected]>;tag=as2858a32c
13 To: <sip:[email protected]:5060;transport=UDP>
14 Contact: <sip:[email protected]>
15 Call-ID: [email protected]
16 CSeq: 102 INVITE
17 User-Agent: Asterisk PBX
18 Max-Forwards: 70
19 Date: Fri, 27 Jun 2008 08:46:47 GMT
20 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
21 Supported: replaces
22 Content-Type: application/sdp
23 Content-Length: 285
24
25 v=0
26 o=root 4236 4236 IN IP4 192.168.1.11
27 s=session
28 c=IN IP4 192.168.1.11
29 t=0 0
30 m=audio 14390 RTP/AVP 0 3 8 101
31 a=rtpmap:0 PCMU/8000
32 a=rtpmap:3 GSM/8000
33 a=rtpmap:8 PCMA/8000
34 a=rtpmap:101 telephone-event/8000
35 a=fmtp:101 0-16
36 a=silenceSupp:off - - - -
37 a=ptime:20
38 a=sendrecv
39 """
40
41
42 sendto_cfg = sip.SendtoCfg( "Asterisk 500", "--null-audio --auto-answer 200",
43 "", 200, complete_msg=complete_msg)
44