File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3990,10 +3990,15 @@ static void *janus_sip_handler(void *data) {
3990
3990
goto error ;
3991
3991
}
3992
3992
janus_mutex_unlock (& session -> mutex );
3993
- struct janus_json_parameter * params = progress ? progress_parameters : accept_parameters ;
3994
- JANUS_VALIDATE_JSON_OBJECT (root , params ,
3995
- error_code , error_cause , TRUE,
3996
- JANUS_SIP_ERROR_MISSING_ELEMENT , JANUS_SIP_ERROR_INVALID_ELEMENT );
3993
+ if (progress ) {
3994
+ JANUS_VALIDATE_JSON_OBJECT (root , progress_parameters ,
3995
+ error_code , error_cause , TRUE,
3996
+ JANUS_SIP_ERROR_MISSING_ELEMENT , JANUS_SIP_ERROR_INVALID_ELEMENT );
3997
+ } else {
3998
+ JANUS_VALIDATE_JSON_OBJECT (root , accept_parameters ,
3999
+ error_code , error_cause , TRUE,
4000
+ JANUS_SIP_ERROR_MISSING_ELEMENT , JANUS_SIP_ERROR_INVALID_ELEMENT );
4001
+ }
3997
4002
if (error_code != 0 )
3998
4003
goto error ;
3999
4004
json_t * srtp = json_object_get (root , "srtp" );
You can’t perform that action at this time.
0 commit comments