On phones as on media-relay interfaces in gateway, a recording URL can be configured. When this URL is configured, for each call, the media of the call is sent via HTTP PUT (WebDav) to a webserver. The media data is sent as pcap file, containing unencrypted RTP streams along with a dummy SIP signaling, so that wireshark can directly decode the media stream. The coding of the media stream is as it was used for the conversiation.
The URL used for the PUT is what is configured as recording URL. To this URL a filename is added which is used to encode some basic information about the call, so that it can be matched to information received thru RCC or the CDR records
Filename format:
<guid>-<mac>-<serial>(-<reg-name>)
The file format is PCAP. A dummy SIP signaling is added, so that wireshark can find the RTP streams. For the RTP streams fixed port numbers are used, 16386 for the local side and 16388 for the remote side.
The media is provided with the same coder as it was sent on the actual conversation, but without any encryption. If the data shall be sent encrypted to the recorder, a HTTPS URL should be used.