<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Nevermind, <br><br>I have solved it my self. this script wring some logs in /tmp and somehow logfile was already there. so just deleted and it works!<br><br>-S<br><br><hr id="stopSpelling">From: satish_lx@hotmail.com<br>To: asterisk-users@lists.digium.com<br>Date: Tue, 5 Apr 2011 16:35:37 +0000<br>Subject: [asterisk-users] allpage issu on asterisk 1.8.3.x<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
Hey Guys!<br><br>I have perl script for allpage which is working fine with asterisk 1.8.2.3 version but same script same dialplan wouldn't working on asterisk-1.8.3.2 is there anything changes ?<br><br>If i run this script from command like it works but not from asterisk dialplan. This script nothing but just connecting AMI interface and using Variable: SIPADDHEADER=Alert-Info: Ring Answer variable to call all phones and putting them in meetme conf room.<br><br>following is sample of script ( I am pasting half script ) <br><br># Now, we have an array (@tocall) with all valid SIP extensions.<br>while (my $sipxtn = shift @tocall) {<br> print "VERBOSE \"Doing $sipxtn\" 0\n";<br># Open connection to AGI<br> my $tn = new Net::Telnet ( Port => $mgrport,<br> Prompt => '/.*[\$%#>] $/',<br> Output_record_separator => '',<br> Input_Log=> "/tmp/input.log",<br> Output_Log=> "/tmp/output.log",<br> Errmode => 'return', );<br><br> $tn->open("127.0.0.1");<br> $tn->waitfor('/0\n$/');<br> $tn->print("Action: Login\n");<br> $tn->print("Username: $mgruser\n");<br> $tn->print("Secret: $mgrpass\n");<br> $tn->print("Events: off\n\n");<br> my ($pm, $m) = $tn->waitfor('/Authentication (.+)\n\n/');<br> if ($m =~ /Authentication failed/) {<br> print "VERBOSE \"Incorrect MGRUSER or MGRPASS - unable to connect to manager interface\" 0\n";<br> exit;<br> }<br> $tn->print("Action: Originate\nChannel: SIP/$sipxtn\nContext: all-page\nPriority: 1\n");<br> $tn->print("Variable: SIPADDHEADER=Alert-Info: Ring Answer\n");<br> $tn->print("Extension: s\n");<br> $tn->print("CallerID: System Page\n");<br> $tn->print("Action: Logoff\n\n");<br> $tn->close;<br>}<br><br><br>-S<br><br>                                           
<br>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users                                            </body>
</html>