[SIP Beyond VoIP] Redirecting sip-publish-presence stdout

Adrian Georgescu ag at ag-projects.com
Wed Sep 26 09:25:45 CEST 2012

That script is designed to work interactive in the console to allow input of user commands to change the published info. It is not likely to work the way you expect without modifications.


On Sep 26, 2012, at 6:38 AM, Owen Lynch wrote:

> Hi,
> I would like to use sip-publish-presence (and other commands) as python sub processes and parse the output. However sip-publish-presence blocks after writing 4K when output is directed anywhere but the console. Is there a way to prevent this?
> sip-publish-presence -s -a <account>
> This works OK, it displays all the initial PUBLISH messages  - output is >4K because of digest authentication challenges. Then it waits for user input.
> sip-publish-presence -s -a <account> >logfile
> This does not work OK, it writes only the first 4K of the initial PUBLISH messages. Then it waits for user input. The remainder of the initial PUBLISH messages is written after a user enters a command.
> Could this be fixed by flushing stdout after writes, somewhere in the SIP core engine?
> Thanks,
> Owen Lynch 
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip

More information about the SIPBeyondVoIP mailing list