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

Owen Lynch owen.lynch at paragon.co.nz
Wed Sep 26 06:38:55 CEST 2012


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

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?

Owen Lynch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20120926/5ed06d57/attachment.html>

More information about the SIPBeyondVoIP mailing list