![]() |
|
|||||||
| 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 |
|
#9
|
||||
|
||||
|
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)
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
__________________
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) |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|