|
|
@ -60,7 +60,7 @@ sub create_location {
|
|
|
|
my($contact, $q, $expires, $flags, $cflags) = @$params{qw/contact q expires flags cflags/};
|
|
|
|
my($contact, $q, $expires, $flags, $cflags) = @$params{qw/contact q expires flags cflags/};
|
|
|
|
my $aor = get_aor($c, $prov_subscriber);
|
|
|
|
my $aor = get_aor($c, $prov_subscriber);
|
|
|
|
my $path = _compose_location_path($c, $prov_subscriber, $params);#compose path from path or socket from params
|
|
|
|
my $path = _compose_location_path($c, $prov_subscriber, $params);#compose path from path or socket from params
|
|
|
|
my $socket = $params{socket} // 0;
|
|
|
|
my $socket = $params->{socket} // 0;
|
|
|
|
|
|
|
|
|
|
|
|
if ($expires) {
|
|
|
|
if ($expires) {
|
|
|
|
$expires = NGCP::Panel::Utils::DateTime::from_string($expires)->epoch;
|
|
|
|
$expires = NGCP::Panel::Utils::DateTime::from_string($expires)->epoch;
|
|
|
|