|
@@ -2406,7 +2406,7 @@ char * build_res_buf_from_sip_req( unsigned int code, str *text ,str *new_tag,
|
|
case HDR_TO_T:
|
|
case HDR_TO_T:
|
|
if (new_tag && new_tag->len) {
|
|
if (new_tag && new_tag->len) {
|
|
to_tag=get_to(msg)->tag_value;
|
|
to_tag=get_to(msg)->tag_value;
|
|
- if (to_tag.len )
|
|
|
|
|
|
+ if ( to_tag.len || to_tag.s )
|
|
len+=new_tag->len-to_tag.len;
|
|
len+=new_tag->len-to_tag.len;
|
|
else
|
|
else
|
|
len+=new_tag->len+TOTAG_TOKEN_LEN/*";tag="*/;
|
|
len+=new_tag->len+TOTAG_TOKEN_LEN/*";tag="*/;
|