Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.29 KB | None | 0 0
  1. requestParam = '{"Content-Length": "307", "From": "\"OOO\"<sip:ryabikova96-multi01-01@irk.voice.dsi.ru>;tag=1c1701047349", "timestamp": "1448330589.72", "Require": "timer", "Session-Expires": "900;refresher=uas", "To": "<sip:952334@as.voice.dsi.ru;user=phone>;tag=588886797-1448330582370", "Contact": "<sip:172.30.252.1:5060>", "Allow": "ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY", "Call-ID": "17010468242311201518259@172.31.26.14", "short_message": "OK from bwks to 172.31.26.14:5060 (1)", "Via": "SIP/2.0/UDP 172.31.26.14;branch=z9hG4bKac1701122193", "Supported": "timer", "Accept": "multipart/mixed,application/media_control+xml,application/sdp", "content": ["v=0", "o=BroadWorks 198011963 1 IN IP4 172.30.253.225", "s=-", "c=IN IP4 172.30.253.225", "t=0 0", "m=audio 18212 RTP/AVP 0 101 100", "c=IN IP4 172.30.253.225", "a=rtpmap:0 PCMU/8000", "a=rtpmap:101 telephone-event/8000", "a=fmtp:101 0-15", "a=rtpmap:100 X-NSE/8000", "a=fmtp:100 192-194", "a=ptime:20", "a=bsoft: 1 image udptl t38", "", ""], "Remote-Party-ID": "<sip:952334@172.30.252.1;user=phone>;screen=yes;party=called;privacy=off;id-type=subscriber", "CSeq": "2 INVITE", "Content-Type": "application/sdp"}'
  2. request = urllib2.Request('http://192.168.52.144:12201/gelf', requestParam)
  3. response = urllib2.urlopen(request)
  4. response.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement