FreeSWITCH小白入门之SIP简单呼叫流程

fs_cli中运行sofia profile internal siptrace on

不经意间的才是 永恒的

recv1037 bytes from udp/[10.12.0.1]:21812 at 16:12:15.473637:

  ------------------------------------------------------------------------

   INVITE sip:1003@10.11.15.109 SIP/2.0

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-895ef25f292f2227-1---d8754z-;rport

   Max-Forwards: 70

   Contact:

   To:"1003"

   From:"1000";tag=6328494c

   Call-ID: YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 1 INVITE

   Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO

   Content-Type: application/sdp

   User-Agent: eyeBeam release 1100l stamp46320

   Content-Length: 513


   v=0

   o=- 6 2 IN IP4 10.12.0.1

   s=CounterPath eyeBeam 1.5

   c=IN IP4 10.12.0.1

   t=0 0

   m=audio 34446 RTP/AVP 107 100 106 6 0 105 818 3 5 101

   a=alt:1 2 : Q639Xk+6 /PwK5qgp 192.168.56.134446

   a=alt:2 1 : zSCySteA /UpeifMr 10.10.10.19834446

  a=fmtp:18 annexb=yes

   a=fmtp:101 0-15

   a=rtpmap:107 BV32/16000

   a=rtpmap:100 SPEEX/16000

   a=rtpmap:106 SPEEX-FEC/16000

   a=rtpmap:105 SPEEX-FEC/8000

   a=rtpmap:18 G729/8000

   a=rtpmap:101 telephone-event/8000

   a=sendrecv

  a=x-rtp-session-id:B2FE5135D21D4B998DA7175849C1ADDB

  ------------------------------------------------------------------------

send 876bytes to udp/[10.12.0.1]:21812 at 16:12:15.477459:

  ------------------------------------------------------------------------

   SIP/2.0 407 Proxy Authentication Required

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-895ef25f292f2227-1---d8754z-;rport=21812

   From:"1000";tag=6328494c

   To: "1003";tag=r1rjN376e2j1g

   Call-ID:YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 1 INVITE

   User-Agent:FreeSWITCH-mod_sofia/1.9.0+git~20180305T173609Z~dd0bb0e331~64bit

   Accept: application/sdp

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS,MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE

   Supported: timer, path, replaces

   Allow-Events: talk, hold, conference,presence, as-feature-event, dialog, line-seize, call-info, sla,include-session-description, presence.winfo, message-summary, refer

   Proxy-Authenticate: Digestrealm="10.11.15.109",nonce="8a02dafd-12b8-4a25-8c6c-d4b4bb9aeb81", algorithm=MD5,qop="auth"

   Content-Length: 0


  ------------------------------------------------------------------------


recv 319bytes from udp/[10.12.0.1]:21812 at 16:12:15.484340:

  ------------------------------------------------------------------------

   ACK sip:1003@10.11.15.109 SIP/2.0

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-895ef25f292f2227-1---d8754z-;rport

   To: "1003" ;tag=r1rjN376e2j1g

   From:"1000";tag=6328494c

   Call-ID:YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 1 ACK

   Content-Length: 0


  ------------------------------------------------------------------------

recv1297 bytes from udp/[10.12.0.1]:21812 at 16:12:15.487514:

  ------------------------------------------------------------------------

   INVITE sip:1003@10.11.15.109 SIP/2.0

   Via:SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-db3192348e49b101-1---d8754z-;rport

   Max-Forwards: 70

   Contact:

   To:"1003"

   From:"1000";tag=6328494c

   Call-ID: YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 2 INVITE

   Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO

   Content-Type: application/sdp

   Proxy-Authorization: Digestusername="1000",realm="10.11.15.109",nonce="8a02dafd-12b8-4a25-8c6c-d4b4bb9aeb81",uri="sip:1003@10.11.15.109",response="78044dd04e5d215690a5c0ade8a00eba",cnonce="546d7312504e6a2db4f004964ff708ec",nc=00000001,qop=auth,algorithm=MD5

   User-Agent: eyeBeam release 1100l stamp46320

   Content-Length: 513


   v=0

   o=- 6 2 IN IP4 10.12.0.1

   s=CounterPath eyeBeam 1.5

   c=IN IP4 10.12.0.1

   t=0 0

   m=audio 34446 RTP/AVP 107 100 106 6 0 105 818 3 5 101

   a=alt:1 2 : Q639Xk+6 /PwK5qgp 192.168.56.134446

   a=alt:2 1 : zSCySteA /UpeifMr 10.10.10.19834446

   a=fmtp:18 annexb=yes

   a=fmtp:101 0-15

   a=rtpmap:107 BV32/16000

   a=rtpmap:100 SPEEX/16000

   a=rtpmap:106 SPEEX-FEC/16000

   a=rtpmap:105 SPEEX-FEC/8000

   a=rtpmap:18 G729/8000

   a=rtpmap:101 telephone-event/8000

   a=sendrecv

  a=x-rtp-session-id:B2FE5135D21D4B998DA7175849C1ADDB

  ------------------------------------------------------------------------


