百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 热门文章 > 正文

freeswitch sofia协议栈调试(someip协议栈)

bigegpt 2024-08-01 11:42 4 浏览



概述

freeswitch是一款简单好用的VOIP开源软交换平台。

fs内部使用sofia的sip协议栈,本文介绍如何调试跟踪sofia协议栈。

环境

centos:CentOS release 7.0 (Final)或以上版本

freeswitch:v1.10.7

GCC:4.8.5

调试接口

sofia loglevel <all|default|tport|iptsec|nea|nta|nth_client|nth_server|nua|soa|sresolv|stun> [0-9]

mod_sofia模块接口设置sofia sip协议栈的日志级别,0关闭调试日志,9最高包括函数调用退出流程的日志打印。

all会影响所有模块的日志级别。

tport Transport event

iptsec HTTP/SIP authentication module

nea Event engine

nta Transaction engine

nth_client HTTP Transactions Module

nth_server HTTP Transactions Module

nua User Agent engine

soa SDP Offer/Answer engine

sresolv Asynchronous DNS Resolver

stun STUN Client and Server Module


关闭sofia调试日志。

sofia loglevel all 0


测试

首先设置loglevel的级别,然后发起呼叫。

freeswitch@localhost.localdomain> fsctl loglevel 6


+OK log level: INFO [6]


freeswitch@localhost.localdomain> sofia loglevel all 9


Sofia log level for component [all] has been set to [9]

freeswitch@localhost.localdomain> tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(0x7faf98004280): events IN

tport.c:2864 tport_recv_event() tport_recv_event(0x7faf98004280)

tport.c:3205 tport_recv_iovec() tport_recv_iovec(0x7faf98004280) msg 0x7faf98009370 from (udp/10.55.55.137:5080) has 1071 bytes, veclen = 1

tport.c:3023 tport_deliver() tport_deliver(0x7faf98004280): msg 0x7faf98009370 (1071 bytes) from udp/10.55.55.138:5080/sip next=(nil)

nta.c:2880 agent_recv_request() nta: received INVITE sip:13712345678@10.55.55.137:5080 SIP/2.0 (CSeq 72472902)

nta.c:3248 agent_aliases() nta: canonizing sip:13712345678@10.55.55.137:5080 with contact

nta.c:3085 agent_recv_request() nta: INVITE (72472902) going to a default leg

nta.c:1348 set_timeout() nta: timer shortened to 200 ms

nua_server.c:102 nua_stack_process_request() nua: nua_stack_process_request: entering

nua_stack.c:899 nh_create() nua: nh_create: entering

nua_common.c:108 nh_create_handle() nua: nh_create_handle: entering

nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering

soa.c:280 soa_clone() soa_clone(static::0x7faf98001930, 0x7faf98001130, 0x7faf9800c640) called

soa.c:403 soa_set_params() soa_set_params(static::0x7faf9800ce00, ...) called

nta.c:4417 nta_leg_tcreate() nta_leg_tcreate(0x7faf9800b180)

soa.c:1302 soa_init_offer_answer() soa_init_offer_answer(static::0x7faf9800ce00) called

soa.c:1171 soa_set_remote_sdp() soa_set_remote_sdp(static::0x7faf9800ce00, (nil), 0x7faf98009c99, 246) called

nua_dialog.c:338 nua_dialog_usage_add() nua(0x7faf9800c640): adding session usage

tport.c:3257 tport_tsend() tport_tsend(0x7faf98004280) tpn = UDP/10.55.55.138:5080

tport.c:4046 tport_resolve() tport_resolve addrinfo = 10.55.55.138:5080

tport.c:4680 tport_by_addrinfo() tport_by_addrinfo(0x7faf98004280): not found by name UDP/10.55.55.138:5080

tport.c:3594 tport_vsend() tport_vsend(0x7faf98004280): 346 bytes of 346 to udp/10.55.55.138:5080

tport.c:3492 tport_send_msg() tport_vsend returned 346

nta.c:6791 incoming_reply() nta: sent 100 Trying for INVITE (72472902)

nua_stack.c:271 nua_stack_event() nua(0x7faf9800c640): event i_invite 100 Trying

nua_session.c:4139 signal_call_state_change() nua(0x7faf9800c640): call state changed: init -> received, received offer

soa.c:1098 soa_get_remote_sdp() soa_get_remote_sdp(static::0x7faf9800ce00, [0x7faf9fffe558], [0x7faf9fffe560], [(nil)]) called

nua_stack.c:271 nua_stack_event() nua(0x7faf9800c640): event i_state 100 Trying

nua_stack.c:359 nua_application_event() nua: nua_application_event: entering

nua.c:342 nua_handle_bind() nua: nua_handle_bind: entering

2023-09-07 10:23:08.958941 [NOTICE] switch_channel.c:1104 New Channel sofia/external/10011@10.55.55.138 [7c4e6e50-4d25-11ee-ac94-4570ec2ca497]

nua_stack.c:359 nua_application_event() nua: nua_application_event: entering

nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering

nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering

nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering

nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering

2023-09-07 10:23:08.958941 [INFO] mod_dialplan_xml.c:637 Processing 10011 <10011>->13712345678 in context public

2023-09-07 10:23:08.958941 [NOTICE] switch_channel.c:1104 New Channel sofia/external/13712345678@10.55.55.138:5090 [7c4ed764-4d25-11ee-ac9a-4570ec2ca497]

nua_common.c:108 nh_create_handle() nua: nh_create_handle: entering

