Rtp sip configuration details

Source: Internet
Author: User

The SIP protocol and some of its applications are worth learning. In this regard, we will explain the configuration of rtp sip today. SIP (Session Initiation Protocol) is usually used for VOIP calls, call establishment, call negotiation, and call termination. it helps two terminals to recognize each other, but it does not process media. When A call is established, it directly transmits media through real-time transmission protocol (RTP) between telephone A and telephone B.

SIP and RTP

SIP is a signaling protocol at the application layer. it uses port 5060 (usually) for communication. SIP can be transmitted through UDP and TCP transport layer protocols. asterisk does not currently have TCP for transmitting SIP information.

RTP is used to transmit media (VOICE) between endpoints, and RTP in Asterisk uses a large number of unprivileged ports (10,000 to 20,000 by default)

Advantages of SIP: common accepted and flexible structure. Other VOIP protocols include H.323, IAX, and MGCP.

Rtp sip Configuration

In the/etc/asterisk/sip. conf file:

 
 
  1. [General]
  2. Context = default
  3. Srvlookup = yet; Establish a logic and DNS address method. You can achieve this address and obtain Many DNS benefits.
  4. [10000]
  5. Username = 10000; User Name
  6. Type = friend; user \ peer \ friend can be defined)
  7. Secret = 123456; Authentication Password
  8. Record_out = Always
  9. Record_in = Never; call recording
  10. Callgroup; call group. The default value is "1"
  11. Pickupgroup; Generation Group
  12. Disallow; encoding not allowed
  13. Allow; encoding allowed
  14. Port = 5060; port number
  15. Qualify = yes; monitor the latency between the Asterisk server and the phone (2,000 by default; yes can be replaced by milliseconds)
  16. Context = default; command location
  17. Host = dynamic; requires the number to be registered so that Asterisk can find the phone number. (static requires no registration)
  18. Dtmfmode = rfc2833;
  19. Mailbox= 10000 @ device
  20. Callerid = test1 <10000>
  21. Canreinvite = no;

User types are used to authenticate incoming calls; end types are used to call outgoing calls; and friend types are both used. (This is commonly used in sip. conf and iax. in conf), here we will present all the rtp sip configuration processes to everyone, and hope to help everyone.

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.