[mythtv-users] Little Off Topic: FreePBX -> Growl Notifications

Scott and Nicole Harris snharris99 at live.com
Mon Mar 19 13:32:11 UTC 2012




> >I installed trunk on my laptop today to play around with this.  The command
> >line method (mythmessage --message_text=Hello World!) seems to work fine.
> >However, the url method (which I think will ultimately make sending my
> >caller id freepbx almost embarrassingly simple) does not seem to work...
> 
> 
> Well, I got it working, though I won't be implementing anything until trunk 
> becomes release and there's a timeout option in MythMessage.  The timeout 
> feature is a bit key, because I have frontends hooked up to both my master 
> and secondary backends, so without a timeout, Caller ID messages could start 
> stacking up on them before someone turned them on for use.
> 
> FWIW, for posterity, I came up with two ways of handling it.....
> -SNIP-

Resurrecting this a bit.
http://backendHostName:6544/Myth/SendMessage?Message="Call From: somebody etc." no longer appears to work, so I found this http://www.mythtv.org/pipermail/mythtv-users/2012-January/327022.html indicating the reason why.  I found that this mythutil --message --message_text "Hello World"  --timeout 30 --bcastaddr 192.168.25.32 works fine.
My intention was to have a simple php page on my backend that I would call from my pbx with the callerid details in the query string.  My php is pretty weak (being generous) and I haven't been able to get exec(), shell(), etc working with the mythutil command, though they work fine with other command like ls.  Can anyone offer any advice?
I am thinking somehthing like (which doesn't error, nor send the message)...
$message = "my message";$host = "192.168.25.32";exec('mythutil --message --message_text "$message"  --timeout 30 --bcastaddr $host'); 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120319/6dfc17bd/attachment.html 


More information about the mythtv-users mailing list