|
|
@ -10,7 +10,7 @@ $host ||= '127.0.0.1'; |
|
|
|
$port ||= '5038'; |
|
|
|
$port ||= '5038'; |
|
|
|
$user ||= 'callback'; |
|
|
|
$user ||= 'callback'; |
|
|
|
$secret ||= 'secret'; |
|
|
|
$secret ||= 'secret'; |
|
|
|
$cid ||= ''; |
|
|
|
$defaultcid ||= ''; |
|
|
|
$webhost ||= ''; |
|
|
|
$webhost ||= ''; |
|
|
|
|
|
|
|
|
|
|
|
my $q = new CGI; |
|
|
|
my $q = new CGI; |
|
|
@ -73,7 +73,8 @@ print $q->header, |
|
|
|
if ($q->param()) { |
|
|
|
if ($q->param()) { |
|
|
|
my $nback = $q->param('nback') || $ENV{'HTTP_USER_EXTENSION'}; |
|
|
|
my $nback = $q->param('nback') || $ENV{'HTTP_USER_EXTENSION'}; |
|
|
|
my $ndest = $q->param('ndest'); |
|
|
|
my $ndest = $q->param('ndest'); |
|
|
|
my $cid = $q->param('cid') || $cid; |
|
|
|
my $cid = $q->param('cid') || $ENV{'HTTP_USER_TELEPHONE'}; |
|
|
|
|
|
|
|
$cid = $defaultcid if ($cid eq ''); |
|
|
|
|
|
|
|
|
|
|
|
$nback =~ s/[\s\(\)\.<>]//g; |
|
|
|
$nback =~ s/[\s\(\)\.<>]//g; |
|
|
|
$ndest =~ s/[\s\(\)\.<>]//g; |
|
|
|
$ndest =~ s/[\s\(\)\.<>]//g; |
|
|
|