13850a13851,13853 > /* allocate memory on the stack (will get freed when the function returns.) */ > struct ast_str *message_body = ast_str_alloca(500); > 13854c13857,13864 < add_header(&req, var->name, ast_unescape_semicolon(buf)); --- > if( 0 == strcmp(var->name,"Notify-Body") ) { > /* Add the value as a message body */ > ast_str_append(&message_body, 0, "%s\r\n", var->value); > } > else { > /* Add the name and its valus as a SIP header */ > add_header(&req, var->name, ast_unescape_semicolon(buf)); > } 13857c13867,13872 < /* Recalculate our side, and recalculate Call ID */ --- > if(message_body->used != 0) { > add_header_contentLength(&req, message_body->used); > add_line(&req, message_body->str); > } > > /* Recalculate our side, and recalculate Call ID */