<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 10, 2010, at 9:32 AM, Chris Gentle wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I have a little home-grown application that I use to pop up caller id information on my mythtv machine whenever a phone call comes into my asterisk box.&nbsp; I'm basically broadcasting a UDP packet with the caller id information from the asterisk machine and have a listener running on my mythtv box.&nbsp; When it receives the packet it pops up a dialog showing who is calling.&nbsp; Pretty simple.&nbsp; However, I would like to automatically pause the mythtv playback when the caller id event arrives.&nbsp; Is there a simple way to do that?&nbsp; I thought maybe I could fake an event with lirc and having it send a Pause.&nbsp; However, after digging through the man pages of the lirc stuff it wasn't as obvious as I thought.&nbsp; Any ideas on how to do this?&nbsp; Or is there something easier that I've completely missed?<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></blockquote><br></div><div>Use the telnet interface of MythTV to pause playback when your script receives a caller id packet.</div><div><a href="http://www.mythtv.org/wiki/Telnet_socket">http://www.mythtv.org/wiki/Telnet_socket</a></div><div><br></div><div>You'll have to script something in Python telnetlib or Perl Net::Telnet to handle the communication, but that shouldn't be to hard?</div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">--</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Regards,</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Scott Russell</font></p></div></div></span></div></span></div>
</div>
<br></body></html>