send 372bytes to udp/[10.12.0.1]:21812 at 16:12:15.501172:

   ------------------------------------------------------------------------

   SIP/2.0 100 Trying

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-db3192348e49b101-1---d8754z-;rport=21812

   From:"1000";tag=6328494c

   To:"1003"

  Call-ID: YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 2 INVITE

   User-Agent:FreeSWITCH-mod_sofia/1.9.0+git~20180305T173609Z~dd0bb0e331~64bit

   Content-Length: 0


  ------------------------------------------------------------------------



send1238 bytes to udp/[10.12.0.1]:61264 at 16:12:15.518304:

  ------------------------------------------------------------------------

   INVITE sip:1003@10.12.0.1:61264;ob SIP/2.0

   Via: SIP/2.0/UDP10.11.15.109;rport;branch=z9hG4bKmgmr1Dvmctmec

   Route: ;ob

   Max-Forwards: 69

   From: "Extension 1000";tag=tKB4rS9D9KZ6Q

   To:

   Call-ID:6b502b65-9e14-1236-a5b1-000c29cac90f

   CSeq: 119955503 INVITE

   Contact:

   User-Agent:FreeSWITCH-mod_sofia/1.9.0+git~20180305T173609Z~dd0bb0e331~64bit

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS,MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE

   Supported: timer, path, replaces

   Allow-Events: talk, hold, conference,presence, as-feature-event, dialog, line-seize, call-info, sla,include-session-description, presence.winfo, message-summary, refer

   Content-Type: application/sdp

   Content-Disposition: session

   Content-Length: 244

   X-FS-Support: update_display,send_info

   Remote-Party-ID: "Extension 1000";party=calling;screen=yes;privacy=off


   v=0

   o=FreeSWITCH 1520551117 1520551118 IN IP410.11.15.109

   s=FreeSWITCH

   c=IN IP4 10.11.15.109

   t=0 0

   m=audio 32018 RTP/AVP 0 8 101

   a=rtpmap:0 PCMU/8000

   a=rtpmap:8 PCMA/8000

   a=rtpmap:101 telephone-event/8000

   a=fmtp:101 0-16

   a=ptime:20

  ------------------------------------------------------------------------


recv 303bytes from udp/[10.12.0.1]:61264 at 16:12:15.533261:

  ------------------------------------------------------------------------

   SIP/2.0 100 Trying

   Via: SIP/2.0/UDP10.11.15.109;rport=5060;received=10.11.15.109;branch=z9hG4bKmgmr1Dvmctmec

   Call-ID: 6b502b65-9e14-1236-a5b1-000c29cac90f

   From: "Extension 1000";tag=tKB4rS9D9KZ6Q

   To:

   CSeq: 119955503 INVITE

   Content-Length:  0


  ------------------------------------------------------------------------

recv 486bytes from udp/[10.12.0.1]:61264 at 16:12:15.533388:

  ------------------------------------------------------------------------

   SIP/2.0 180 Ringing

   Via: SIP/2.0/UDP10.11.15.109;rport=5060;received=10.11.15.109;branch=z9hG4bKmgmr1Dvmctmec

   Call-ID:6b502b65-9e14-1236-a5b1-000c29cac90f

   From: "Extension 1000";tag=tKB4rS9D9KZ6Q

   To:;tag=ac61b400ec784df9a25749fcc295ca9b

   CSeq: 119955503 INVITE

   Contact: "1003"

   Allow: PRACK, INVITE, ACK, BYE, CANCEL,UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

   Content-Length:  0


  ------------------------------------------------------------------------


