|
|
|
@ -107,7 +107,6 @@ route[CHECK_MEDIA_SERVERS] |
|
|
|
if(kazoo_json_keys($var(Payload), "Media-Servers.$var(MediaKey).Interfaces", "$avp(ProfileKeys)") == 1) { |
|
|
|
$var(ProfileCount) = $cnt($avp(ProfileKeys)); |
|
|
|
$var(ProfileIdx) = 0; |
|
|
|
xlog("L_INFO", "nodes|media|$var(Node) profile count for $(avp(MediaKeys)[$var(Idx)]) is : $var(ProfileCount)\n"); |
|
|
|
while( $var(ProfileIdx) < $var(ProfileCount) ) { |
|
|
|
$var(MediaRawUrl) = $(var(Payload){kz.json,Media-Servers.$var(MediaKey).Interfaces.$(avp(ProfileKeys)[$var(ProfileIdx)]).URL}); |
|
|
|
$var(MediaUrl) = $(var(MediaRawUrl){re.subst,/^sip:(.*)@(.*)/sip:\2/}); |
|
|
|
|