浏览代码

modules_s: migrated append_branch in cpl-c, exec, and registrar modules

Juha Heinanen 12 年之前
父节点
当前提交
181561c7dc
共有 2 个文件被更改,包括 13 次插入7 次删除
  1. 1 1
      modules_s/cpl-c/cpl_sig.c
  2. 12 6
      modules_s/registrar/lookup.c

+ 1 - 1
modules_s/cpl-c/cpl_sig.c

@@ -84,7 +84,7 @@ int cpl_proxy_to_loc_set( struct sip_msg *msg, struct location **locs,
 		DBG("DEBUG:cpl_c:cpl_proxy_to_loc_set: appending branch "
 			"<%.*s>\n",(*locs)->addr.uri.len,(*locs)->addr.uri.s);
 		if(append_branch(msg, &(*locs)->addr.uri,
-							0, 0, Q_UNSPECIFIED, 0,  0)==-1){
+				 0, 0, Q_UNSPECIFIED, 0, 0, 0, 0)==-1){
 			LOG(L_ERR,"ERROR:cpl_c:cpl_proxy_to_loc_set: failed when "
 				"appending branch <%s>\n",(*locs)->addr.uri.s);
 			goto error;

+ 12 - 6
modules_s/registrar/lookup.c

@@ -165,7 +165,8 @@ skip_rewrite_uri:
 					LOG(L_ERR, "ERROR: lookup(): branch: out of memory\n");
 					goto cont; /* try to continue */
 				}
-				if (append_branch(_m, &new_uri, 0, 0, ptr->q, 0, 0) == -1) {
+				if (append_branch(_m, &new_uri, 0, 0, ptr->q,
+						  0, 0, 0, 0) == -1) {
 					LOG(L_ERR, "lookup(): Error while appending a branch\n");
 					pkg_free(new_uri.s);
 					if (ser_error==E_TOO_MANY_BRANCHES) goto skip;
@@ -174,8 +175,10 @@ skip_rewrite_uri:
 				}
 				pkg_free(new_uri.s); /* append_branch doesn't free it */
 			}else{
-				if (append_branch(_m, &ptr->c, &ptr->received, 0 /* path */,
-									ptr->q, 0 /* brflags*/, ptr->sock) == -1) {
+				if (append_branch(_m, &ptr->c, &ptr->received,
+						  0 /* path */,
+						  ptr->q, 0 /* brflags*/,
+						  ptr->sock, 0, 0) == -1) {
 					LOG(L_ERR, "lookup(): Error while appending a branch\n");
 					goto skip; /* Return OK here so the function succeeds */
 				}
@@ -326,7 +329,8 @@ skip_rewrite_uri:
 					ERR("branch: out of memory\n");
 					goto cont; /* try to continue */
 				}
-				if (append_branch(msg, &new_uri, 0, 0, ptr->q, 0, 0) == -1) {
+				if (append_branch(msg, &new_uri, 0, 0, ptr->q,
+						  0, 0, 0, 0) == -1) {
 					ERR("Error while appending a branch\n");
 					pkg_free(new_uri.s);
 					if (ser_error == E_TOO_MANY_BRANCHES) goto skip;
@@ -335,8 +339,10 @@ skip_rewrite_uri:
 				}
 				pkg_free(new_uri.s); /* append_branch doesn't free it */
 			} else {
-				if (append_branch(msg, &ptr->c, &ptr->received, 0 /* path */,
-									 ptr->q, 0, ptr->sock) == -1) {
+				if (append_branch(msg, &ptr->c, &ptr->received,
+						  0 /* path */,
+						  ptr->q, 0, ptr->sock,
+						  0, 0) == -1) {
 					ERR("Error while appending a branch\n");
 					goto skip; /* Return OK here so the function succeeds */
 				}