Re: [Asterisk-Users] Re: makering.pl
Also check the first line of the file points to your location of perl. Usually /usr/bin/perl or /usr/local/bin/perl PS, chmod 755 makering.pl to make it executable. Regards, Adam On Tue, 2004-06-08 at 18:52, Tony Mountifield wrote: In article [EMAIL PROTECTED], Simon [EMAIL PROTECTED] wrote: Anyone used this ? I am having a bit of trouble got the right perms on makering.pl . Should that file be somewhere in particular ? use the reccommended command sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin but i get bash: makering.pl: command not found ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Re: makering.pl
Tony That was a quick reply ( it came in before the copy of my message ) This is what i just did sox file.wav -r 8000 -c 1 -t ul - rate | ./makering.pl ring1.bin Then got : bad interpreter: No such file or directory Ta Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tony Mountifield Sent: 08 June 2004 09:53 To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Re: makering.pl In article [EMAIL PROTECTED], Simon [EMAIL PROTECTED] wrote: Anyone used this ? I am having a bit of trouble got the right perms on makering.pl . Should that file be somewhere in particular ? use the reccommended command sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin but i get bash: makering.pl: command not found Hi Simon, yes, it's my prog. :-) The command assumes that makering.pl is in your PATH. If it is just in the current directory, and . is not in your path (as it shouldn't be, for security), then you need to say ./makering.pl You also need to make sure makering.pl has the x bit turned on, wherever the file is located. Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play: [EMAIL PROTECTED] - http://tony.mountifield.org ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Re: makering.pl
: bad interpreter: No such file or directory Install perl. Then call the program like this: perl makering.pl ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Re: makering.pl
Adam We had done 755 and the path is correct. still get error's : bad interpreter: No such file or directory Ta Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Adam Goryachev Sent: 08 June 2004 09:59 To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Re: makering.pl Also check the first line of the file points to your location of perl. Usually /usr/bin/perl or /usr/local/bin/perl PS, chmod 755 makering.pl to make it executable. Regards, Adam On Tue, 2004-06-08 at 18:52, Tony Mountifield wrote: In article [EMAIL PROTECTED], Simon [EMAIL PROTECTED] wrote: Anyone used this ? I am having a bit of trouble got the right perms on makering.pl . Should that file be somewhere in particular ? use the reccommended command sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin but i get bash: makering.pl: command not found ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Re: makering.pl
Thanks to all for the help The answered turned out to be some odd chr in the file that have for some strange reason only just showed , they were not there when i first uploaded makering.pl Ta Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Holger Schurig Sent: 08 June 2004 10:37 To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Re: makering.pl : bad interpreter: No such file or directory Install perl. Then call the program like this: perl makering.pl ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Re: makering.pl
Tony Ok got it to work now , thanks. I have put ring1.bin in the tftpboot folder on my tftp server and rebooted the phone but it has not taken the file. Do i need to do anything special with the phone etc ? Thanks Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tony Mountifield Sent: 08 June 2004 09:53 To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Re: makering.pl In article [EMAIL PROTECTED], Simon [EMAIL PROTECTED] wrote: Anyone used this ? I am having a bit of trouble got the right perms on makering.pl . Should that file be somewhere in particular ? use the reccommended command sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin but i get bash: makering.pl: command not found Hi Simon, yes, it's my prog. :-) The command assumes that makering.pl is in your PATH. If it is just in the current directory, and . is not in your path (as it shouldn't be, for security), then you need to say ./makering.pl You also need to make sure makering.pl has the x bit turned on, wherever the file is located. Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play: [EMAIL PROTECTED] - http://tony.mountifield.org ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Re: makering.pl
Tony Have searched for the new fimware , can't find it no links on grandstream . I am using Software Version:Program--1.0.4.30Bootloader--1.0.0.13 HTML--1.0.0.20 No option to set ring tone in there. Sorry for being a plank but i am just learning this stuff Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tony Mountifield Sent: 08 June 2004 12:14 To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Re: makering.pl In article [EMAIL PROTECTED], Simon [EMAIL PROTECTED] wrote: Tony Ok got it to work now , thanks. I have put ring1.bin in the tftpboot folder on my tftp server and rebooted the phone but it has not taken the file. Do i need to do anything special with the phone etc ? Not to make it take the file. Just make sure the file is less than 65536 bytes in size, if you are using 1.0.4.63 or 1.0.4.68. I have no experience of 1.0.5.0, but understand that the format may have changed slightly. I also heard a report that the filename in the file had to match the name of the file, so ring1.bin must be generated as ring1.bin and not just renamed from another file name. I haven't tested this theory. You then need to go to the phone's web page to tell it to use the new ringtone. Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play: [EMAIL PROTECTED] - http://tony.mountifield.org ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Re: makering.pl
On Tue, 8 Jun 2004, Simon wrote: We had done 755 and the path is correct. still get error's : bad interpreter: No such file or directory That is usually due to DOS linefeeds. Try to open it in vi and the run :set ff=unix :wq and try again -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Adam Goryachev Sent: 08 June 2004 09:59 To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Re: makering.pl Also check the first line of the file points to your location of perl. Usually /usr/bin/perl or /usr/local/bin/perl PS, chmod 755 makering.pl to make it executable. Regards, Adam On Tue, 2004-06-08 at 18:52, Tony Mountifield wrote: In article [EMAIL PROTECTED], Simon [EMAIL PROTECTED] wrote: Anyone used this ? I am having a bit of trouble got the right perms on makering.pl . Should that file be somewhere in particular ? use the reccommended command sox inputfile -r 8000 -c 1 -t ul - rate | makering.pl ring1.bin but i get bash: makering.pl: command not found ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Dave Weis I believe there are more instances of the abridgment [EMAIL PROTECTED] of the freedom of the people by gradual and silent encroachments of those in power than by violent and sudden usurpations.- James Madison ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users