| 1 |
import inc_sip as sip |
| 2 |
import inc_sdp as sdp |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
complete_msg = \ |
| 7 |
"""INVITE sip:localhost SIP/2.0 |
| 8 |
Via: SIP/2.0/UDP $LOCAL_IP:$LOCAL_PORT;branch=z9hG4bK74a60ee5 |
| 9 |
From: <sip:tester@localhost>;tag=as2858a32c |
| 10 |
To: <sip:pjsua@localhost> |
| 11 |
Contact: <sip:tester@$LOCAL_IP:$LOCAL_PORT> |
| 12 |
Call-ID: 123@localhost |
| 13 |
CSeq: 1 INVITE |
| 14 |
Max-Forwards: 70 |
| 15 |
Content-Type: application/sdp |
| 16 |
Content-Length: 285 |
| 17 |
|
| 18 |
v=0 |
| 19 |
o=root 4236 4236 IN IP4 192.168.1.11 |
| 20 |
s=session |
| 21 |
c=IN IP4 192.168.1.11 |
| 22 |
t=0 0 |
| 23 |
m=audio 14390 RTP/AVP 0 3 8 101 |
| 24 |
a=rtpmap:0 PCMU/8000 |
| 25 |
a=rtpmap:3 GSM/8000 |
| 26 |
a=rtpmap:8 PCMA/8000 |
| 27 |
a=rtpmap:101 telephone-event/8000 |
| 28 |
a=fmtp:101 0-16 |
| 29 |
a=silenceSupp:off - - - - |
| 30 |
a=ptime:20 |
| 31 |
a=sendrecv |
| 32 |
""" |
| 33 |
|
| 34 |
|
| 35 |
sendto_cfg = sip.SendtoCfg( "RTC no rport", "--null-audio --auto-answer 200", |
| 36 |
"", 200, complete_msg=complete_msg) |
| 37 |
|