On 08/31/2012 08:41 PM, NOSpaze wrote: > Hi. If I do: > > # telnet 127.0.0.1 5038 > > Trying 127.0.0.1... > Connected to localhost.localdomain (127.0.0.1). > Escape character is '^]'. > Asterisk Call Manager/1.0 > > Action: Login > ActionID: 1 > Username: youwanna > Secret: uwanna > > ... And asterisk responds: > > == Manager 'youwanna' logged on from 127.0.0.1 > > But if I use nc and do... > > # nc 127.0.0.1 5038 << EOF > > Action: Login > > ActionID: 1 > > Username: youwanna > > Secret: uwanna > > > > EOF > Asterisk Call Manager/1.0 > > ... Asterisk responds: > > == Connect attempt from '127.0.0.1' unable to authenticate > > Notice the TEXT is EXACTLY THE SAME (pasted in both cases) tried 762753 times or something less. Tcp port. > Why is that difference? Is nc sending a different string sequence or what? > I don't have an asterisk server to test with.... But I just tested with an IMAP server and nc worked just fine. Maybe add -o filename to record the session? Or, try using the -i parameter to delay sending data? -- Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org