I just had a thought. Is this something
that I should post to the Asterisk-Dev list? I didn’t want to cross post,
but I’m not sure to which list I should have originally posted it. Thanks,
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of List: This is my first manager client that I've
written so please bear with me: I am trying to write a C manager interface client to
interface with our CRM software. I am having an issue while reading the data
from the manager interface. I am writing this in C and I have the
following code: while(1) if(readCode < 0) printf("%s",buffer);
However, on one instance, and this is the
only one we can reproduce the results on, * puts out Event: ****** then stops,
Privilege: ********, then stops and then prints out the rest. This really
screws up my parsing as i normally parse using a tokenizer on \r\n\r\n and pass
each block off to a parsing method. I found this problem using the
following code: while(1) if(readCode < 0) printf("%s\n",buffer);
////////This is the main difference \n In this case I get output as follows: ... Event: Hangup Privilege: call,all Channel: SIP/1542200-543f ... In this case "Event: Hangup",
"Privilege: call, all", and the rest all get passed off to my
parser. Obviously a problem.
TIA, Joshua |
_______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users