send1162 bytes to udp/[10.12.0.1]:21812 at 16:12:15.544003:

  ------------------------------------------------------------------------

   SIP/2.0 183 Session Progress

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-db3192348e49b101-1---d8754z-;rport=21812

   From:"1000";tag=6328494c

   To: "1003";tag=SajBQyracB9Kc

   Call-ID:YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 2 INVITE

   Contact:

   User-Agent: FreeSWITCH-mod_sofia/1.9.0+git~20180305T173609Z~dd0bb0e331~64bit

   Accept: application/sdp

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS,MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE

   Supported: timer, path, replaces

   Allow-Events: talk, hold, conference,presence, as-feature-event, dialog, line-seize, call-info, sla,include-session-description, presence.winfo, message-summary, refer

   Content-Type: application/sdp

   Content-Disposition: session

   Content-Length: 220

   Remote-Party-ID: "1003";party=calling;privacy=off;screen=no


   v=0

   o=FreeSWITCH 1520563275 1520563276 IN IP410.11.15.109

   s=FreeSWITCH

   c=IN IP4 10.11.15.109

   t=0 0

   m=audio 19860 RTP/AVP 0 101

   a=rtpmap:0 PCMU/8000

   a=rtpmap:101 telephone-event/8000

   a=fmtp:101 0-16

   a=ptime:20

  ------------------------------------------------------------------------


recv 831bytes from udp/[10.12.0.1]:61264 at 16:12:22.604389:

  ------------------------------------------------------------------------

   SIP/2.0 200 OK

   Via: SIP/2.0/UDP10.11.15.109;rport=5060;received=10.11.15.109;branch=z9hG4bKmgmr1Dvmctmec

   Call-ID:6b502b65-9e14-1236-a5b1-000c29cac90f

   From: "Extension 1000";tag=tKB4rS9D9KZ6Q

   To:;tag=ac61b400ec784df9a25749fcc295ca9b

   CSeq: 119955503 INVITE

   Allow: PRACK, INVITE, ACK, BYE, CANCEL,UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS

   Contact: "1003"

   Supported: replaces, 100rel, timer,norefersub

   Content-Type: application/sdp

   Content-Length:   268


   v=0

   o=- 3729600731 3729600732 IN IP4 10.12.0.1

   s=pjmedia

   b=AS:84

   t=0 0

   a=X-nat:0

   m=audio 4000 RTP/AVP 0 101

   c=IN IP4 10.12.0.1

   b=TIAS:64000

   a=rtcp:4001 IN IP4 10.10.10.198

   a=sendrecv

   a=rtpmap:0 PCMU/8000

   a=rtpmap:101 telephone-event/8000

   a=fmtp:101 0-16

  ------------------------------------------------------------------------


send 395bytes to udp/[10.12.0.1]:61264 at 16:12:22.606100:

  ------------------------------------------------------------------------

   ACK sip:1003@10.12.0.1:61264;ob SIP/2.0

   Via: SIP/2.0/UDP10.11.15.109;rport;branch=z9hG4bKNSDH38cr92a1Q

   Max-Forwards: 70

   From: "Extension 1000";tag=tKB4rS9D9KZ6Q

   To:;tag=ac61b400ec784df9a25749fcc295ca9b

   Call-ID: 6b502b65-9e14-1236-a5b1-000c29cac90f

   CSeq: 119955503 ACK

   Contact:

   Content-Length: 0


  ------------------------------------------------------------------------



send1132 bytes to udp/[10.12.0.1]:21812 at 16:12:22.621564:

  ------------------------------------------------------------------------

   SIP/2.0 200 OK

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-db3192348e49b101-1---d8754z-;rport=21812

   From:"1000";tag=6328494c

   To: "1003";tag=SajBQyracB9Kc

   Call-ID:YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 2 INVITE

   Contact:

   User-Agent:FreeSWITCH-mod_sofia/1.9.0+git~20180305T173609Z~dd0bb0e331~64bit

   Allow:INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER,NOTIFY, PUBLISH, SUBSCRIBE

   Supported: timer, path, replaces

   Allow-Events: talk, hold, conference,presence, as-feature-event, dialog, line-seize, call-info, sla,include-session-description, presence.winfo, message-summary, refer

   Content-Type: application/sdp

   Content-Disposition: session

   Content-Length: 220

   Remote-Party-ID: "Outbound Call";party=calling;privacy=off;screen=no


   v=0

   o=FreeSWITCH 1520563275 1520563276 IN IP410.11.15.109

   s=FreeSWITCH

   c=IN IP4 10.11.15.109

   t=0 0

   m=audio 19860 RTP/AVP 0 101

   a=rtpmap:0 PCMU/8000

   a=rtpmap:101 telephone-event/8000

   a=fmtp:101 0-16

   a=ptime:20

  ------------------------------------------------------------------------


