Procházet zdrojové kódy

osp: replace STR_PARAM with PARAM_STRING

Alekzander Spiridonov před 11 roky
rodič
revize
c3951098b5
1 změnil soubory, kde provedl 22 přidání a 22 odebrání
  1. 22 22
      modules/osp/osp_mod.c

+ 22 - 22
modules/osp/osp_mod.c

@@ -94,22 +94,22 @@ static cmd_export_t cmds[]={
 };
 
 static param_export_t params[]={
-    {"sp1_uri",                        STR_PARAM, &_osp_sp_uris[0]},
-    {"sp2_uri",                        STR_PARAM, &_osp_sp_uris[1]},
-    {"sp3_uri",                        STR_PARAM, &_osp_sp_uris[2]},
-    {"sp4_uri",                        STR_PARAM, &_osp_sp_uris[3]},
-    {"sp5_uri",                        STR_PARAM, &_osp_sp_uris[4]},
-    {"sp6_uri",                        STR_PARAM, &_osp_sp_uris[5]},
-    {"sp7_uri",                        STR_PARAM, &_osp_sp_uris[6]},
-    {"sp8_uri",                        STR_PARAM, &_osp_sp_uris[7]},
-    {"sp9_uri",                        STR_PARAM, &_osp_sp_uris[8]},
-    {"sp10_uri",                       STR_PARAM, &_osp_sp_uris[9]},
-    {"sp11_uri",                       STR_PARAM, &_osp_sp_uris[10]},
-    {"sp12_uri",                       STR_PARAM, &_osp_sp_uris[11]},
-    {"sp13_uri",                       STR_PARAM, &_osp_sp_uris[12]},
-    {"sp14_uri",                       STR_PARAM, &_osp_sp_uris[13]},
-    {"sp15_uri",                       STR_PARAM, &_osp_sp_uris[14]},
-    {"sp16_uri",                       STR_PARAM, &_osp_sp_uris[15]},
+    {"sp1_uri",                        PARAM_STRING, &_osp_sp_uris[0]},
+    {"sp2_uri",                        PARAM_STRING, &_osp_sp_uris[1]},
+    {"sp3_uri",                        PARAM_STRING, &_osp_sp_uris[2]},
+    {"sp4_uri",                        PARAM_STRING, &_osp_sp_uris[3]},
+    {"sp5_uri",                        PARAM_STRING, &_osp_sp_uris[4]},
+    {"sp6_uri",                        PARAM_STRING, &_osp_sp_uris[5]},
+    {"sp7_uri",                        PARAM_STRING, &_osp_sp_uris[6]},
+    {"sp8_uri",                        PARAM_STRING, &_osp_sp_uris[7]},
+    {"sp9_uri",                        PARAM_STRING, &_osp_sp_uris[8]},
+    {"sp10_uri",                       PARAM_STRING, &_osp_sp_uris[9]},
+    {"sp11_uri",                       PARAM_STRING, &_osp_sp_uris[10]},
+    {"sp12_uri",                       PARAM_STRING, &_osp_sp_uris[11]},
+    {"sp13_uri",                       PARAM_STRING, &_osp_sp_uris[12]},
+    {"sp14_uri",                       PARAM_STRING, &_osp_sp_uris[13]},
+    {"sp15_uri",                       PARAM_STRING, &_osp_sp_uris[14]},
+    {"sp16_uri",                       PARAM_STRING, &_osp_sp_uris[15]},
     {"sp1_weight",                     INT_PARAM, &(_osp_sp_weights[0])},
     {"sp2_weight",                     INT_PARAM, &(_osp_sp_weights[1])},
     {"sp3_weight",                     INT_PARAM, &(_osp_sp_weights[2])},
@@ -126,11 +126,11 @@ static param_export_t params[]={
     {"sp14_weight",                    INT_PARAM, &(_osp_sp_weights[13])},
     {"sp15_weight",                    INT_PARAM, &(_osp_sp_weights[14])},
     {"sp16_weight",                    INT_PARAM, &(_osp_sp_weights[15])},
-    {"device_ip",                      STR_PARAM, &_osp_device_ip},
-    {"device_port",                    STR_PARAM, &_osp_device_port},
-    {"private_key",                    STR_PARAM, &_osp_private_key},
-    {"local_certificate",              STR_PARAM, &_osp_local_certificate},
-    {"ca_certificates",                STR_PARAM, &_osp_ca_certificate},
+    {"device_ip",                      PARAM_STRING, &_osp_device_ip},
+    {"device_port",                    PARAM_STRING, &_osp_device_port},
+    {"private_key",                    PARAM_STRING, &_osp_private_key},
+    {"local_certificate",              PARAM_STRING, &_osp_local_certificate},
+    {"ca_certificates",                PARAM_STRING, &_osp_ca_certificate},
     {"enable_crypto_hardware_support", INT_PARAM, &_osp_crypto_hw},
     {"validate_callid",                INT_PARAM, &(_osp_validate_callid)},
     {"token_format",                   INT_PARAM, &_osp_token_format},
@@ -142,7 +142,7 @@ static param_export_t params[]={
     {"max_destinations",               INT_PARAM, &_osp_max_dests},
     {"use_rpid_for_calling_number",    INT_PARAM, &_osp_use_rpid},
     {"redirection_uri_format",         INT_PARAM, &_osp_redir_uri},
-    {"source_networkid_avp",           STR_PARAM, &_osp_snid_avp},
+    {"source_networkid_avp",           PARAM_STRING, &_osp_snid_avp},
     {0,0,0} 
 };