Changeset 21
- Timestamp:
- 03/23/07 18:18:19 (2 years ago)
- Files:
-
- trunk/op_server.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/op_server.pl
r20 r21 2105 2105 2106 2106 if ( $canal =~ /=/ ) { 2107 2107 2108 # If its a trunk button, erase instances 2108 2109 erase_instances_for_trunk_buttons( $canalsesion, $canal, $server ); … … 4370 4371 $unico_id = $canal; 4371 4372 $canalid = $canal . "-XXXX"; 4372 if ( defined( $hash_temporal{"Waiting"} ) ) { 4373 if ( defined( $hash_temporal{Waiting} ) ) { 4374 4373 4375 $estado_final = "voicemail"; 4374 $texto = $hash_temporal{"Waiting"}; 4375 4376 #$texto = 1; 4377 if ( $texto eq "1" ) { 4378 4379 # If it has new voicemail, ask for mailboxcount 4376 $texto = $hash_temporal{Waiting}; 4377 4378 if ( $texto eq "0" ) { 4379 4380 # If it does not have new voicemail, ask for mailboxcount to get old mails 4380 4381 send_command_to_manager( "Action: MailboxCount\r\nMailbox: $hash_temporal{Mailbox}\r\n\r\n", 4381 4382 $socket, 0, $astmanproxy_server ); 4382 4383 } 4384 else { 4385 4386 # If it has new voicemail, look for the New and Old headers 4387 if ( defined( $hash_temporal{New} ) ) { 4388 my $nuevos = $hash_temporal{"New"}; 4389 my $viejos = $hash_temporal{"Old"}; 4390 push @return, "$canal|voicemailcount|&newold,$nuevos,$viejos|$unico_id-$server|$canal-XXXX"; 4391 } 4392 else { 4393 send_command_to_manager( "Action: MailboxCount\r\nMailbox: $hash_temporal{Mailbox}\r\n\r\n", 4394 $socket, 0, $astmanproxy_server ); 4395 } 4396 } 4383 4397 } 4384 4398 else { 4399 4400 # This is the actual message count event 4385 4401 $estado_final = "voicemailcount"; 4386 4402 my $nuevos = $hash_temporal{"NewMessages"}; … … 5914 5930 if ( !defined( $group_count{$interno} ) ) { 5915 5931 $botonpermanenttext{$interno} = $dos; 5916 print "vino settext a digest permanent $interno = -$dos-\n";5917 5932 push @respuestas, "$interno|settext|$dos"; 5918 5933 } … … 6126 6141 $iniagent = $channel_to_agent{"$server^$canalsincontexto"}; 6127 6142 } 6128 log_debug( "$heading quehace2 corto y es agente, pushing settimer y settext to idle", 1) if DEBUG;6143 log_debug( "$heading quehace2 corto y es agente, pushing settimer y settext to idle", 32 ) if DEBUG; 6129 6144 $botontimer{$interno} = time(); 6130 6145 $botontimertype{$interno} = "IDLE"; … … 6139 6154 else { 6140 6155 my $valip = ""; 6141 log_debug( "$heading quehace2 corto, no es agente, pongo timer en cero", 1) if DEBUG;6156 log_debug( "$heading quehace2 corto, no es agente, pongo timer en cero", 32 ) if DEBUG; 6142 6157 6143 6158 push @mensajefinal, "$interno|settimer|0\@STOP";