recv 699bytes from udp/[10.12.0.1]:21812 at 16:12:22.766016:

   ------------------------------------------------------------------------

   ACK sip:1003@10.11.15.109:5060;transport=udpSIP/2.0

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-720c7e68096aff6e-1---d8754z-;rport

   Max-Forwards: 70

   Contact:

   To:"1003";tag=SajBQyracB9Kc

   From:"1000";tag=6328494c

   Call-ID:YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 2 ACK

   Proxy-Authorization: Digestusername="1000",realm="10.11.15.109",nonce="8a02dafd-12b8-4a25-8c6c-d4b4bb9aeb81",uri="sip:1003@10.11.15.109",response="78044dd04e5d215690a5c0ade8a00eba",cnonce="546d7312504e6a2db4f004964ff708ec",nc=00000001,qop=auth,algorithm=MD5

   User-Agent: eyeBeam release 1100l stamp46320

   Content-Length: 0


  ------------------------------------------------------------------------


recv 758bytes from udp/[10.12.0.1]:21812 at 16:12:30.071778:

  ------------------------------------------------------------------------

   BYE sip:1003@10.11.15.109:5060;transport=udpSIP/2.0

   Via: SIP/2.0/UDP10.12.0.1:21812;branch=z9hG4bK-d8754z-636a735214314c08-1---d8754z-;rport

   Max-Forwards: 70

   Contact:

   To:"1003";tag=SajBQyracB9Kc

   From: "1000";tag=6328494c

   Call-ID:YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 3 BYE

   Proxy-Authorization: Digestusername="1000",realm="10.11.15.109",nonce="8a02dafd-12b8-4a25-8c6c-d4b4bb9aeb81",uri="sip:1003@10.11.15.109:5060;transport=udp",response="8a4d5ac8b9e6b4ea89c96c9e3b728e8f",cnonce="c453e851ac8e61a378b99bf0ee8a2a4a",nc=00000002,qop=auth,algorithm=MD5

   User-Agent: eyeBeam release 1100l stamp46320

   Reason: SIP;description="User HungUp"

   Content-Length: 0


   ------------------------------------------------------------------------


send 527bytes to udp/[10.12.0.1]:21812 at 16:12:30.082330:

  ------------------------------------------------------------------------

   SIP/2.0 200 OK

   Via: SIP/2.0/UDP 10.12.0.1:21812;branch=z9hG4bK-d8754z-636a735214314c08-1---d8754z-;rport=21812

   From:"1000";tag=6328494c

   To:"1003";tag=SajBQyracB9Kc

   Call-ID:YWRiYzdjN2JlYWU0M2U0OWZkZDVjNTYwMGU0ZTYxMDg.

   CSeq: 3 BYE

   User-Agent:FreeSWITCH-mod_sofia/1.9.0+git~20180305T173609Z~dd0bb0e331~64bit

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS,MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE

   Supported: timer, path, replaces

   Content-Length: 0


   ------------------------------------------------------------------------


send 613bytes to udp/[10.12.0.1]:61264 at 16:12:30.089721:

  ------------------------------------------------------------------------

   BYE sip:1003@10.12.0.1:61264;ob SIP/2.0

   Via: SIP/2.0/UDP10.11.15.109;rport;branch=z9hG4bKp26943XU6B1KK

   Max-Forwards: 70

   From: "Extension 1000";tag=tKB4rS9D9KZ6Q

   To:;tag=ac61b400ec784df9a25749fcc295ca9b

   Call-ID: 6b502b65-9e14-1236-a5b1-000c29cac90f

   CSeq: 119955504 BYE

   User-Agent:FreeSWITCH-mod_sofia/1.9.0+git~20180305T173609Z~dd0bb0e331~64bit

   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS,MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE

   Supported: timer, path, replaces

   Reason: SIP;description="User HungUp"

   Content-Length: 0


  ------------------------------------------------------------------------


recv 333bytes from udp/[10.12.0.1]:61264 at 16:12:30.101386:

   ------------------------------------------------------------------------

   SIP/2.0 200 OK

   Via: SIP/2.0/UDP10.11.15.109;rport=5060;received=10.11.15.109;branch=z9hG4bKp26943XU6B1KK

   Call-ID:6b502b65-9e14-1236-a5b1-000c29cac90f

   From: "Extension 1000";tag=tKB4rS9D9KZ6Q

   To:;tag=ac61b400ec784df9a25749fcc295ca9b

   CSeq: 119955504 BYE

   Content-Length:  0


`s��2/k�

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 211,639评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,277评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,221评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,474评论 1 283
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,570评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,816评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,957评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,718评论 0 266
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,176评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,511评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,646评论 1 340
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,322评论 4 330
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,934评论 3 313
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,755评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,987评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,358评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,514评论 2 348

推荐阅读更多精彩内容