--- AgentPhone.pm.org	2004-02-11 22:44:26.000000000 +0100
+++ AgentPhone.pm	2004-02-11 22:49:55.000000000 +0100
@@ -55,8 +55,18 @@
     my $Output;
     
     if (!$Self->{Subaction} || $Self->{Subaction} eq 'Created') {
+        my $BgColor = "";
+        if ($Self->{TicketID}) {
+            # --
+            # Check if ticket is locked and owned by current user
+            # --
+            my %Ticket = $Self->{TicketObject}->GetTicket(TicketID => $Self->{TicketID});
+            if($Self->{TicketObject}->IsTicketLocked(TicketID => $Self->{TicketID}) && $Ticket{OwnerID} == $Self->{UserID}) {
+                $BgColor = $Self->{ConfigObject}->Get('LockedTicketBackground');
+            }
+        } 
         # header
-        $Output .= $Self->{LayoutObject}->Header(Area => 'Agent', Title => 'Phone call');
+        $Output .= $Self->{LayoutObject}->Header(Area => 'Agent', Title => 'Phone call', BgColor => $BgColor);
         # if there is no ticket id!
         if (!$Self->{TicketID} || ($Self->{TicketID} && $Self->{Subaction} eq 'Created')) {
             # navigation bar
