Skip to content

Commit

Permalink
add parameter separator on registrar query aor info
Browse files Browse the repository at this point in the history
* explicitly set the separator

(cherry picked from commit a794f6c)
  • Loading branch information
lazedo committed Jun 29, 2023
1 parent fc5ed7b commit aec0f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kamailio/registrar-query.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ route[REGISTRAR_SEARCH_AOR_INFO]
xavp_params_implode("registrar_aor_info", "$var(info_params)");
$var(info_params) = $(var(info_params){s.rbefore,;});

$var(count) = $(var(info_params){param.count});
$var(count) = $(var(info_params){param.count,;});
$var(info_json) = "";
$var(sep) = "";
while($var(count) > 0) {
$var(idx) = $var(count) - 1;
$var(info_json) = $_s($var(info_json)$var(sep)"$(var(info_params){param.name,$var(idx)})" : $(var(info_params){param.valueat,$var(idx)}));
$var(info_json) = $_s($var(info_json)$var(sep)"$(var(info_params){param.name,$var(idx)})" : $(var(info_params){param.valueat,$var(idx),;}));
$var(count) = $var(count) - 1;
$var(sep) = " , ";
}
Expand Down

0 comments on commit aec0f25

Please sign in to comment.