Sorry my changes didn't solve the problem;  for reference, this is what I
did:
3360,3367c3360
<         my $key;
<         if ( "$server^$hash_temporal{'Destination'}") {
<            $key = "$server^$hash_temporal{'Destination'}";
<            }
<         else {
<            $key="0";
<            }
<
---
>         my $key      = "$server^$hash_temporal{'Destination'}";
3374,3377c3367,3368
<             if ( $chanvar{ $hash_temporal{"SrcUniqueID"} }{$var} ) {
<                if ( defined( $chanvar{ $hash_temporal{"SrcUniqueID"}
}{$var} )                     ) {
<                    $passvar{ $hash_temporal{"DestUniqueID"} }{$var} =
$chanvar                    { $hash_temporal{"SrcUniqueID"} }{$var};
<                }
---
>             if ( defined( $chanvar{ $hash_temporal{"SrcUniqueID"} }{$var}
) )                     {
>                 $passvar{ $hash_temporal{"DestUniqueID"} }{$var} =
$chanvar{ $                    hash_temporal{"SrcUniqueID"} }{$var};
3383,3386d3373
<          if ( ! $hash_temporal{'Source'} =~ m/^Local/i ) {
<             $hash_temporal{'Source'} = 'Remote';
<             }
Since the messages were coming from missing elements of $hash_temporal, this
seemed like a reasonable approach to the problem.


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to