Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I love this site! It's so nice to know that there are so many people out there who are willing to share their knowledge..."

Geography

Where in the world do Tek-Tips members come from?
vacunita (Programmer)
30 Jan 12 14:02
I've been thrust into a position where I need to learn how this works.

There's a PHP script that manages the Asterisk service through AGI. Its not too complex at this point merely answering the phone and playing back audio files depending on button presses. I have however an issue with the button presses in that AGI sends 4 or 5 inputs to the PHP script prior to the actual data input that not only stop the audio playback, but also mess up the selections as the input is actually valid.  Code = 200 and result = 1. So there's no way of telling if the input is the user's or just AGi sending it.

Not sure if this is PHP, AGI or even Asterisk, but I really must find a way to either clear these inputs or ignore them.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 

vacunita (Programmer)
3 Feb 12 9:14
I finally figured it put in case anybody runs in to this issue. The php code that controls the dial plan was inherited. It was terribly designed. As I learned through testing, and Google, you can't send any output the normal way like you would if Php was producing a web page. As anything sent out gets sent to Asterisk as a command.  Which can cause major issues.   This means no echoes, prints, or anything else that may produce any sort of output .   

After searching through the different files I found a few print_r's scattered around causing issues.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close