my $zombies = 0;
my $timeout = 30;
+my $smsc = undef;
+
my ( $help, $show_version, $cmdline_verbose, $signal_name, $i );
my $o_inbox = 1;
my $o_outbox = 1;
my $sms = shift;
my ( @EMailRcpt, @R, @S );
- my ( $rec, $CmdLine, $smsc, $res, $mail_subject, $out, $gammu_pid );
+ my ( $rec, $CmdLine, $used_smsc, $res, $mail_subject, $out, $gammu_pid );
my $rcpt = $sms->{'header'}->recipient();
my $emails = $sms->{'header'}->confirmemailaddress() ||
'-autolen' => $maxlen,
'-validity' => 'MAX',
);
- $smsc = $sms->{'header'}->smscnumber() || $sms->{'header'}->smsc();
- push @Params, '-smscnumber' => $smsc if $smsc;
- #$params .= sprintf( " -smscnumber %s", $smsc ) if $smsc;
+ $used_smsc = $sms->{'header'}->smscnumber() || $sms->{'header'}->smsc() || $smsc;
+ push @Params, '-smscnumber' => $used_smsc if $used_smsc;
+ #$params .= sprintf( " -smscnumber %s", $used_smsc ) if $used_smsc;
if ( $emails ) {
'maxlength' => 1500,
'countlocations' => 20,
'inboxfoldernr' => 1,
+ 'smsc' => '',
};
if ( -r $config_file ) {
$syslog_facility = $config{'syslogfacility'};
$syslog_ident = $config{'syslogidentification'};
+ $smsc = $config{'smsc'} ? $config{'smsc'} : undef;
+
%config = ();
undef $defaults;