4 Knowledge Base

 

 TelecomTrainning.net > Knowledge Base
 Viewing KB Article
Good Morning, - Please register or - log-in to your account.
Search
Search   Saved Questions   Ask a question
Keywords 
 
Available categories
LTE
100 of Questions in LTE
CCNA Certification
CCNA Sample Q & A (1000 + Q &A)
(Network +) Certification
(Network +) Sample Q & A (1000 + Q &A)
Networking
General/Interview Q& A on Networking
Home Networking
General/Interview Q& A on Networking
VOIP, SIP & Asterisk
Q & A on VOIP,Ethereal, SIP & Asterisk
Telecom Test Equipments
Q & A on Telecom Test Equipment
PSTN / Wireline
General / Interview Q & A on PSTN / Wireline
LTE, Wireless, 3G ,Diameter and HSS
General/Interview Q & A on LTE, Wireless, 3G ,Diameter and HSS
Telecom General
Any Q & A in Telecom in General

Top Questions
Friends, Describe Secure storage and distribution of A-Keys?
what is the difference between E1 signal & Ethernet signal ?
How do I monitor SS7 Traffic in spectra2?
Can you tell me about PBGT?
Explain me the difference between a repeater, bridge and router? Relate this to the OSI model.
What is the difference between BRI & PRI ?
Guys what is the purpose of Umbrella Cell Approach in GSM ?
how can we explain media gateway in MSc?
What is the difference between Electrical-tilt and Mechanical-tilt of an antenna?
What is GGSN?
What is BSC?
What is demarc point?
Can any one explain me how sms flow will work using ss7 network ?( from physical layer to application layer)
why cellphone towers are painted in red and white?
Explain SLTA and SLTM messages in MTP3?
Hi guys what is WAP?
wat is the difference betweem MSC & GMSC, & MSS & GCS?
what is EDAp? what is the functions of EDAP?
What is a circuit id?
what is sdh?

How Are STDIN, STDOUT, and STDERR used in Asterisk?
james_winston 28-August-2008 04:09:56 PM

Comments


All of the communications between Asterisk and the AGI program happen over STDIN and STDOUT (and, of course, STDERR)
Posted by adalson007


STDIN , STDOUT , and STDERR are channels by which programs in Unix-like environments receive information from and send information to external programs. STDIN, or standard input, is the information that is sent to the program, either from the keyboard or from another program. In our case, information coming from Asterisk itself comes in on the program's STDIN file handle. STDOUT, or standard output, is the file handle that the AGI script uses to pass information back to Asterisk. Finally, the AGI script can use the STDERR (standard error) file handle to write error messages to the Asterisk console.
Posted by james_winston


What Are STDIN, STDOUT, and STDERR?
STDIN , STDOUT , and STDERR are channels by which programs in Unix-like environments
receive information from and send information to external programs. STDIN, or
standard input, is the information that is sent to the program, either from the keyboard
or from another program. In our case, information coming from Asterisk itself comes
in on the program’s STDIN file handle. STDOUT, or standard output, is the file handle that
the AGI script uses to pass information back to Asterisk. Finally, the AGI script can
use the STDERR (standard error) file handle to write error messages to the Asterisk
console.
Let’s sum up these three communications concepts:
• An AGI script reads from STDIN to get information from Asterisk.
• An AGI script writes data to STDOUT to send information to Asterisk.
• An AGI script may write data to STDERR to send debug information to the Asterisk
console.
Posted by sagitraz

Q&A Rating

Q&A Rating
Rate This Question and Answer

Related Questions
Friends I have a doubt that, what is area code?
 
Which protocol does Ping use?
 
Please give me the command so I can capture tcpdump just for one IP in Asterisk?


Search questions via popularity
Top viewed questions  Top emailed questions  Most printed questions  Most saved questions
 
Copyright © Telecom Training, All Rights Reserved