瀏覽代碼

rr: updates for outboud module api

(cherry picked from commit 6aca846dce4b797a66aaa865fb5a1e81f7806b4c)
(cherry picked from commit 749dcc5b6d03889609685957538dc90bccce5703)
Daniel-Constantin Mierla 5 年之前
父節點
當前提交
787a4726b8
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/modules/rr/record.c

+ 3 - 3
src/modules/rr/record.c

@@ -393,7 +393,7 @@ int record_route(struct sip_msg* _m, str *params)
 			}
 		}
 	} else if (use_ob == 1) {
-		if (rr_obb.encode_flow_token(&user, _m->rcv) != 0) {
+		if (rr_obb.encode_flow_token(&user, &_m->rcv) != 0) {
 			LM_ERR("encoding outbound flow-token\n");
 			return -1;
 		}
@@ -524,7 +524,7 @@ int record_route_preset(struct sip_msg* _m, str* _data)
 			return -1;
 		}
 	} else if (use_ob == 1) {
-		if (rr_obb.encode_flow_token(&user, _m->rcv) != 0) {
+		if (rr_obb.encode_flow_token(&user, &_m->rcv) != 0) {
 			LM_ERR("encoding outbound flow-token\n");
 			return -1;
 		}
@@ -776,7 +776,7 @@ int record_route_advertised_address(struct sip_msg* _m, str* _data)
 			return -1;
 		}
 	} else if (use_ob == 1) {
-		if (rr_obb.encode_flow_token(&user, _m->rcv) != 0) {
+		if (rr_obb.encode_flow_token(&user, &_m->rcv) != 0) {
 			LM_ERR("encoding outbound flow-token\n");
 			return -1;
 		}