Source
x
#!/usr/bin/perl
use qw(:standard);
use ;
my $gateway = "sofia/gateway/my_gateway/";
my $aleg_cid_num = "0987654321";
my $bleg_cid_num = "1234567890";
my $q = new ;
my $c = new :: ("localhost", "8021", "ClueCon");
print $q-> ;
if($q-> ()) {
my $numbera = $q-> ('numbera');
my $numberb = $q-> ('numberb');
my $e = $c-> ("api originate {ignore_early_media=true,origination_caller_id_number=$aleg_cid_num,effective_caller_id_number=$bleg_cid_num}$gateway$numbera &bridge($gateway$numberb)");
print "API Sent:" . $e-> ();
exit;
}
print $q-> , $q-> ("Click to Call Example"), ,
"First Party:", $q-> ('numbera'), ,
"Second Party:", $q-> ('numberb'), ,
$q-> , $q-> ;