In article <[email protected]>,
A J Stiles <[email protected]> wrote:
> 
> Also, as Asterisk runs on Unix-like systems, you don't really need the 
> Microsoft-style \r\n line endings.  Just an ordinary Unix-style \n on its own 
> will suffice.  It even saves a few CPU cycles on the far end  (not that 
> you'll 
> ever actually notice from within an interpreted script).

Text-based internet protocols (e.g. SMTP, FTP, etc) canonically use \r\n
as a line terminator, and AMI does likewise. It may well accept commands
with just \n as a line termiator (I haven't checked), but it certainly
sends \r\n to terminate lines that it outputs. IMHO, it's good to adhere
to the same convention in both directions.

Cheers
Tony
-- 
Tony Mountifield
Work: [email protected] - http://www.softins.co.uk
Play: [email protected] - http://tony.mountifield.org

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to