diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index f337325122..53cd8c823b 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -2039,9 +2039,9 @@ static int add_sdp_streams(void *obj, void *arg, void *data, int flags) int res; if (handler) { - /* if an already assigned handler does not handle the session_media or reports a catastrophic error, fail */ + /* if an already assigned handler reports a catastrophic error, fail */ res = handler->create_outgoing_sdp_stream(session, session_media, answer); - if (res <= 0) { + if (res < 0) { return 0; } return CMP_MATCH;