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(a)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(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -
http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -
http://asipto.com/u/katu