Asterisk recording implementation

Source: Internet
Author: User

Asterisk recording can use monitor and mixmonitor. The difference is that monitor records a single channel and mixmonitor records a dual channel,

 

Process: Specify the recording file name and format when you call monitor. Mount the file to the channel and call ast_read to read the RTP stream at the beginning of connection. If the protocol stack supports callback, call the READ function provided by the protocol stack, such as sip. sip_read function, sip_read internally calls RTP interface function, sip_rtp_read, sip_rtp_read also calls rtp engine function ast_rtp_read, ast_rtcp_read, receives frame data, the ast_rtp_read function calls the recvfrom UDP sockt function to read the UDP packet and parse the packet to the RTP structure of the channel.

Finally, the __ast_read function calls ast_writestream to write frame data to the recording file, and ends ..

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.