Re: [Asterisk-Users] Write to text file in dialplan
On Thu, Dec 01, 2005 at 04:43:25PM -0800, Innocent Evil wrote: Sorry, to misinterpret. I also never tried this. Let me make a simple AGI script that will do this #!/usr/bin/env ruby message = ARGV.shift $stderr.puts \n#{Time.now} #{message} just put the above lines in a file in agi-bin direcotry say, 'Echo' and call it like this exten = s,7,AGI(Echo|Executing context, extension, priority) this will put the message in standard error, you will see it in your CLI screen of asterisk. But will run ruby, rather than simply /bin/sh (for every call) as in the System() case. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il | | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | | friend ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Write to text file in dialplan
Hi, Anyone has a way to write (append) to text file from the dial plan? Thanks, Andre ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Write to text file in dialplan
Yes, I have something like this in my extension.conf #include verizon.conf and in verizon.conf file have verizon related dialplan Thanks -- You don't have any choice, you already made it before you came here. -Original Message- From: [EMAIL PROTECTED] Sent: Thu, 01 Dec 2005 15:52:45 -0500 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Write to text file in dialplan Hi, Anyone has a way to write (append) to text file from the dial plan? Thanks, Andre ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Write to text file in dialplan
No I think what he means is more like a text file exists at /tmp/something for example, and you might ... exten = s,7,System(echo Call from ${CALLERIDNUM} /tmp/something) ... but I haven't tested it yet. Can someone confirm this? Innocent Evil wrote: Yes, I have something like this in my extension.conf #include verizon.conf and in verizon.conf file have verizon related dialplan Thanks -- You don't have any choice, you already made it before you came here. -Original Message- From: [EMAIL PROTECTED] Sent: Thu, 01 Dec 2005 15:52:45 -0500 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Write to text file in dialplan Hi, Anyone has a way to write (append) to text file from the dial plan? Thanks, Andre ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Mojo [EMAIL PROTECTED] Office Manger, Horan Company, LLC (907) 747- x112 ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Write to text file in dialplan
Sorry, to misinterpret. I also never tried this. Let me make a simple AGI script that will do this #!/usr/bin/env ruby message = ARGV.shift $stderr.puts \n#{Time.now} #{message} just put the above lines in a file in agi-bin direcotry say, 'Echo' and call it like this exten = s,7,AGI(Echo|Executing context, extension, priority) this will put the message in standard error, you will see it in your CLI screen of asterisk. for any kind of further help, feel free to post a note. Thanks, -- You don't have any choice, you already made it before you came here. -Original Message- From: [EMAIL PROTECTED] Sent: Thu, 01 Dec 2005 14:05:54 -0900 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Write to text file in dialplan No I think what he means is more like a text file exists at /tmp/something for example, and you might exten = s,7,System(echo Call from ${CALLERIDNUM} /tmp/something) but I haven't tested it yet. Can someone confirm this? Innocent Evil wrote: Yes, I have something like this in my extension.conf #include verizon.conf and in verizon.conf file have verizon related dialplan Thanks -- You don't have any choice, you already made it before you came here. -Original Message- From: [EMAIL PROTECTED] Sent: Thu, 01 Dec 2005 15:52:45 -0500 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Write to text file in dialplan Hi, Anyone has a way to write (append) to text file from the dial plan? Thanks, Andre ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Mojo [EMAIL PROTECTED] Office Manger, Horan Company, LLC (907) 747- x112 ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users