SIP INVITE实例参考

网络 网络管理
这里我们介绍的是SIP INVITE的相关内容,那么通过下面的一些介绍,我们可以参考一下一位网友分享的SIP INVITE过程。

实践出真知。了解了一些知识,光掌握这些是不够的,还需要动手来操练。那么前面我们也学习了SIP协议的有关内容,这里我们就来分享一个网友的SIP INVITE的操练过程吧。希望对大家能够有用。

SIP INVITE中linphone发出的请求(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 

SIP INVITE中linphone发到的回应(response)

  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 

SIP INVITE中linphone发出的请求(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 

SIP INVITE中linphone发到的回应(response)

  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 

 

责任编辑:佟健 来源: hi.baidu.com
相关推荐

2010-09-17 13:58:39

2010-09-17 09:51:37

SIP路由

2010-09-17 10:07:17

SIP协议SIP代理服务器

2010-09-17 10:50:35

sip请求

2010-09-17 14:13:20

SIP业务Erlang

2010-09-07 17:13:54

SIP协议详解

2010-09-09 14:32:46

sip协议端口

2010-09-17 11:05:05

RTP SIP配置

2023-08-30 09:27:37

INVITE消息处理流程

2010-09-17 10:00:38

SIP优点

2010-07-14 18:03:15

2010-09-08 09:20:27

SIP协议是什么

2010-09-08 16:25:39

SIP协议栈

2010-09-17 10:41:27

SIP协议视频监控

2010-09-16 16:37:09

SIP协议栈

2010-09-17 09:34:00

SIP路由机制

2010-09-09 14:06:30

SIP协议IMS

2021-08-06 10:47:30

SIP. 防火墙窃取服务

2010-09-08 09:32:22

SIP协议是什么

2010-09-07 16:37:53

SIP协议
点赞
收藏

51CTO技术栈公众号