2008-04-25 20:37:03 -04:00
|
|
|
# This is an example of sending an event via perlrun from the cli
|
|
|
|
# Edit to your liking. perlrun mwi_event.pl
|
|
|
|
freeswitch::console_log("info", "Perl in da house!!!\n");
|
|
|
|
|
|
|
|
$event = new freeswitch::Event("message_waiting");
|
2008-05-08 12:44:33 -04:00
|
|
|
$event->addHeader("MWI-Messages-Waiting", "yes");
|
|
|
|
$event->addHeader("MWI-Message-Account", 'sip:1002@10.0.1.100');
|
|
|
|
|
|
|
|
#$event->addHeader("Sofia-Profile", 'internal');
|
|
|
|
|
2008-04-25 20:37:03 -04:00
|
|
|
$event->fire();
|