At some point I updated it to return 1 if there is no body, to avoid some annoying log message. But perhaps it can still be extended to detect when there is no sdp in a multi-part body.
rtpproxy_manage() is supposed to work nicely when called for requests/replies with no sdp, just not to care if is INVITE or ACK with no sdp, or such similar situations.
Cheers, Daniel
On 10/17/12 6:40 PM, Ovidiu Sas wrote:
Then parse_sdp needs to be updated to return explicit error codes :(
-ovidiu
On Wed, Oct 17, 2012 at 12:35 PM, Juha Heinanen jh@tutpro.com wrote:
Ovidiu Sas writes:
On the other hand, is_audio_on_hold(): http://kamailio.org/docs/modules/devel/modules_k/textops.html#id2523065 could be re-worked/re-named to provide media status.
i looked at the code and it has this:
if (0 == parse_sdp(msg)) { ... } return -1;
the problem is that parse_sdp returns -1 if there is no sdp, but also when there is some error.
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users