-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Mulipart SDP #129
Comments
Earn330 writes:
We need to transfer SIP messages with multipart content through the SEMS SBC module for transfering geolocation in combination with emergency calls. Although i can not find any reason why it does not work the complete sdp part is dropped. I get an error that claims, that the mime body can't be parsed
Is it possible to give you the debug log in a private channel as there
a sensible data in it and it doesn't make sense to delete them as i
have to delete them all ;)
In theory sems is able to parse multipart bodies. What is your
Content-Type in headers and in each part?
|
I will put an Invite here where I leave out sensible stuff. Please keep in mind, that this Invite is simplified.
|
What exactly is the error message telling that the mime body cannot be
parsed?
|
Hi this is what I get from debug log
|
Earn330 writes:
this is what I get from debug log
```
Jun 25 09:27:52 voip-lab-proxy02 sems[12725]: [#7f62d70ce700] [parseParams, AmMimeBody.cpp:302] DEBUG: parsed new content-type parameter: <boundary>=<"boundary1">
Jun 25 09:27:52 voip-lab-proxy02 sems[12725]: [#7f62d70ce700] [parse, AmMimeBody.cpp:586] DEBUG: parsing multi-part body
Jun 25 09:27:52 voip-lab-proxy02 sems[12725]: [#7f62d70ce700] [parseMultipart, AmMimeBody.cpp:545] DEBUG: unexpected end-of-buffer
Jun 25 09:27:52 voip-lab-proxy02 sems[12725]: [#7f62d70ce700] [sip_msg2am_request, SipCtrlInterface.cpp:603] DEBUG: could not parse MIME body
In the example you gave earlier, content-type boundary param has value
"unique-boundary-1", but the debug indicates that sems found boundary
value "boundary1".
Can you check what the boundary value was in the request of the debug or
create a new debug? It is a bit hard to believe that sems would have
such a bug in parsing the boundary param value.
I cannot debug this myself, since I don't have any SIP UA available that
generates multipart/mixed bodies. You can try yourself to add more
debug statements to AmMimeBody.cpp to find where the bug is (if there is
any).
|
I used sipp to generate multipart/mixed body and got the same "could not parse MIME body" error. I don't myself have need for multipart bodies and therefore lack motivation to start debugging the issue. If you find where the bug is, please create a pull request. |
Unfortunately I'm not able to fix this. If I could do it on my own, I would not have opened an issue here. |
Hi
We need to transfer SIP messages with multipart content through the SEMS SBC module for transfering geolocation in combination with emergency calls. Although i can not find any reason why it does not work the complete sdp part is dropped. I get an error that claims, that the mime body can't be parsed
Is it possible to give you the debug log in a private channel as there a sensible data in it and it doesn't make sense to delete them as i have to delete them all ;)
BR, Björn
The text was updated successfully, but these errors were encountered: