Rizwan Hasnani
2009-Nov-16 06:20 UTC
[asterisk-users] How to write the incoming stream to pipe/socket instead of .gsm file
Hi, I want to record the incoming call in asterisk and instead of writing the stream to a file..i want to write the stream to a pipe or socket. In Asterisks code, where i need to do the changes..? If anyone have done this thing before , plz help me out Thanks is advance.. Thanks & Regards,Rizwan HasnaniFinal Year Student - NUCES-FASTEmail id: k060049 at nu.edu.pkCell#: 0345-3235008 _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091116/6a445dcd/attachment.htm
Alex Balashov
2009-Nov-16 06:43 UTC
[asterisk-users] How to write the incoming stream to pipe/socket instead of .gsm file
Named pipes are presented the same way to calling applications as files, so you can just write to them as though they were a normal file. UNIX domain sockets and TCP sockets require socket system calls to connect to them for the purpose you are trying to achieve, which Asterisk does not offer natively. Needless to say, I recommend the use of a named pipe. Rizwan Hasnani wrote:> Hi, > > I want to record the incoming call in asterisk and instead of writing > the stream to a file..i want to write the stream to a pipe or socket. > > In Asterisks code, where i need to do the changes..? If anyone have done > this thing before , plz help me out > > Thanks is advance.. > > > Thanks & Regards, > Rizwan Hasnani > Final Year Student - NUCES-FAST > Email id: k060049 at nu.edu.pk > Cell#: 0345-3235008 > > > > ------------------------------------------------------------------------ > Hotmail: Trusted email with powerful SPAM protection. Sign up now. > <http://clk.atdmt.com/GBL/go/177141665/direct/01/> > > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671