[Freeswitch-users] Receive response of an event in ESL

Jose Miguel Sucasas Mejuto jmsucasas at me.com
Fri Jul 13 05:39:03 MSD 2012


Hello,

	I am trying to send an SMS using mod_sms via ESL using:

   require ESL;
   
   my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
   
   my $e = new ESL::ESLevent("custom", "SMS::SEND_MESSAGE");
   $e->addHeader("to", "1004\@www.freeswitch.org");
   $e->addHeader("from", "testing\@foobar.com");
   $e->addHeader("sip_profile", "internal");
   $e->addHeader("dest_proto", "sip");
   $e->addBody(shift);
   
   $con->sendEvent($e);

	as it appears in mod_sms wiki.  But,  how can I read the result of the event?.  sendRcv waits for the response, but only works with commands not with events.


Thanks in advance.

Regards



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list