Browse Source

rtjson: fix for replacing to header based on json document

- reported by GH #868
Daniel-Constantin Mierla 8 years ago
parent
commit
1d5f39a23f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/rtjson/rtjson_routing.c

+ 1 - 1
modules/rtjson/rtjson_routing.c

@@ -481,7 +481,7 @@ int rtjson_prepare_branch(sip_msg_t *msg, srjson_doc_t *jdoc, srjson_t *nj)
 				xuri.len = strlen(xuri.s);
 			}
 			if(xdsp.len>0 || xuri.len>0) {
-				uacb.replace_from(msg, &xdsp, &xuri);
+				uacb.replace_to(msg, &xdsp, &xuri);
 			}
 		}
 	}