From: Brian West Date: Wed, 13 May 2009 16:23:13 +0000 (+0000) Subject: adding info example X-Git-Tag: v1.0.4~911 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a734e4dfed40235c7bd9ca3629be1b35eacf8301;p=thirdparty%2Ffreeswitch.git adding info example git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13293 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/esl/perl/info.pl b/libs/esl/perl/info.pl new file mode 100644 index 0000000000..6ea614b162 --- /dev/null +++ b/libs/esl/perl/info.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl + +require ESL; + +my $con = ESL::ESLconnection->new("localhost", "8021", "ClueCon"); +my $e = ESL::ESLevent->new("SEND_INFO"); + +#my $e = $con->sendEvent("MESSAGE_WAITING"); + +$e->addHeader("Content-Type", "text/xml"); +$e->addHeader("to-uri", 'sip:1002@dev.bkw.org'); +$e->addHeader("from-uri", 'sip:1234@dev.bkw.org'); +$e->addHeader("profile", 'external'); + +$con->sendEvent($e);