Explorar el Código

rtjson: fix for replacing to header based on json document

- reported by GH #868
Daniel-Constantin Mierla hace 8 años
padre
commit
1d5f39a23f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 			}
 		}
 	}