[asterisk-bugs] [Asterisk 0017337]: flooding /var/spool/asterisk/outgoing/xxxxx.call: No such file or directory

Asterisk Bug Tracker noreply at bugs.digium.com
Sun May 16 04:48:15 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17337 
====================================================================== 
Reported By:                loloski
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17337
Category:                   PBX/pbx_spool
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-14 00:01 CDT
Last Modified:              2010-05-16 04:48 CDT
====================================================================== 
Summary:                    flooding /var/spool/asterisk/outgoing/xxxxx.call: No
such file or directory
Description: 
I'm trying to create a basic autodialer using a call files, i don't know if
this is a feature request or simply a minor annoyance bug, when i
disconnect the call on my apps using channel request hangup SIP/1XX-XXXXXXX
asterisk doesn't aware that there was a request and flood the screen. I
know i can't turn the warning on logger.conf, but i think that was not a
proper solution.

       
====================================================================== 

---------------------------------------------------------------------- 
 (0121936) loloski (reporter) - 2010-05-16 04:48
 https://issues.asterisk.org/view.php?id=17337#c121936 
---------------------------------------------------------------------- 
Sorry to post this as it is, this is too short script that i used to
generate the call files.

<?php

header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );


        if ( isset($_REQUEST['phone']) && isset($_REQUEST['agent']) ) {

                $phone = htmlentities($_REQUEST['phone']);
                $agent = htmlentities($_REQUEST['agent']);
                $c = uniqid (rand (),true);
                $filename = $c .".call";
                $callfiles = "/var/spool/asterisk/tmpdir/$filename";
                $destfiles = "/var/spool/asterisk/outgoing/$filename";
                $fh = fopen($callfiles, 'w') or die("can't open file");
                $stringData = "Channel: Local/$phone at outgoing/nj\n";
                fwrite($fh, $stringData);
                $stringData = "MaxRetries: 0\n";
                fwrite($fh, $stringData);
                $stringData = "WaitTime: 30\n";
                fwrite($fh, $stringData);
                $stringData = "RetryTime: 15\n";
                fwrite($fh, $stringData);
                $stringData = "Context: confroom\n";
                fwrite($fh, $stringData);
                $stringData = "Extension: $agent\n";
                fwrite($fh, $stringData);
                $stringData = "Priority: 1\n";
                fwrite($fh, $stringData);
                fclose($fh);
                rename($callfiles,$destfiles) or die("can't move the call
files");

        } else {

                        print "You are not allowed to visit this page
directly\n";

                   }


?> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-16 04:48 loloski        Note Added: 0121936                          
======================================================================




More information about the asterisk-bugs mailing list