tport.c:3257 tport_tsend() tport_tsend(0x7faf98004280) tpn = UDP/10.55.55.138:6080

tport.c:4046 tport_resolve() tport_resolve addrinfo = 10.55.55.138:6080

tport.c:4680 tport_by_addrinfo() tport_by_addrinfo(0x7faf98004280): not found by name UDP/10.55.55.138:6080

tport.c:3594 tport_vsend() tport_vsend(0x7faf98004280): 594 bytes of 594 to udp/10.55.55.138:6080

tport.c:3492 tport_send_msg() tport_vsend returned 594

nta.c:6791 incoming_reply() nta: sent 200 OK for OPTIONS (14)

nta.c:1350 set_timeout() nta: timer set to 32000 ms

nua_stack.c:569 nua_stack_signal() nua(0x7faf98011a70): recv signal r_destroy

nta.c:4470 nta_leg_destroy() nta_leg_destroy((nil))

soa.c:356 soa_destroy() soa_destroy(static::0x7faf98012400) called


freeswitch@localhost.localdomain>


总结

freeswitch使用sofia sip协议栈,有需要关注sip协议栈的同学可以通过debug模式调试sip处理流程。


空空如常

求真得真

相关推荐

得物可观测平台架构升级:基于GreptimeDB的全新监控体系实践

一、摘要在前端可观测分析场景中,需要实时观测并处理多地、多环境的运行情况,以保障Web应用和移动端的可用性与性能。传统方案往往依赖代理Agent→消息队列→流计算引擎→OLAP存储...

warm-flow新春版:网关直连和流程图重构

本期主要解决了网关直连和流程图重构,可以自此之后可支持各种复杂的网关混合、多网关直连使用。-新增Ruoyi-Vue-Plus优秀开源集成案例更新日志[feat]导入、导出和保存等新增json格式支持...

扣子空间体验报告

在数字化时代,智能工具的应用正不断拓展到我们工作和生活的各个角落。从任务规划到项目执行,再到任务管理,作者深入探讨了这款工具在不同场景下的表现和潜力。通过具体的应用实例,文章展示了扣子空间如何帮助用户...

spider-flow:开源的可视化方式定义爬虫方案

spider-flow简介spider-flow是一个爬虫平台,以可视化推拽方式定义爬取流程,无需代码即可实现一个爬虫服务。spider-flow特性支持css选择器、正则提取支持JSON/XML格式...

solon-flow 你好世界!

solon-flow是一个基础级的流处理引擎(可用于业务规则、决策处理、计算编排、流程审批等......)。提供有“开放式”驱动定制支持,像jdbc有mysql或pgsql等驱动,可...

新一代开源爬虫平台:SpiderFlow

SpiderFlow:新一代爬虫平台,以图形化方式定义爬虫流程,不写代码即可完成爬虫。-精选真开源,释放新价值。概览Spider-Flow是一个开源的、面向所有用户的Web端爬虫构建平台,它使用Ja...

通过 SQL 训练机器学习模型的引擎

关注薪资待遇的同学应该知道,机器学习相关的岗位工资普遍偏高啊。同时随着各种通用机器学习框架的出现,机器学习的门槛也在逐渐降低,训练一个简单的机器学习模型变得不那么难。但是不得不承认对于一些数据相关的工...

鼠须管输入法rime for Mac

鼠须管输入法forMac是一款十分新颖的跨平台输入法软件,全名是中州韵输入法引擎,鼠须管输入法mac版不仅仅是一个输入法,而是一个输入法算法框架。Rime的基础架构十分精良,一套算法支持了拼音、...

Go语言 1.20 版本正式发布:新版详细介绍

Go1.20简介最新的Go版本1.20在Go1.19发布六个月后发布。它的大部分更改都在工具链、运行时和库的实现中。一如既往,该版本保持了Go1的兼容性承诺。我们期望几乎所...

iOS 10平台SpriteKit新特性之Tile Maps(上)

简介苹果公司在WWDC2016大会上向人们展示了一大批新的好东西。其中之一就是SpriteKitTileEditor。这款工具易于上手,而且看起来速度特别快。在本教程中,你将了解关于TileE...

程序员简历例句—范例Java、Python、C++模板

个人简介通用简介:有良好的代码风格,通过添加注释提高代码可读性,注重代码质量,研读过XXX,XXX等多个开源项目源码从而学习增强代码的健壮性与扩展性。具备良好的代码编程习惯及文档编写能力,参与多个高...

Telerik UI for iOS Q3 2015正式发布

近日,TelerikUIforiOS正式发布了Q32015。新版本新增对XCode7、Swift2.0和iOS9的支持,同时还新增了对数轴、不连续的日期时间轴等;改进TKDataPoin...

ios使用ijkplayer+nginx进行视频直播

上两节,我们讲到使用nginx和ngixn的rtmp模块搭建直播的服务器,接着我们讲解了在Android使用ijkplayer来作为我们的视频直播播放器,整个过程中,需要注意的就是ijlplayer编...

IOS技术分享|iOS快速生成开发文档(一)

前言对于开发人员而言,文档的作用不言而喻。文档不仅可以提高软件开发效率,还能便于以后的软件开发、使用和维护。本文主要讲述Objective-C快速生成开发文档工具appledoc。简介apple...

macOS下配置VS Code C++开发环境

本文介绍在苹果macOS操作系统下,配置VisualStudioCode的C/C++开发环境的过程,本环境使用Clang/LLVM编译器和调试器。一、前置条件本文默认前置条件是,您的开发设备已...