Pjsip中在收到request和发送response时,都是通过遍历模块来处理的。优先级的值越低,模块的优先级越高。
在收到request和response时,先从高优先级的模块开始处理。
在发送request和response时,先从低优先级的模块开始处理。
模块的结构体如下:
模块优先级如下:
Pjsip 默认注册的模块如下:
1. mod-pjsua-log 优先级7
模块名称:mod-pjsua-log
优先级:PJSIP_MOD_PRIORITY_TRANSPORT_LAYER-1
文件:pjsip/src/pjsua-lib/pjsua_core.c
2. mod-tsx-layer 优先级16
模块名称:mod-tsx-layer
优先级&#