普通网友 2015-02-06 16:41
浏览 282
已采纳

php-sip库 - 如何获取SIP响应的主体

I've just recently discovered the following lib: https://code.google.com/p/php-sip/

And I'm using it to send and rcv SIP messages. So far so good. But in addition to just checking the value of the sip response, eg) 200 OK. I need to get to the body of the response.

Has anyone found a way to do this? I'm currently reviewing the source code in PhpSIP.class.php but I don't see any public methods to getBody() or getResponse() etc.

Maybe I'll have to write one? I'm not sure. but i thought I'd check in case someone else knows how to do this. Thanks.

  • 写回答

1条回答 默认 最新

  • dqf2015 2015-02-09 20:34
    关注

    I had to just modify the library and add my own method to expose the body of the SIP request.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 matlab ode45 未发现警告,但是运行出错
  • ¥15 vscode platformio
  • ¥15 代写uni代码,app唤醒
  • ¥15 全志t113i启动qt应用程序提示internal error
  • ¥15 ensp可以看看嘛.
  • ¥80 51单片机C语言代码解决单片机为AT89C52是清翔单片机
  • ¥60 优博讯DT50高通安卓11系统刷完机自动进去fastboot模式
  • ¥15 minist数字识别
  • ¥15 在安装gym库的pygame时遇到问题,不知道如何解决
  • ¥20 uniapp中的webview 使用的是本地的vue页面,在模拟器上显示无法打开