美文网首页
FreeSWITCH小白入门之SIP简单呼叫流程

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

作者: FreeSWITCH研习社 | 来源:发表于2018-03-09 16:41 被阅读866次
    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�

    相关文章

      网友评论

          本文标题:FreeSWITCH小白入门之SIP简单呼叫流程

          本文链接:https://www.haomeiwen.com/subject/zwxmfftx.html