Browse Source

registrar(k): local send_reply() renamed

- new name reg_send_reply()
- symbol conflict with sl module version on darwinos
Daniel-Constantin Mierla 16 years ago
parent
commit
d34c702efa
3 changed files with 4 additions and 4 deletions
  1. 1 1
      modules_k/registrar/reply.c
  2. 1 1
      modules_k/registrar/reply.h
  3. 2 2
      modules_k/registrar/save.c

+ 1 - 1
modules_k/registrar/reply.c

@@ -365,7 +365,7 @@ static int add_unsupported(struct sip_msg* _m, str* _p)
 /*! \brief
  * Send a reply
  */
-int send_reply(struct sip_msg* _m)
+int reg_send_reply(struct sip_msg* _m)
 {
 	str unsup = str_init(SUPPORTED_PATH_STR);
 	long code;

+ 1 - 1
modules_k/registrar/reply.h

@@ -38,7 +38,7 @@
 /*! \brief
  * Send a reply
  */
-int send_reply(struct sip_msg* _m);
+int reg_send_reply(struct sip_msg* _m);
 
 
 /*! \brief

+ 2 - 2
modules_k/registrar/save.c

@@ -780,7 +780,7 @@ int save(struct sip_msg* _m, char* _d, char* _cflags)
 
 	update_stat(accepted_registrations, 1);
 	/* Only send reply upon request, not upon reply */
-	if ((route_type == REQUEST_ROUTE) && !is_cflag_set(REG_SAVE_NORPL_FL) && (send_reply(_m) < 0))
+	if ((route_type == REQUEST_ROUTE) && !is_cflag_set(REG_SAVE_NORPL_FL) && (reg_send_reply(_m) < 0))
 		return -1;
 
 	return ret;
@@ -788,7 +788,7 @@ error:
 	update_stat(rejected_registrations, 1);
 
 	if ((route_type == REQUEST_ROUTE) && !is_cflag_set(REG_SAVE_NORPL_FL) )
-		send_reply(_m);
+		reg_send_reply(_m);
 
 	return 0;
 }