freeswitch-sip呼叫连接日志记录

本文介绍了如何在Linphone上注册SIP账户并进行呼叫,通过Freeswitch的日志记录分析呼叫过程。利用Wireshark抓包工具,设置正确的网卡捕获并应用过滤条件,观察到由于Freeswitch运行在本地虚拟机,呼叫数据包会经过两次网卡。通过Wireshark可以生成详细的呼叫流程图。
摘要由CSDN通过智能技术生成

首先在linphone端注册sip账户
在这里插入图片描述

呼叫
在这里插入图片描述

freeswitch地址为:192.168.1.81
linphone地址为:192.168.1.77

在串口执行命令:

sofia profile internal siptrace on   打开sip详细日志
sofia profile internal siptrace off   关闭sip详细日志

串口日志打印:

freeswitch@localhost.localdomain> recv 1973 bytes from udp/[192.168.1.77]:5060 at 14:52:16.123867:
------------------------------------------------------------------------
INVITE sip:3500@192.168.1.81 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.77:5060;branch=z9hG4bK.wSKuHL9EM;rport
From: "qiu" <sip:1001@192.168.1.81>;tag=kRv6Uyx0Q
To: sip:3500@192.168.1.81
CSeq: 20 INVITE
Call-ID: rG1pFJbu1u
Max-Forwards: 70
Supported: replaces, outbound
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
Content-Type: application/sdp
Content-Length: 1391
Contact: <sip:1001@192.168.1.77;transport=udp>;+sip.instance="<urn:uuid:b216a82c-aa81-42de-a869-1123230d11de>"
User-Agent: Linphone Desktop/4.1.1 (belle-sip/1.6.3)

v=0
o=1001 2274 3852 IN IP4 192.168.1.77
s=Talk
c=IN IP4 192.168.1.77
t=0 0
a=ice-pwd:2560d5018bb2d1a5680365e2
a=ice-ufrag:63258a5d
a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
m=audio 7078 RTP/AVPF 96 97 98 0 8 101 99 100
c=IN IP4 222.128.117.139
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:97 speex/16000
a=fmtp:97 vbr=on
a=rtpmap:98 speex/8000
a=fmtp:98 vbr=on
a=rtpmap:101 telephone-event/48000
a=rtpmap:99 telephone-event/16000
a=rtpmap:100 telephone-event/8000
a=candidate:1 1 UDP 2130706431 192.168.1.77 7078 typ host
a=candidate:1 2 UDP 2130706430 192.168.1.77 7079 typ host
a=candidate:2 1 UDP 1694498815 222.128.117.139 7078 typ srflx raddr 192.168.1.77 rport 7078
a=candidate:2 2 UDP 1694498814 222.128.117.139 7079 typ srflx raddr 192.168.1.77 rport 7079
a=rtcp-fb:* trr-int 5000
a=rtcp-fb:* ccm tmmbr
m=video 9078 RTP/AVPF 96
c=IN IP4 222.128.117.139
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=42801F
a=candidate:1 1 UDP 2130706431 192.168.1.77 9078 typ host
a=candidate:1 2 UDP 2130706430 192.168.1.77 9079 typ host
a=candidate:2 1 UDP 1694498815 222.128.117.139 9078 typ srflx raddr 192.168.1.77 rport 9078
a=candidate:2 2 UDP 1694498814 222.128.117.139 9079 typ srflx raddr 192.168.1.77 rport 9079
a=rtcp-fb:* trr-int 5000
a=rtcp-fb:* ccm tmmbr
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 ccm fir
2020-08-03 14:52:16.116858 [NOTICE] switch_channel.c:1118 New Channel sofia/internal/1001@192.168.1.81 [fe235419-844b-4bd1-9b92-1cadd4193173]
send 821 bytes to udp/[192.168.1.77]:5060 at 14:52:16.126083:
------------------------------------------------------------------------
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.1.77:5060;branch=z9hG4bK.wSKuHL9EM;rport=5060
From: "qiu" <sip:1001@192.168.1.81>;tag=kRv6Uyx0Q
To: <sip:3500@192.168.1.81>;tag=839ZUU39ZcNBe
Call-ID: rG1pFJbu1u
CSeq: 20 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.3-release+git~20200511T105455Z~129de34d84~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: Digest realm="192.168.1.81", nonce="3796e38d-689f-4482-aad6-c7c37fc184eb", algorithm=MD5, qop="auth"
Content-Length: 0

recv 367 bytes from udp/[192.168.1.77]:5060 at 14:52:16.144456:
------------------------------------------------------------------------
ACK sip:3500@192.168.1.81 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.77:5060;branch=z9hG4bK.wSKuHL9EM;rport
Call-ID: rG1pFJbu1u
From: "qiu" <sip:1001@192.168.1.81>;tag=kRv6Uyx0Q
To: <sip:3500@192.168.1.81>;tag=839ZUU39ZcNBe
Contact: <sip:1001@192.168.1.77;transport=udp>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值