|
|
|
@ -122,7 +122,7 @@ route[CHECK_MEDIA_SERVERS] |
|
|
|
if($(var(Payload){kz.json,Media-Servers}) == "") { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$var(Media) = $(var(Payload){kz.json,Media-Servers}); |
|
|
|
$var(Zone) = $(var(Payload){kz.json,AMQP-Broker-Zone}); |
|
|
|
|
|
|
|
@ -139,7 +139,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(MediaProfile) = $(avp(ProfileKeys)[$var(ProfileIdx)]); |
|
|
|
$var(MediaRawUrl) = $(var(Payload){kz.json,Media-Servers.$var(MediaKey).Interfaces.$var(MediaProfile).URL}); |
|
|
|
@ -151,8 +150,6 @@ route[CHECK_MEDIA_SERVERS] |
|
|
|
}; |
|
|
|
$var(MediaExpire) = ($(var(Payload){kz.json,Expires}{s.int}) / 1000) + NODES_FUDGE_FACTOR; |
|
|
|
$shtex(media=>$var(MediaUrl)::count) = $var(MediaExpire); |
|
|
|
## xlog("L_INFO", "nodes|media|$var(Node) expire is $var(MediaExpire)\n"); |
|
|
|
|
|
|
|
$var(ProfileIdx) = $var(ProfileIdx) + 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|