[asterisk-dev] C Code to connect to Asterisk Manager Interface

Russell Bryant russell at digium.com
Sat Mar 1 02:12:45 CST 2008


Michael Henderson wrote:
>    *msg=(char)"Action: Login\r\nUsername: admin\r\nSecret:
> admin\r\nActionID: 1\r\n\r\n";

change this to ...

strncpy(msg, "Action: blahblahblah\r\n\r\n", sizeof(msg) - 1)

-- 
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.



More information about the asterisk-dev mailing list