mwi_event.pl 403 B

1234567891011
  1. # This is an example of sending an event via perlrun from the cli
  2. # Edit to your liking. perlrun mwi_event.pl
  3. freeswitch::console_log("info", "Perl in da house!!!\n");
  4. $event = new freeswitch::Event("message_waiting");
  5. $event->addHeader("MWI-Messages-Waiting", "yes");
  6. $event->addHeader("MWI-Message-Account", 'sip:1002@10.0.1.100');
  7. #$event->addHeader("Sofia-Profile", 'internal');
  8. $event->fire();