[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]

Re: [Flash Operator Panel] CallerID not functional on Asterisk 1.4.3 - patches included


  • From: Nicolás Gudiño <nicolas@xxxxxxxxxxxx>
  • Date: Fri, 15 Jun 2007 19:47:51 -0300
  • Mailing-list: contact operator_panel-help@lists.house.com.ar; run by ezmlm

Hi Caio,

I am using 1.4.4, and callerid works fine with FOP SVN, also I did not experience the problem with more than 10 buttons and astdbkey... Anyways, if you are submitting a patch, please do so in unified output (diff -u), as I really did not understand this code.

Callerid handling is tricky, remember that FOP have to work with Asterisk 1.0, Asterisk 1.2 and Asterisk 1.4 and I don't want to break any other version if possible.

Best regards,


Caio Zanolla wrote:
CallerID wont work on asterisk 1.4.3 so I've made a few changes to sort it out.
Now i got caller id shown on calee button during ring state as well as after connected.
Not sure if it'll break things further as its not in production, yet.
Nicolás?


-----snip
# We use this hashes to store the remote callerid for CVS-HEAD
my $key = "$server^$hash_temporal{'Destination'}";
my $dorigen = "";
my $ddestino = "";
my $dnada = "";
$remote_callerid{$key} = $hash_temporal{"CallerID"}; if ( defined( $hash_temporal{"CallerIDNum"} ) ) {
$remote_callerid{$key} = $hash_temporal{"CallerIDNum"};
} $remote_callerid_name{$key} = $hash_temporal{"CallerIDName"};
-----snip


-----snip
       my $clid1 = "";
       my $clid2 = "";

       if ( defined( $datos{$uniqueid2}{"Callerid"} ) ) {
           $clid1 = $datos{$uniqueid2}{"Callerid"};
       }
       if ( defined( $datos{$uniqueid2}{"CallerID"} ) ) {
           $clid1 = $datos{$uniqueid2}{"CallerID"};
       }
       if ( defined( $datos{$uniqueid2}{"CallerIDNum"} ) ) {
           $clid1 = $datos{$uniqueid2}{"CallerIDNum"};
       }              if ( defined( $datos{$uniqueid1}{"Callerid"} ) ) {
           $clid2 = $datos{$uniqueid1}{"Callerid"};
       }
       if ( defined( $datos{$uniqueid1}{"CallerID"} ) ) {
           $clid2 = $datos{$uniqueid1}{"CallerID"};
       }
       if ( defined( $datos{$uniqueid1}{"CallerIDNum"} ) ) {
           $clid2 = $datos{$uniqueid1}{"CallerIDNum"};
       }
       my $sclidname1 = "";
       my $sclidname2 = "";
-----snip



Follow-Ups from:
Caio Zanolla

References to:
Caio Zanolla

[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]