Skip to content

Commit

Permalink
dialog: remove useless method parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Mar 6, 2020
1 parent be5ed3f commit e4b4a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_req_within.c
Expand Up @@ -605,6 +605,7 @@ int send_leg_msg(struct dlg_cell *dlg,str *method,int src_leg,int dst_leg,
context_p *new_ctx;
dlg_t* dialog_info;
int result;
/*
unsigned int method_type;
if (parse_method(method->s,method->s+method->len,&method_type) == 0)
Expand All @@ -613,7 +614,6 @@ int send_leg_msg(struct dlg_cell *dlg,str *method,int src_leg,int dst_leg,
return -1;
}
/*
* we can send INVITEs with body for late negotiation
if (method_type == METHOD_INVITE && (body == NULL || body->s == NULL ||
body->len == 0))
Expand Down

0 comments on commit e4b4a87

Please sign in to comment.