Changeset 23
- Timestamp:
- 03/23/07 20:52:51 (2 years ago)
- Files:
-
- trunk/op_server.pl (modified) (43 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/op_server.pl
r22 r23 4662 4662 $texto = "&unreachable,$tiempo"; 4663 4663 } 4664 elsif ( $state eq "Unregistered" ) { 4665 $estado_final = "noregistrado"; 4666 $texto = "¬registered"; 4667 } 4664 4668 elsif ( $state eq "Lagged" ) { 4665 4669 $estado_final = "noregistrado"; … … 5312 5316 $tab = $tab . "\t" if DEBUG; 5313 5317 5314 log_debug( "$heading start", 16 ) if DEBUG;5318 log_debug( "$heading start", 256 ) if DEBUG; 5315 5319 5316 5320 @fake_bloque = (); … … 5335 5339 foreach my $mensaje (@mensajes) { 5336 5340 if ( defined($mensaje) && $mensaje ne "" ) { 5337 log_debug( "$heading GOT $mensaje", 32) if DEBUG;5341 log_debug( "$heading GOT $mensaje", 256 ) if DEBUG; 5338 5342 delete $datos{""}; # Erase the hash with no uniqueid 5339 5343 ( $canal, $quehace, $dos, $uniqueid, $canalid ) = split( /\|/, $mensaje ); … … 5345 5349 5346 5350 if ( $canal =~ /\/PSEUDO/ ) { 5347 log_debug( "$heading Ignoring pseudo channel $canal", 32) if DEBUG;5351 log_debug( "$heading Ignoring pseudo channel $canal", 256 ) if DEBUG; 5348 5352 next; 5349 5353 } 5350 5354 5351 5355 if ( $dos eq "skip" ) { 5352 log_debug( "$heading skipping $canal $quehace (has skip)", 32) if DEBUG;5356 log_debug( "$heading skipping $canal $quehace (has skip)", 256 ) if DEBUG; 5353 5357 next; 5354 5358 } 5355 5359 5356 5360 if ( $quehace eq "" ) { 5357 log_debug( "$heading skipping $canal (empty quehace)", 32) if DEBUG;5361 log_debug( "$heading skipping $canal (empty quehace)", 256 ) if DEBUG; 5358 5362 next; 5359 5363 } 5360 5364 5361 log_debug( "$heading canal: $canal", 32) if DEBUG;5362 log_debug( "$heading quehace: $quehace", 32) if DEBUG;5363 log_debug( "$heading dos: $dos", 32) if DEBUG;5364 log_debug( "$heading uniqueid: $uniqueid", 32) if DEBUG;5365 log_debug( "$heading canalid: $canalid", 32) if DEBUG;5365 log_debug( "$heading canal: $canal", 256 ) if DEBUG; 5366 log_debug( "$heading quehace: $quehace", 256 ) if DEBUG; 5367 log_debug( "$heading dos: $dos", 256 ) if DEBUG; 5368 log_debug( "$heading uniqueid: $uniqueid", 256 ) if DEBUG; 5369 log_debug( "$heading canalid: $canalid", 256 ) if DEBUG; 5366 5370 5367 5371 $canalid =~ s/\s+//g; # Removes whitespace from CHANNEL-ID … … 5378 5382 $server = $uniqueid; 5379 5383 $server =~ s/(.*)-(.*)/$2/g; 5380 5381 log_debug( "$heading Quehace $quehace", 64 ) if DEBUG;5382 5384 5383 5385 my $buttontext = $dos; … … 5401 5403 $toda .= "$key = $val\n" 5402 5404 if ( $key ne "E" ) && ( defined($val) ); 5403 log_debug( "$heading \tAgrego $key = $val", 128) if DEBUG;5405 log_debug( "$heading \tAgrego $key = $val", 256 ) if DEBUG; 5404 5406 } 5405 5407 $toda .= " "; … … 5407 5409 5408 5410 if ( $quehace eq "corto" ) { 5411 log_debug( "$heading erasing datos{$uniqueid}", 256 ) if DEBUG; 5409 5412 delete $datos{$uniqueid}; 5413 5414 if ( $cuantos == 0 ) { 5415 5416 # We need to call it here because a channel with no buttons defined 5417 # might count for other button that exists, like meetmes, queues, etc. 5418 # So we only call it when there is NO match for buttons (because 5419 # we will call it again for existing matches) 5420 erase_all_sessions_from_channel( $canalid, $canal, $server ); 5421 } 5410 5422 } 5411 5412 log_debug( "$heading erasing datos{$uniqueid}", 128 ) if DEBUG;5413 5414 if ( $cuantos == 0 ) {5415 5416 # We delete all appeareance in sesbot because the channel without5417 # a button might occupy one slot in sesbot. If we have a button5418 # match then skip this step for later5419 erase_all_sessions_from_channel( $canalid, $canal, $server );5420 }5421 5422 5423 } 5423 5424 elsif ( $quehace eq "queueremoved" ) { … … 5452 5453 5453 5454 foreach $canal (@canaleja) { 5454 log_debug( "", 32) if DEBUG;5455 log_debug( "$heading canaleja LOOP; is $canal turn", 32) if DEBUG;5455 log_debug( "", 256 ) if DEBUG; 5456 log_debug( "$heading canaleja LOOP; is $canal turn", 256 ) if DEBUG; 5456 5457 5457 5458 if ( $dosoriginal ne "" ) { … … 5465 5466 5466 5467 if ( !defined( $buttons{"$server^$canal"} ) && !defined( $buttons{"-1^$canal"} ) ) { 5467 log_debug( "$heading \tThere are no buttons for $server^$canal, skipping...", 128) if DEBUG;5468 log_debug( "$heading \tThere are no buttons for $server^$canal, skipping...", 256 ) if DEBUG; 5468 5469 if (DEBUG) { 5469 5470 for ( keys %buttons ) { 5470 log_debug( "$heading \t\tKey $_", 128);5471 log_debug( "$heading \t\tKey $_", 256 ); 5471 5472 } 5472 5473 } … … 5477 5478 # except ocupado*, corto, setlink and unsetlink 5478 5479 if ( $canal =~ /^_/ ) { 5479 log_debug( "$heading canal $canal is regexp, quehace value = $quehace", 32) if DEBUG;5480 log_debug( "$heading canal $canal is regexp, quehace value = $quehace", 256 ) if DEBUG; 5480 5481 5481 5482 if ( $quehace =~ /registr/ … … 5483 5484 || $quehace =~ /^inf/ ) 5484 5485 { 5485 log_debug( "$heading IGNORING $quehace because it is a regexp match", 32) if DEBUG;5486 log_debug( "$heading IGNORING $quehace because it is a regexp match", 256 ) if DEBUG; 5486 5487 next; 5487 5488 } … … 5509 5510 my ( $canalsolo, $nrotrunk ) = split( /=/, $canal ); 5510 5511 $canal = $canalsolo . "=1" . $elcontexto; 5511 log_debug( "$heading quehace=$quehace, select 1st from trunk $canal", 32) if DEBUG;5512 log_debug( "$heading quehace=$quehace, select 1st from trunk $canal", 256 ) if DEBUG; 5512 5513 5513 5514 #next; 5514 5515 } 5515 5516 5516 # If we have a wildcardbutton with changelabel5517 # If we have a regexp button with changelabel 5517 5518 # and change led_color (the 1 after changelabel) 5518 5519 # change it so to not change the led color. 5519 5520 if ( $quehace =~ /changelabel1/ ) { 5520 log_debug( "$heading el regexp tiene changelabel1, lo cambio por changelabel0!", 32)5521 log_debug( "$heading regexp has changelabel1, lets change it to changelabel0!", 256 ) 5521 5522 if DEBUG; 5522 5523 $quehace = "changelabel0"; … … 5529 5530 5530 5531 # No channel? continue... 5531 log_debug( "$heading There is no command defined", 32) if DEBUG;5532 log_debug( "$heading There is no command defined", 256 ) if DEBUG; 5532 5533 5533 5534 } … … 5569 5570 $btnorinum = $buttons{"$serverindex^$canaleje"}; 5570 5571 } 5571 log_debug( "$heading call GEN_LINKED 1", 32) if DEBUG;5572 log_debug( "$heading call GEN_LINKED 1", 256 ) if DEBUG; 5572 5573 my $listabotones = generate_linked_buttons_list( $canaleje, $server ); 5573 5574 push @respuestas, "$btnorinum|linked|$listabotones"; … … 5575 5576 5576 5577 delete $datos{$uniqueid}; 5577 log_debug( "$heading REMOVING datos { $uniqueid }", 32) if DEBUG;5578 log_debug( "$heading REMOVING datos { $uniqueid }", 256 ) if DEBUG; 5578 5579 5579 5580 } 5580 5581 elsif ( $quehace eq "setlink" ) { 5581 5582 5582 log_debug( "$heading IF quehace = SETLINK", 32) if DEBUG;5583 log_debug( "$heading IF quehace = SETLINK", 256 ) if DEBUG; 5583 5584 my ( $nada1, $contexto1 ) = split( /\&/, $canal ); 5584 5585 if ( !defined($contexto1) ) { $contexto1 = ""; } … … 5588 5589 push @{ $linkbot{"$server^$canal"} }, ""; 5589 5590 pop @{ $linkbot{"$server^$canal"} }; 5590 log_debug( "$heading DEFINIENDO linkbot ($server^$canal)", 32) if DEBUG;5591 log_debug( "$heading DEFINIENDO linkbot ($server^$canal)", 256 ) if DEBUG; 5591 5592 } 5592 5593 … … 5598 5599 if ( $contexto1 eq $contexto2 ) { 5599 5600 push @{ $linkbot{"$server^$canal"} }, $dos; 5600 log_debug( "$heading AGREGO a linkbot{ $server^$canal} el valor $dos", 32)5601 log_debug( "$heading AGREGO a linkbot{ $server^$canal} el valor $dos", 256 ) 5601 5602 if DEBUG; 5602 5603 } … … 5607 5608 5608 5609 foreach my $valorad (@uniq) { 5609 log_debug( "$heading linkbot ($server^$canal) = $valorad", 32) if DEBUG;5610 log_debug( "$heading linkbot ($server^$canal) = $valorad", 256 ) if DEBUG; 5610 5611 } 5611 5612 my $btnorinum = $buttons{"$serverindex^$canal"}; 5612 log_debug( "$heading llamo a GENERATE_LINKED", 32) if DEBUG;5613 log_debug( "$heading llamo a GENERATE_LINKED", 256 ) if DEBUG; 5613 5614 $listabotones = generate_linked_buttons_list( $canal, $server ); 5614 5615 push @respuestas, "$btnorinum|linked|$listabotones"; 5615 5616 $botonlinked{$btnorinum} = $listabotones; 5616 log_debug( "$heading linkeado con $listabotones", 32) if DEBUG;5617 log_debug( "$heading ENDIF quehace = SETLINK", 32) if DEBUG;5617 log_debug( "$heading linkeado con $listabotones", 256 ) if DEBUG; 5618 log_debug( "$heading ENDIF quehace = SETLINK", 256 ) if DEBUG; 5618 5619 5619 5620 } 5620 5621 elsif ( $quehace eq "unsetlink" ) { 5621 log_debug( "$heading IF quehace = UNSETLINK", 32) if DEBUG;5622 log_debug( "$heading IF quehace = UNSETLINK", 256 ) if DEBUG; 5622 5623 my @final = (); 5623 5624 foreach my $msesion ( @{ $linkbot{"$server^$canal"} } ) { … … 5627 5628 } 5628 5629 $linkbot{"$server^$canal"} = [@final]; 5629 log_debug( "$heading ENDIF quehace = UNSETLINK", 32) if DEBUG;5630 log_debug( "$heading ENDIF quehace = UNSETLINK", 256 ) if DEBUG; 5630 5631 5631 5632 } … … 5648 5649 # Continue after cleaning internal state... 5649 5650 if ( $interno eq "" ) { 5650 log_debug( "$heading MISSING buttons($server^$canal), skipping...", 32) if DEBUG;5651 log_debug( "$heading MISSING buttons($server^$canal), skipping...", 256 ) if DEBUG; 5651 5652 next; 5652 5653 } 5653 5654 else { 5654 log_debug( "$heading INTERNO = $interno", 32) if DEBUG;5655 log_debug( "$heading INTERNO = $interno", 256 ) if DEBUG; 5655 5656 } 5656 5657 … … 5675 5676 # 5676 5677 if ( $canalid eq "" || $canalid =~ /zombie/i || $canalid =~ /(.*)-XXXX$/ ) { 5677 log_debug( "$heading ATENTION canalid = '$canalid', skipping...", 32 ) if DEBUG; 5678 log_debug( "$heading ATENTION canalid = '$canalid', skipping...", 256 ) if DEBUG; 5679 if ( $quehace eq "registrado" || $quehace eq "noregistrado" || $quehace eq "unreachable" ) { 5680 if ( defined( $botonregistrado{$interno} ) ) { 5681 if ( $botonregistrado{$interno} eq "$quehace|$dos" ) { 5682 print "registrado igual cambiaron($interno) = 0\n"; 5683 $cambiaron{$interno} = 0; 5684 } 5685 } 5686 else { 5687 $botonregistrado{$interno} = "$quehace|$dos"; 5688 $cambiaron{$interno} = 1; 5689 } 5690 } 5678 5691 } 5679 5692 else { … … 5681 5694 if ( $quehace eq "corto" ) { 5682 5695 5683 log_debug( "$heading CORTO interno $interno canal $canal", 32) if DEBUG;5696 log_debug( "$heading CORTO interno $interno canal $canal", 256 ) if DEBUG; 5684 5697 5685 5698 delete $botonpark{$interno}; … … 5708 5721 if ( $cuantos == 0 ) { 5709 5722 log_debug( "$heading CORTO y SE DESOCUPO estadoboton($interno) = free, sesbot($interno) esta vacio", 5710 32)5723 256 ) 5711 5724 if DEBUG; 5712 5725 $cambiaron{$interno} = 1; … … 5715 5728 else { 5716 5729 log_debug( "$heading CORTO y SIGUE OCUPADO estadoboton($interno) = busy, sesbot($interno) tiene algo", 5717 32)5730 256 ) 5718 5731 if DEBUG; 5719 5732 &print_sesbot(3); … … 5728 5741 5729 5742 log_debug( 5730 "$heading Y es distinto al ultimo estado $laststatus{$interno} ne $estadoboton{$interno}", 32)5743 "$heading Y es distinto al ultimo estado $laststatus{$interno} ne $estadoboton{$interno}", 256 ) 5731 5744 if DEBUG; 5732 5745 } … … 5749 5762 5750 5763 # quehace no es "corto" 5751 #5752 5764 5753 5765 # MAINTAINS SESBOT HASH … … 5762 5774 push @{ $sesbot{$interno} }, "$canalid"; 5763 5775 5764 log_debug( "$heading AGREGO a sesbot($interno) el valor $canalid", 32) if DEBUG;5776 log_debug( "$heading AGREGO a sesbot($interno) el valor $canalid", 256 ) if DEBUG; 5765 5777 5766 5778 my @uniq = unique( @{ $sesbot{$interno} } ); … … 5768 5780 5769 5781 foreach my $vavi ( @{ $sesbot{$interno} } ) { 5770 log_debug( "$heading sesbot($interno) tiene $vavi", 32) if DEBUG;5771 log_debug( "$heading --------------------", 32) if DEBUG;5782 log_debug( "$heading sesbot($interno) tiene $vavi", 256 ) if DEBUG; 5783 log_debug( "$heading --------------------", 256 ) if DEBUG; 5772 5784 } 5773 5785 } 5774 5786 5775 5787 if ( $canal =~ /^_/ && $quehace =~ /^ring/ ) { 5776 log_debug( "$heading TENGO UN WILDCARD ORIGINANDO LLAMADO! $canal $quehace $canalid", 32)5788 log_debug( "$heading have a regexp originating a call $canal $quehace $canalid, rename label", 256 ) 5777 5789 if DEBUG; 5778 if ( $quehace eq "ring" ) { 5779 5780 # $quehace = "ocupado1"; 5781 } 5790 5782 5791 if ( $ren_wildcard == 1 ) { 5783 5792 push @respuestas, "$interno|changelabel0|$canalid"; … … 5833 5842 } 5834 5843 5835 log_debug( "$heading Continuo proceso...", 32) if DEBUG;5844 log_debug( "$heading Continuo proceso...", 256 ) if DEBUG; 5836 5845 5837 5846 if ( $quehace =~ /changelabel/ ) { 5838 log_debug( "$heading quehace = changelabel", 32) if DEBUG;5847 log_debug( "$heading quehace = changelabel", 256 ) if DEBUG; 5839 5848 5840 5849 # Mantains state of label and led … … 5878 5887 elsif ( $quehace eq "park" ) { 5879 5888 5880 log_debug( "$heading quehace = park", 32) if DEBUG;5889 log_debug( "$heading quehace = park", 256 ) if DEBUG; 5881 5890 $dos =~ m/(.*)\((.*)\)/; 5882 5891 my $texto = $1; … … 5983 5992 && ( $quehace !~ /link/ ) ) 5984 5993 { 5985 $cambiaron{$interno} = 1; 5986 log_debug( "$heading es distinto de corto,ocupado,link pongo cambiaron=1", 32 ) if DEBUG; 5994 if ( !defined( $cambiaron{$interno} ) ) { 5995 $cambiaron{$interno} = 1; 5996 log_debug( "$heading es distinto de corto,ocupado,link pongo cambiaron=1", 256 ) if DEBUG; 5997 } 5987 5998 } 5988 5999 … … 5993 6004 5994 6005 if ( @{ $sesbot{$interno} } > 0 && $quehace eq 'corto' ) { 5995 log_debug( "$heading Still busy...sesbot($interno) is not empty, ignoring hangup", 32)6006 log_debug( "$heading Still busy...sesbot($interno) is not empty, ignoring hangup", 256 ) 5996 6007 if DEBUG; 5997 6008 } … … 6006 6017 my $quehace2 = $quehace; 6007 6018 6008 if ( $quehace2 eq "ring" ) {6009 6010 #$quehace2 = "ocupado";6011 }6012 6013 6019 next unless ( $quehace2 ne "setlink" ); 6014 6020 next unless ( $quehace2 ne "unsetlink" ); 6015 6021 6016 log_debug( "$heading sigo quehace quehace2", 32) if DEBUG;6022 log_debug( "$heading sigo quehace quehace2", 256 ) if DEBUG; 6017 6023 6018 6024 if ( $quehace2 eq "isagent" && $dos == -1 ) { 6019 log_debug( "$heading quehace2 = isagent", 32) if DEBUG;6025 log_debug( "$heading quehace2 = isagent", 256 ) if DEBUG; 6020 6026 push @mensajefinal, "$interno|changelabel1|original"; 6021 6027 push @mensajefinal, "$interno|settimer|0\@STOP"; … … 6027 6033 6028 6034 # clear the agent helper hashes. We do it here because we first need to map 6029 log_debug( "$heading quehace2 = agentlogoff", 32) if DEBUG;6035 log_debug( "$heading quehace2 = agentlogoff", 256 ) if DEBUG; 6030 6036 my $canalag = $canalid; 6031 6037 $canalag = substr( $canalag, 0, -5 ); … … 6038 6044 if ( $val eq $canalag ) { 6039 6045 delete $channel_to_agent{$key}; 6040 log_debug( "$heading borro channel_to_agent($key)", 64) if DEBUG;6046 log_debug( "$heading borro channel_to_agent($key)", 256 ) if DEBUG; 6041 6047 } 6042 6048 } … … 6045 6051 if ( defined( $agent_to_channel{"$server^$canalag"} ) ) { 6046 6052 delete $agent_to_channel{"$server^$canalag"}; 6047 log_debug( "$heading borro agent_to_channel($server^$canalag)", 64) if DEBUG;6053 log_debug( "$heading borro agent_to_channel($server^$canalag)", 256 ) if DEBUG; 6048 6054 } 6049 6055 … … 6060 6066 6061 6067 if ( $quehace2 !~ /isagent/ && $quehace2 !~ /^agentlogoff/ && $quehace2 !~ /^setclid/ ) { 6062 log_debug( "$heading pushing respuestas $interno|$quehace2|$dos", 32 ) if DEBUG; 6063 6064 # Discard events that we dont want to send 6065 # to flash clients 6066 # "isagent". "agentlogoff" 6067 # everything else is pushed 6068 if ( defined( $group_count{$interno} ) && $quehace2 eq "setclid" ) { 6069 log_debug( "$heading skip settext because groupcount is set", 32 ) if DEBUG; 6070 } 6071 else { 6072 if ( $quehace2 ne "" ) { 6073 push @respuestas, "$interno|$quehace2|$dos"; 6074 6075 #print "push $quehace2 en $interno quehace2\n"; 6068 6069 if ( defined( $cambiaron{$interno} ) && $cambiaron{$interno} == 1 ) { 6070 log_debug( "$heading pushing respuestas $interno|$quehace2|$dos", 256 ) if DEBUG; 6071 6072 # Discard events that we dont want to send 6073 # to flash clients 6074 # "isagent". "agentlogoff" 6075 # everything else is pushed 6076 if ( defined( $group_count{$interno} ) && $quehace2 eq "setclid" ) { 6077 log_debug( "$heading skip settext because groupcount is set", 256 ) if DEBUG; 6078 } 6079 else { 6080 if ( $quehace2 ne "" ) { 6081 push @respuestas, "$interno|$quehace2|$dos"; 6082 print "push $quehace2 en $interno quehace2\n"; 6083 } 6076 6084 } 6077 6085 } … … 6115 6123 } 6116 6124 if ( $quehace2 =~ /corto/ ) { 6117 log_debug( "$heading quehace2 corto", 32) if DEBUG;6125 log_debug( "$heading quehace2 corto", 256 ) if DEBUG; 6118 6126 6119 6127 my $canalsincontexto = $canal; … … 6139 6147 $iniagent = $channel_to_agent{"$server^$canalsincontexto"}; 6140 6148 } 6141 log_debug( "$heading quehace2 corto y es agente, pushing settimer y settext to idle", 32) if DEBUG;6149 log_debug( "$heading quehace2 corto y es agente, pushing settimer y settext to idle", 256 ) if DEBUG; 6142 6150 $botontimer{$interno} = time(); 6143 6151 $botontimertype{$interno} = "IDLE"; … … 6152 6160 else { 6153 6161 my $valip = ""; 6154 log_debug( "$heading quehace2 corto, no es agente, pongo timer en cero", 32) if DEBUG;6162 log_debug( "$heading quehace2 corto, no es agente, pongo timer en cero", 256 ) if DEBUG; 6155 6163 6156 6164 push @mensajefinal, "$interno|settimer|0\@STOP"; … … 6197 6205 $boton_paused{$interno} = $dos; 6198 6206 } 6199 if ( $quehace eq "agents_paused" ) {6207 elsif ( $quehace eq "agents_paused" ) { 6200 6208 $boton_agentpaused{$interno} = $dos; 6201 6209 } 6202 if ( $quehace eq "agents_ready" ) {6210 elsif ( $quehace eq "agents_ready" ) { 6203 6211 $boton_agentready{$interno} = $dos; 6204 6212 } 6205 if ( $quehace eq "agents_busy" ) {6213 elsif ( $quehace eq "agents_busy" ) { 6206 6214 $boton_agentbusy{$interno} = $dos; 6207 6215 } 6208 if ( $quehace eq "agents_logedof" ) {6216 elsif ( $quehace eq "agents_logedof" ) { 6209 6217 $boton_agentlogedof{$interno} = $dos; 6210 6218 } 6211 6219 6212 log_debug( "$heading Agrego mensaje final $interno|$quehace2|$dos", 32) if DEBUG;6220 log_debug( "$heading Agrego mensaje final $interno|$quehace2|$dos", 256 ) if DEBUG; 6213 6221 6214 6222 #if (defined($mensajefinal) && $interno ne "") … … 6217 6225 if ( exists $cambiaron{$interno} ) { 6218 6226 6219 log_debug( "$heading Existe cambiaron($interno) = $cambiaron{$interno}", 32)6227 log_debug( "$heading Existe cambiaron($interno) = $cambiaron{$interno}", 256 ) 6220 6228 if DEBUG; 6221 6229 6222 #push(@respuestas, $mensajefinal); 6223 foreach (@mensajefinal) { 6224 push @respuestas, $_; 6230 if ( $cambiaron{$interno} == 1 ) { 6231 foreach (@mensajefinal) { 6232 log_debug( "$heading pushing respuestas $_ because cambiaron($interno)=1", 256 ) if DEBUG; 6233 push @respuestas, $_; 6234 } 6225 6235 } 6226 6236 } 6227 6237 else { 6228 6229 log_debug( "$heading No existe cambiaron($interno)", 32 ) if DEBUG; 6230 foreach (@mensajefinal) { 6231 6232 # If the last status was not modified, avoid sending info 6233 # push @respuestas, $_; 6234 } 6238 log_debug( "$heading No existe cambiaron($interno)", 256 ) if DEBUG; 6235 6239 } 6236 6240 if ( $toda ne "" ) { … … 6251 6255 @respuestas = unique(@respuestas); 6252 6256 $cuantas = $#respuestas + 1; 6253 log_debug( "$heading end, return $cuantas", 16 ) if DEBUG;6257 log_debug( "$heading end, return $cuantas", 256 ) if DEBUG; 6254 6258 foreach my $valor (@respuestas) { 6255 log_debug( "$heading END SUB: returns $valor", 32) if DEBUG;6259 log_debug( "$heading END SUB: returns $valor", 256 ) if DEBUG; 6256 6260 } 6257 6261 $tab = substr( $tab, 0, -1 ) if DEBUG;
