Get the SDP message from SIP message and check it's Content-Type Return values: 1 - success -1 - error in getting body or invalid content type -2 - empty message
| 681 | // -1 - error in getting body or invalid content type |
| 682 | // -2 - empty message |
| 683 | static int |
| 684 | get_sdp_message(struct sip_msg *msg, str *sdp) |
| 685 | { |
| 686 | if (get_body(msg, sdp)!=0 || sdp->len==0) |
| 687 | return -2; |
| 688 | |
| 689 | if (!check_content_type(msg)) |
| 690 | return -1; |
| 691 | |
| 692 | return 1; |
| 693 | } |
| 694 | |
| 695 | |
| 696 | // Return a str containing the line separator used in the SDP body |
no test coverage detected