如何从PJSIP头文件读取特定内容(sip信息请求)?



我如何阅读下面的消息:在pjsip中调用pjsua2时建立连接。

2021-10-25 17:12:37.468 19483-19641/org.pjsip.pjsua2.app I/System.out: Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
2021-10-25 17:12:37.468 19483-19641/org.pjsip.pjsua2.app I/System.out: Supported: timer, path, replaces
2021-10-25 17:12:37.468 19483-19641/org.pjsip.pjsua2.app I/System.out: Content-Type: text/plain
2021-10-25 17:12:37.468 19483-19641/org.pjsip.pjsua2.app I/System.out: Content-Length: 24
2021-10-25 17:12:37.468 19483-19641/org.pjsip.pjsua2.app I/System.out: Connection established
2021-10-25 17:12:37.468 19483-19641/org.pjsip.pjsua2.app I/System.out: --end msg--
2021-10-25 17:12:37.469 19483-19641/org.pjsip.pjsua2.app I/System.out: 17:12:37.469        tsx0x7503bcd0a8  ..Request msg INFO/cseq=43033586 (rdata0x7503bed318) was unhandled by dialog usages, sending 500 response
2021-10-25 17:12:37.470 19483-19641/org.pjsip.pjsua2.app I/System.out: 17:12:37.470           pjsua_core.c  ....TX 468 bytes Response msg 500/INFO/cseq=43033586 (tdta0x7503c5a0a8) to TLS 35.156.17.231:5061:
2021-10-25 17:12:37.471 19483-19641/org.pjsip.pjsua2.app I/System.out: SIP/2.0 500 Unhandled by dialog usages  

您将需要。onCallTsxState从调用类回调函数,以侦听在调用期间共享的Sip消息。我已经回答了下面的链接链接

相关内容

  • 没有找到相关文章

最新更新