2
0

send_notify.pl 558 B

123456789101112131415161718192021
  1. #!/usr/bin/perl
  2. require ESL;
  3. ESL::eslSetLogLevel(7);
  4. my $con = ESL::ESLconnection->new("localhost", "8021", "ClueCon");
  5. my $e = ESL::ESLevent->new("NOTIFY");
  6. $e->addHeader("from-uri", "sip:1000\@dev.bkw.org");
  7. $e->addHeader("to-uri", "sip:1000\@dev.bkw.org");
  8. $e->addHeader("event-string", "message-summary");
  9. $e->addHeader("content-type", "application/simple-message-summary");
  10. $e->addHeader("profile", "internal");
  11. my $body ="Messages-Waiting: yes\nMessage-Account: me\@my.com\nVoice-Message: 0/0 (0/0)\n";
  12. $e->addBody($body);
  13. $con->sendEvent($e);