Преглед изворни кода

rtjson: fix for replacing to header based on json document

- reported by GH #868
Daniel-Constantin Mierla пре 8 година
родитељ
комит
1d5f39a23f
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
 			}
 		}
 	}