VoIP: (06.07) Kích hoạt tính năng Debug cuộc gọi (SIP Message) trên FusionPBX v4.5.24 (FreeSwitch)

By , 0 View

Mục tiêu thực hành:
- Kết nối vào giao diện CLI của FreeSwitch (FusionPBX).
- Kích hoạt tính năng Debug SIP Message tại giao diện CLI của FreeSwitch.
- Khảo sát các bản tin SIP Message tại giao diện CLI của FreeSwitch.

Các bước triển khai:
Kết nối vào giao diện CLI của FreeSwitch (FusionPBX).
[root@localhost ~]# fs_cli
.=======================================================.
|            _____ ____     ____ _     ___              |
|           |  ___/ ___|   / ___| |   |_ _|             |
|           | |_  \___ \  | |   | |    | |              |
|           |  _|  ___) | | |___| |___ | |              |
|           |_|   |____/   \____|_____|___|             |
|                                                       |
.=======================================================.
| Anthony Minessale II, Ken Rice,                       |
| Michael Jerris, Travis Cross                          |
| FreeSWITCH (http://www.freeswitch.org)                |
| Paypal Donations Appreciated: paypal@freeswitch.org   |
| Brought to you by ClueCon http://www.cluecon.com/     |
.=======================================================.

.=======================================================================================================.
|       _                            _    ____ _             ____                                       |
|      / \   _ __  _ __  _   _  __ _| |  / ___| |_   _  ___ / ___|___  _ __                             |
|     / _ \ | '_ \| '_ \| | | |/ _` | | | |   | | | | |/ _ \ |   / _ \| '_ \                            |
|    / ___ \| | | | | | | |_| | (_| | | | |___| | |_| |  __/ |__| (_) | | | |                           |
|   /_/   \_\_| |_|_| |_|\__,_|\__,_|_|  \____|_|\__,_|\___|\____\___/|_| |_|                           |
|                                                                                                       |
|    ____ _____ ____    ____             __                                                             |
|   |  _ \_   _/ ___|  / ___|___  _ __  / _| ___ _ __ ___ _ __   ___ ___                                |
|   | |_) || || |     | |   / _ \| '_ \| |_ / _ \ '__/ _ \ '_ \ / __/ _ \                               |
|   |  _ < | || |___  | |__| (_) | | | |  _|  __/ | |  __/ | | | (_|  __/                               |
|   |_| \_\|_| \____|  \____\___/|_| |_|_|  \___|_|  \___|_| |_|\___\___|                               |
|                                                                                                       |
|     ____ _             ____                                                                           |
|    / ___| |_   _  ___ / ___|___  _ __         ___ ___  _ __ ___                                       |
|   | |   | | | | |/ _ \ |   / _ \| '_ \       / __/ _ \| '_ ` _ \                                      |
|   | |___| | |_| |  __/ |__| (_) | | | |  _  | (_| (_) | | | | | |                                     |
|    \____|_|\__,_|\___|\____\___/|_| |_| (_)  \___\___/|_| |_| |_|                                     |
|                                                                                                       |
.=======================================================================================================.

Type /help <enter> to see a list of commands

+OK log level  [7]
freeswitch@localhost.localdomain> 

Kích hoạt tính năng Debug SIP Message tại giao diện CLI của FreeSwitch.
freeswitch@localhost.localdomain> sofia profile internal siptrace on
Enabled sip debugging on internal
freeswitch@localhost.localdomain> sofia profile external siptrace on
Enabled sip debugging on external
freeswitch@localhost.localdomain> 

Khảo sát các bản tin SIP Message tại giao diện CLI của FreeSwitch.
freeswitch@localhost.localdomain> sofia profile internal siptrace on
Enabled sip debugging on internal
recv 549 bytes from udp/[192.168.100.150]:50194 at 14:06:01.123224:
------------------------------------------------------------------------
REGISTER sip:192.168.100.122 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.150:50194;rport;branch=z9hG4bKPj63c058884f524d62af9b041dcf6d6db9
Max-Forwards: 70
From: "5001" <sip:5001@192.168.100.122>;tag=e90dd071f8fe43b4bbd58fe1e9b1aaa5
To: "5001" <sip:5001@192.168.100.122>
Call-ID: 0c01e5bbcc1f4466978e644d29e9f07b
CSeq: 12973 REGISTER
User-Agent: MicroSIP/3.20.5
Contact: "5001" <sip:5001@192.168.100.150:50194;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0

send 639 bytes to udp/[192.168.100.150]:50194 at 14:06:01.123684:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.100.150:50194;rport=50194;branch=z9hG4bKPj63c058884f524d62af9b041dcf6d6db9
From: "5001" <sip:5001@192.168.100.122>;tag=e90dd071f8fe43b4bbd58fe1e9b1aaa5
To: "5001" <sip:5001@192.168.100.122>;tag=7HSZct5eercmD
Call-ID: 0c01e5bbcc1f4466978e644d29e9f07b
CSeq: 12973 REGISTER
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="192.168.100.122", nonce="4b51820a-10fb-4edf-9e2d-561089a0e20c", algorithm=MD5, qop="auth"
Content-Length: 0

2021-05-10 14:06:01.110717 [WARNING] sofia_reg.c:1795 SIP auth challenge (REGISTER) on sofia profile 'internal' for [5001@192.168.100.122] from ip 192.168.100.150
recv 812 bytes from udp/[192.168.100.150]:50194 at 14:06:01.124234:
------------------------------------------------------------------------
REGISTER sip:192.168.100.122 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.150:50194;rport;branch=z9hG4bKPj95e18673e5b448669b7059ff95dc97a5
Max-Forwards: 70
From: "5001" <sip:5001@192.168.100.122>;tag=e90dd071f8fe43b4bbd58fe1e9b1aaa5
To: "5001" <sip:5001@192.168.100.122>
Call-ID: 0c01e5bbcc1f4466978e644d29e9f07b
CSeq: 12974 REGISTER
User-Agent: MicroSIP/3.20.5
Contact: "5001" <sip:5001@192.168.100.150:50194;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="5001", realm="192.168.100.122", nonce="4b51820a-10fb-4edf-9e2d-561089a0e20c", uri="sip:192.168.100.122", response="55569ba3d5d0a19322de1d1e3313b3ea", algorithm=MD5, cnonce="c1ca07ce65314bfeabf892ade9225fab", qop=auth, nc=00000001
Content-Length:  0

2021-05-10 14:06:01.130671 [ERR] switch_cpp.cpp:1465 [cache] can not write file `/var/cache/fusionpbx/directory.5001@192.168.100.122.e436d359-f2ee-4b67-b8b7-48d812b1283f.tmp`: /var/cache/fusionpbx/directory.5001@192.168.100.122.e436d359-f2ee-4b67-b8b7-48d812b1283f.tmp: Permission denied
send 601 bytes to udp/[192.168.100.150]:50194 at 14:06:01.133250:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.100.150:50194;rport=50194;branch=z9hG4bKPj95e18673e5b448669b7059ff95dc97a5
From: "5001" <sip:5001@192.168.100.122>;tag=e90dd071f8fe43b4bbd58fe1e9b1aaa5
To: "5001" <sip:5001@192.168.100.122>;tag=8tjreNpjB126r
Call-ID: 0c01e5bbcc1f4466978e644d29e9f07b
CSeq: 12974 REGISTER
Contact: <sip:5001@192.168.100.150:50194;ob>;expires=300
Date: Mon, 10 May 2021 07:06:01 GMT
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0

freeswitch@localhost.localdomain> /exit

Mọi thắc mắc các bạn vui lòng liên hệ với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.

You Might Also Like

0 comments