Parsing SIP message body

落爺英雄遲暮 提交于 2019-12-05 18:42:31

I think you might be reading the documentation wrong. The function osip_init() wants a osip_t **osip not a message. Re: http://www.gnu.org/software/osip/doc/html/group_howto0_initialize.html

For future peeps with a similar problem:

I got the same error as Matka mentioned in his comment.

return value -5 from osip_message_parse

It was due to a malformed sip message that I was passing to the program while debugging.

I know this is an old question, but I've just stumbled on it.

osip_init is not needed to use just the parser, but you should init the parser with parser_init(); instead.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!