////////////////////////////////////////////////////////////////////////////////
// Server: video call, H.264 and PCMU
//
// Counterpart of Call_video_client.
//
// It answers a call that has audio and video and sends its own video back,
// read from an MP4 file: pcap/video_h264.mp4 (video=true). The program sends
// the H.264 of the file as RTP packets, nothing is decoded or encoded for
// that. The client plays a pcap file instead, so one call tries both kinds
// of source. The video port in the SDP is [video_port]; the receiver the
// program starts on that port decodes the H.264 of the client (RFC 6184), and
// waitVideo holds the call until 30 pictures have been decoded. If they do not
// arrive within 15 seconds the call fails.
//
// To use another MP4 file, run test/mp4_info.sh on it: it prints the video
// lines of the SDP (profile-level-id and sprop-parameter-sets of that file).
//
// Messages with ;retrans are sent again over UDP until they are answered, and a copy
// of one that comes again is answered as before (RFC 3261; -t1, -t2).
//
// SIP Messages
//  <--- INVITE ;retrans (audio + video)
//  ---> 100 Trying
//  ---> 180 Ringing
//  ---> 200 OK ;retrans (audio + video)
//  <--- ACK
//  ---- play test.pcap (audio) and video_h264.mp4 (video)
//  ---- wait until 30 pictures are decoded
//  <--- BYE ;retrans
//  ---> 200 OK
////////////////////////////////////////////////////////////////////////////////

<----------;retrans
INVITE

---------->
SIP/2.0 100 Trying
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


---------->
SIP/2.0 180 Ringing
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


---------->;retrans
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
User-Agent: SIPInspector_v_[ver]
Content-Type: application/sdp
Content-Length: [len]

v=0
o=111 843670094 843670094 IN [IP_ver] [local_ip_sdp]
s=-
c=IN [IP_ver] [local_ip_sdp]
t=0 0
m=audio [media_port] RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
m=video [video_port] RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420028;packetization-mode=1
a=sendrecv

<----------
ACK

----------
cmd_PlayPcap=./pcap/test.pcap

----------
cmd_PlayPcap=./pcap/video_h264.mp4;video=true

----------
waitVideo=30

<----------;retrans
BYE

---------->
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
User-Agent: SIPInspector_v_[ver]
Content-Length: 0

