[OpenSIPS-Users] external app listening to OpenSIPS/SIP events

Julian Kay juliank at vazycomm.com
Wed Jan 6 23:32:35 CET 2016


THANKS!! 

raising the event in the script got rid of the error.

 

But OpenSIPS is not calling the method I'm testing on a Tomcat XMLRPC serverlet. This is my actual event subscription code I'm using:                 subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccurbiz.xmlrpc.OpenSIPSInterface.msgtests");

 

I've tried several (many) syntax variations. 

 

On the Tomcat server it always points to the root RPC2 and returns the error code 404.

 

 

ccurbiz -> is my  java project name

xmlrpc -> is the servelet mapping to the Java class OpenSIPSInterface

msgtest -> is the method I'm trying to call

 

I wanted to make sure the xmlrpc server was working, I'm able to successfully call the method with xmlrpc-test-tool

 

Any suggestion to be able to make this work with Tomcat server are greatly appreciated!!

 

Thanks!

Juls

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Razvan Crainea
Sent: Wednesday, December 30, 2015 10:40 AM
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP events

 

Hi, Julian!

Make sure you are raising that event from your script (i.e. raise_event("E_SIP_MESSAGE")).

http://www.opensips.org/Documentation/Tutorials-EventInterface#toc9

Best regards,
Răzvan

On 12/24/2015 03:39 AM, Julian Kay wrote:

Thanks for the input, but for now I need to work with XMLRPC.

 

is it possible to create a custom event? I've been trying to use in the startup_route: subscribe_event("E_SIP_MESSAGE", "xmlrpc:http://192.168.3.201:8888/msgtests") 

 

I get the error: ERROR: core:evi_event_subscribe: invalid event name <E_SIP_MESSAGE>

 

Any help much appreciated, thx!!! 

 

Juls

 

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Tito Cumpen
Sent: Wednesday, December 16, 2015 6:19 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP events

 

Julian,

 

 

Look into using http://www.opensips.org/html/docs/modules/devel/event_rabbitmq This module allows you to spin up an event based at any moment in the script and pass variables in the process(Meaning it is a publisher.). Your app can subscribe as reader of the queue and do whatever task needs to be done. You can go as far as using this CDR as well.

 

Goodluck,

Tito

 

On Wed, Dec 16, 2015 at 6:14 PM, Julian Kay <juliank at vazycomm.com> wrote:

Hi;

 

I'm looking for some guidance or confirmation that I'm on the right path. If I want an external app to be able to listen to SIP events like SIP event 180 (ringing), is registering a custom event with OpenSIPS MI and then use "raise_event" to fire a custom event a good way to get my external app to listen to OpenSIPS events?

 

Thanks!!

Juls


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 






_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





-- 
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160106/1f7654d1/attachment-0001.htm>


More information about the Users mailing list