rr: different function parameter name to be different than global variable
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 5 May 2020 06:05:07 +0000 (08:05 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 5 May 2020 06:05:07 +0000 (08:05 +0200)
src/modules/rr/rr_mod.c

index 236373a..71f5fcc 100644 (file)
@@ -303,16 +303,16 @@ static int ki_loose_route_preloaded(sip_msg_t *msg)
 }
 
 /**
 }
 
 /**
- * common wrapper for record_route(msg, params)
+ * common wrapper for record_route(msg, sparams)
  */
  */
-static int ki_record_route_params(sip_msg_t *msg, str *params)
+static int ki_record_route_params(sip_msg_t *msg, str *sparams)
 {
        if (msg->msg_flags & FL_RR_ADDED) {
                LM_ERR("Double attempt to record-route\n");
                return -1;
        }
 
 {
        if (msg->msg_flags & FL_RR_ADDED) {
                LM_ERR("Double attempt to record-route\n");
                return -1;
        }
 
-       if ( record_route( msg, params )<0 )
+       if ( record_route( msg, sparams )<0 )
                return -1;
 
        if(get_route_type()!=BRANCH_ROUTE)
                return -1;
 
        if(get_route_type()!=BRANCH_ROUTE)