Help for this page

Select Code to Download


  1. or download this
    # writing $line to the appropriate file for $callid. 
    # Filename is assumed to be "log.$callid" and is opened if not open
    ...
    }
    my $fh= $filehandle{$callid}; 
    print $fh $line;
    
  2. or download this
    sub process_sip {
        my ($user_data, $header, $packet) = @_;
    ...
        my $callid=$sip_pkt->get_header('call-id');
        if (exists $main_hash{$callid}) {
     ...