a work in progress:
modified a script to turn on/off the message waiting status on my pap2
this is a perl script, insert "your" info where appropriate
paste it to a file, say "mwi.pl"
--- cut here ------------------------------------------------------------
#!/usr/bin/perl
use IO::Socket;
$pap2ip = '192.168.2.107';
$myip = '192.168.2.198';
$myphone = 'E2xxxxxxxxxx01';
$url = 'talk4free.com';
$dstport = 5070;
$dgs = new IO::Socket::INET(Proto => 'udp') or die "Socket: $!\n";
$len = length($sdp = "Messages-Waiting: $ARGV[0]\r\n");
$txt = "NOTIFY sip:$myphone\@$pap2ip:$dstport SIP/2.0\r\n"
. "Via: SIP/2.0/UDP $myip:5060\r\n"
. "From: <sip:$myphone\@$url>\r\n"
. "To: <sip:$myphone\@$url>\r\n"
. "Call-ID: 1234\@$myip\r\n"
. "CSeq: 20 NOTIFY\r\n"
. "Event: message-summary\r\n"
. "Content-Type: application/simple-message-summary\r\n"
. "Content-Length: $len\r\n\r\n$sdp";
$dpa = sockaddr_in($dstport, inet_aton($pap2ip));
$dgs->send($txt, 0, $dpa);
--- cut here ------------------------------------------------------------
from the command line
run perl mwi.pl yes
or perl mwi.pl no
will toggle the light/stutter tone on your phone
I insert the command line in poppeeper and have poppeeper run it as an email client when new mail arrives
if you have a seperate email account for mj mail
you can have poppeeper run this for one individual account
ideally, it would be nice to test the status of mj messgs directly
if they ever implement that
btw, there are a number of other settings in your ata that could
be toggle this way
script to set mwi on for pap2
Moderators: Bill Smith, Pilot