Andre Courchesne - Consultant
2005-Dec-01 13:52 UTC
[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
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: courchea@net-forces.com > 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
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: mojo@horanappraisals.com > 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: courchea@net-forces.com > >>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 <mojo@horanappraisals.com> > Office Manger, Horan & Company, LLC > (907) 747-6666 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