Sip invite instance reference

Source: Internet
Author: User
Tags linphone

Practice. It is not enough to know some knowledge. You need to practice it first. Now we have learned about the SIP protocol. Here we will share the practice process of a netizen's sip invite. I hope it will be useful to everyone.

Request sent by linphone in sip invite (reguest)

 
 
  1. INVITE sip:to@192.168.105.14 SIP/2.0  
  2. Via: SIP/2.0/UDP 192.168.105.5:5060;rport;branch=z9hG4bK2195  
  3. From: <sip:from@192.168.105.5>;tag=29244  
  4. To: <sip:to@192.168.105.14>  
  5. Call-ID: 8103  
  6. CSeq: 20 INVITE  
  7. Contact: <sip:from@192.168.105.5:5060>  
  8. Content-Type: application/sdp  
  9. Max-Forwards: 70  
  10. User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)  
  11. Subject: Phone call  
  12. Content-Length:   315  
  13. v=0  
  14. o=from 123456 654321 IN IP4 192.168.105.5  
  15. s=A conversation  
  16. c=IN IP4 192.168.105.5  
  17. t=0 0  
  18. m=audio 7078 RTP/AVP 111 110 0 3 8 101  
  19. a=rtpmap:111 speex/16000/1  
  20. a=rtpmap:110 speex/8000/1  
  21. a=rtpmap:0 PCMU/8000/1  
  22. a=rtpmap:3 GSM/8000/1  
  23. a=rtpmap:8 PCMA/8000/1  
  24. a=rtpmap:101 telephone-event/8000  
  25. a=fmtp:101 0-11 

Response sent by linphone in SIP INVITE)

 
 
  1. SIP/2.0 100 Trying  
  2. Via: SIP/2.0/UDP 192.168.105.5:5060;rport=5060;branch=z9hG4bK2195  
  3. From: <sip:from@192.168.105.5>;tag=29244  
  4. To: <sip:to@192.168.105.14>  
  5. Call-ID: 8103  
  6. CSeq: 20 INVITE  
  7. User-Agent: eXosip/3.3.0  
  8. Content-Length: 0  
  9. -----------------------------------------------------------------------------  
  10. SIP/2.0 101 Dialog Establishement  
  11. Via: SIP/2.0/UDP 192.168.105.5:5060;rport=5060;branch=z9hG4bK2195  
  12. From: <sip:from@192.168.105.5>;tag=29244  
  13. To: <sip:to@192.168.105.14>;tag=286863750  
  14. Call-ID: 8103  
  15. CSeq: 20 INVITE  
  16. Contact: <sip:to@192.168.105.14:5060>  
  17. User-Agent: eXosip/3.3.0  
  18. Content-Length: 0  
  19. ------------------------------------------------------------------  
  20. SIP/2.0 180 Ringing  
  21. Via: SIP/2.0/UDP 192.168.105.5:5060;rport=5060;branch=z9hG4bK2195  
  22. From: <sip:from@192.168.105.5>;tag=29244  
  23. To: <sip:to@192.168.105.14>;tag=286863750  
  24. Call-ID: 8103  
  25. CSeq: 20 INVITE  
  26. Contact: <sip:to@192.168.105.14:5060>  
  27. User-Agent: eXosip/3.3.0  
  28. Content-Length: 0  
  29. ------------------------------------------------------------------------  
  30. SIP/2.0 200 OK  
  31. Via: SIP/2.0/UDP 192.168.105.5:5060;rport=5060;branch=z9hG4bK2195  
  32. From: <sip:from@192.168.105.5>;tag=29244  
  33. To: <sip:to@192.168.105.14>;tag=286863750  
  34. Call-ID: 8103  
  35. CSeq: 20 INVITE  
  36. Contact: <sip:to@192.168.105.14:5060>  
  37. User-Agent: eXosip/3.3.0  
  38. Content-Length: 0 

Request sent by linphone in sip invite (reguest)

 
 
  1. ACK sip:to@192.168.105.14:5060 SIP/2.0  
  2. Via: SIP/2.0/UDP 192.168.105.5:5060;rport;branch=z9hG4bK32434  
  3. From: <sip:from@192.168.105.5>;tag=29244  
  4. To: <sip:to@192.168.105.14>;tag=286863750  
  5. Call-ID: 8103  
  6. CSeq: 20 ACK  
  7. Contact: <sip:from@192.168.105.5:5060>  
  8. Max-Forwards: 70  
  9. User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)  
  10. Content-Length: 0  
  11. ------------------------------------------------------------------------  
  12. BYE sip:to@192.168.105.14:5060 SIP/2.0  
  13. Via: SIP/2.0/UDP 192.168.105.5:5060;rport;branch=z9hG4bK1384  
  14. From: <sip:from@192.168.105.5>;tag=29244  
  15. To: <sip:to@192.168.105.14>;tag=286863750  
  16. Call-ID: 8103  
  17. CSeq: 21 BYE  
  18. Contact: <sip:from@192.168.105.5:5060>  
  19. Max-Forwards: 70  
  20. User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)  
  21. Content-Length: 0 

Response sent by linphone in SIP INVITE)

 
 
  1. SIP/2.0 200 OK  
  2. Via: SIP/2.0/UDP 192.168.105.5:5060;rport=5060;branch=z9hG4bK1384  
  3. From: <sip:from@192.168.105.5>;tag=29244  
  4. To: <sip:to@192.168.105.14>;tag=286863750  
  5. Call-ID: 8103  
  6. CSeq: 21 BYE  
  7. User-Agent: eXosip/3.3.0  
  8. Content-Length: 0 

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.