SageTV Community  

Go Back   SageTV Community > SageTV Customizations > SageTV Customizations

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 12-22-2008, 11:49 PM
Jabroni's Avatar
Jabroni Jabroni is offline
Sage Advanced User
 
Join Date: Mar 2006
Posts: 189
Ok heres the code for trixbox/Asterisk/FreePBX users who want your SageTV to display incoming calls on screen using this plugin


sagetv.pl
Code:
#!/usr/bin/perl -w

use Net::Telnet;

my $callerid = $ARGV[0];
my $calleridfull = $ARGV[1];

$telnet = new Net::Telnet ( Timeout=>10, Errmode=>'die', Port=> 10629);
$telnet->open('IP.OF.YOUR.SAGETV');
$telnet->print('@call'.$calleridfull.'~'.$callerid);


Now in your extensions_custom.conf add the following:
Code:
[custom-51]
exten => s,1,Answer
exten => s,n,System(/usr/bin/sagetv.pl ${CALLERID(num)} ${CALLERID(name)} )
exten => s,1,Goto(from-did-direct,10,1)
Just change the last line to fit your need on where should this call go (extension/ring group/etc)


And finally, on your freepbx, on your inbound routes, change to rather use a ring group/extension, select custom app destination, and put
Code:
custom-51,s,1
Hope that gives a general idea on how to set it up
__________________
SageTV 7.1.9 / Phoenix
Server: Intel Q6600, 4GB RAM, ATI 5730
Captures: 1x Genpix Skywalker / 2x 7500 Prof DVBS2 Tunners / 1x PVR150/1x HD HomeRun / 1x Colossus HD
Extender: 2x HD200 / 1x HD300 / Wireless MediaMVP (wired)

Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:11 PM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2003-2005 SageTV, LLC. All rights reserved.