Some more information... There are two distinct issues here... The truncation, and sometimes pipe errors...
The truncation happens all the time if you just run generic "soundcard list" repeatedly at 5 second intervals. I suspect it effects all commands, but just more obvious as "soundcard list" as a lot of text to return... I've run this on a slightly different Windows 7 machine, and in that case the error returned is "ERROR: Failed to connect pipe: Result too large" instead of "ERROR: Failed to connect pipe: Unknown" I've also been looking at the source code, stumbled across the following... /* * warning: on win32 ortp_server_pipe_accept_client() might return INVALID_HANDLE_VALUE without * any specific error, this happens when ortp_server_pipe_close() is called on another pipe. * This pipe api is not thread-safe. */ Is this relevant? Regards, Adam. > Following on from my previous post I've ditched attempts to write into > stdin of linphonec.exe, instead I'm using linphonecsh.exe > > However, I have found if I execute two commands in quick succession then > the results from the second command are unreliable, sometimes OK, > sometimes truncated and sometimes I get a pipe error... > > ==== Example foo.bat ==== > > "C:\Program Files (x86)\Linphone\bin\linphonecsh.exe" generic "webcam > list" > "C:\Program Files (x86)\Linphone\bin\linphonecsh.exe" generic "soundcard > list" > pause > > > ===== expected result seen sometimes ====== > > C:\adam\linphone-test>"C:\Program Files > (x86)\Linphone\bin\linphonecsh.exe" gene > ric "webcam list" > 0: StaticImage: Static picture > > C:\adam\linphone-test>"C:\Program Files > (x86)\Linphone\bin\linphonecsh.exe" gene > ric "soundcard list" > 0: WASAPI: Microphone (Realtek High Definition Audio) > 1: WASAPI: Stereo Mix (Realtek High Definition Audio) > 2: WASAPI: Speakers/Headphones (Realtek High Definition Audio) > 3: WINSND: Microphone (Realtek High Defini > 4: WINSND: Speakers/Headphones (Realtek Hi > 5: WINSND: Stereo Mix (Realtek High Defini > > =======sometimes second output is truncated...====== > > C:\adam\linphone-test>"C:\Program Files > (x86)\Linphone\bin\linphonecsh.exe" gene > ric "webcam list" > 0: StaticImage: Static picture > > C:\adam\linphone-test>"C:\Program Files > (x86)\Linphone\bin\linphonecsh.exe" gene > ric "soundcard list" > 0: WASAPI: Microphone (Realtek High Definition Audio) > > ===== sometimes second linphonecsh.exe reports a pipe error ===== > > C:\adam\linphone-test>"C:\Program Files > (x86)\Linphone\bin\linphonecsh.exe" gene > ric "webcam list" > 0: StaticImage: Static picture > > C:\adam\linphone-test>"C:\Program Files > (x86)\Linphone\bin\linphonecsh.exe" gene > ric "soundcard list" > ERROR: Failed to connect pipe: No error > > > I'm using linphone 3.9.1 on Windows 7. I just need a reliable programatic > way to control linphone externally like I had in 3.7.0. Please can someone > advise.... > > Many thanks, > > Adam. > > > > > > > > > > > _______________________________________________ > Linphone-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/linphone-users > _______________________________________________ Linphone-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/linphone-users
