[asterisk-users] Changing labels on Phones
David Gibbons
dave at videon-central.com
Mon Nov 16 10:38:02 CST 2009
<snip>
Here is a link to a reboot script http://www.dave.vc/wordpress/?p=14
that uses your ability to "press keys" on the phone. You could apply
the same idea to "press" the correct buttons to change the background
without rebooting.
I can't find the script that I found to do this, but I'll keep looking
when I get a chance.
-Jonathan
</snip>
Here is the snippet of code that I use to set the image on the 79x1 series (should plug right into my reboot script via the link posted by Jonathan):
$actions['setimage'][0] = array(0 => "Key:Settings", 1 => ".3");
$actions['setimage'][1] = array(0 => "Key:KeyPad1", 1 => ".3");
$actions['setimage'][2] = array(0 => "Key:KeyPad2", 1 => "5");
$actions['setimage'][3] = array(0 => "Key:KeyPad2", 1 => "3");
$actions['setimage'][4] = array(0 => "Key:Soft1", 1 => "7");
$actions['setimage'][5] = array(0 => "Key:Soft2", 1 => "1");
$actions['setimage'][6] = array(0 => "Key:Soft3", 1 => "1");
$actions['setimage'][7] = array(0 => "Key:Soft3", 1 => "1");
And here is how I set the ringer:
$actions['regularring'][0] = array(0 => "Key:Settings", 1=> ".3");
$actions['regularring'][1] = array(0 => "Key:KeyPad1", 1 => ".3");
$actions['regularring'][2] = array(0 => "Key:KeyPad1", 1 => ".3");
$actions['regularring'][3] = array(0 => "Key:KeyPad1", 1 => "4");
$actions['regularring'][4] = array(0 => "Key:KeyPad1", 1 => ".1");
$actions['regularring'][6] = array(0 => "Key:Soft1", 1 => "1");
$actions['regularring'][7] = array(0 => "Key:Soft3", 1 => "1");
$actions['regularring'][8] = array(0 => "Key:Settings", 1 => ".1");
I guess I should update my blog with the new version :)
*note*: These key sequences are correct on 8-4-1S, I know they have changed in previous firmware changes and chances are they have/will change with versions beyond 8-4-1S.
Cheers
Dave
More information about the asterisk-users
mailing list