|
@@ -800,7 +800,8 @@ static int assemble_msg(struct sip_msg* msg, struct tw_info *twi)
|
|
DBG("assemble_msg: next r-uri: %.*s\n",
|
|
DBG("assemble_msg: next r-uri: %.*s\n",
|
|
str_uri.len,str_uri.len ? str_uri.s : "");
|
|
str_uri.len,str_uri.len ? str_uri.s : "");
|
|
|
|
|
|
- if ( REQ_LINE(msg).method_value==METHOD_INVITE || twi->append->add_body ) {
|
|
|
|
|
|
+ if ( REQ_LINE(msg).method_value==METHOD_INVITE ||
|
|
|
|
+ (twi->append && twi->append->add_body) ) {
|
|
/* get body */
|
|
/* get body */
|
|
if( (body.s = get_body(msg)) == 0 ){
|
|
if( (body.s = get_body(msg)) == 0 ){
|
|
LOG(L_ERR, "assemble_msg: get_body failed\n");
|
|
LOG(L_ERR, "assemble_msg: get_body failed\n");
|