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

Răzvan Crainea razvan at opensips.org
Wed Dec 30 16:39:56 CET 2015


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 
> <mailto: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 <mailto: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/20151230/996f73bb/attachment.htm>


More information about the Users mailing list