Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events
Hi; THANK!! I'm going to test it today, and will give you feed back today. Cheer! Juls -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, January 26, 2016 10:46 AM To: OpenSIPS users mailling list; juli...@vazycomm.com Subject: Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events Hi Julian, Could you test please this fix made by John: https://github.com/OpenSIPS/opensips/commit/be43fcdb7696c6ee53673b351380fe701c209a44 If it works ok, we will do the backport to the stable releases too. Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 26.01.2016 01:45, Julian Kay wrote: > thanks, I appreciate that!!! > > Juls > > -Original Message- > From: users-boun...@lists.opensips.org > [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei > Iancu > Sent: Tuesday, January 19, 2016 6:47 AM > To: OpenSIPS users mailling list; juli...@vazycomm.com > Subject: Re: [OpenSIPS-Users] tomcat external app listening to > OpenSIPS events > > Hi Julian, > > I see your problem and I agree with you - the path should be be missing in > the HTTP URL. I will open a bug report and have it fixed asap. > > Thanks and regards, > > Bogdan-Andrei Iancu > OpenSIPS Founder and Developer > http://www.opensips-solutions.com > > On 14.01.2016 00:28, Julian Kay wrote: >> HI, >> >> I really appreciate you taking the time!! >> >> yes OpenSIPS is connecting to Tomcat, the problem I see (I think) is when >> the event is being raised OpenSIPS is NOT sending the complete URI. Tomcat >> server returns an error of 404. >> the Tomcat logs seem to indicate OpenSIPS is only be sending >> 192.168.3.132:8080 -> when it should be sending >> 192.168.3.132:8080/ccurbiz/xmlrpc >> >> Thanks!! >> Juls >> >> -Original Message- >> From: users-boun...@lists.opensips.org >> [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei >> Iancu >> Sent: Wednesday, January 13, 2016 5:44 AM >> To: OpenSIPS users mailling list; juli...@vazycomm.com >> Subject: Re: [OpenSIPS-Users] tomcat external app listening to >> OpenSIPS events >> >> Hi Julian, >> >> So, you say OpenSIPS is actually connecting via HTTP to tomcat in order to >> deliver the event, right ? >> >> Regards, >> >> Bogdan-Andrei Iancu >> OpenSIPS Founder and Developer >> http://www.opensips-solutions.com >> >> On 13.01.2016 03:02, Julian Kay wrote: >>> Hi; >>> >>> Thanks for the help! >>> >>> the event subscription seems to be successful as show from the >>> output of a test xmlrpc test client >>> Event:: E_SIP_MESSAGE id=11 Subscriber:: >>> socket=xmlrpc:192.168.3.132:8080:ccradius/xmlrpc/OpenSIPSInterface.m >>> s g tests expire=never >>> >>> the parameters I'm using for the for subscribe_event: >>> subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccradius/ >>> x >>> m >>> lrpc/OpenSIPSInterface.msgtests"); >>> >>> for testing purposes I raise the event with -> >>> raise_event("E_SIP_MESSAGE") >>> >>> and it seems OpenSIPs attempts to deliver the event because this is >>> what I see in the Tomcat logs: 192.168.3.167 - - >>> [06/Jan/2016:23:21:19 -0500] "POST /RPC2 HTTP/1.1" 404 959 >>> >>> I'm able to successfully call the Java class from a test xmlrpc test client. >>> >>> I would really appreciate ideas how I can resolve this as this is critical >>> for me. I'm even willing to consider some other methodology as long as I >>> can interface with Tomcat. >>> >>> Thanks for your input!! >>> Juls >>> >>> -Original Message- >>> From: users-boun...@lists.opensips.org >>> [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei >>> Iancu >>> Sent: Tuesday, January 12, 2016 4:14 AM >>> To: OpenSIPS users mailling list; juli...@vazycomm.com >>> Subject: Re: [OpenSIPS-Users] tomcat external app listening to >>> OpenSIPS events >>> >>> Hi Julian, >>> >>> First check if your event subscription was successful (and still valid). >>> Use the "subscriber_list" MI command : >>> http://www.opensips.org/Documentation/Interface-CoreMI-1-11#toc18 >>> >>> After that, when events ha
Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events
thanks, I appreciate that!!! Juls -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, January 19, 2016 6:47 AM To: OpenSIPS users mailling list; juli...@vazycomm.com Subject: Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events Hi Julian, I see your problem and I agree with you - the path should be be missing in the HTTP URL. I will open a bug report and have it fixed asap. Thanks and regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 14.01.2016 00:28, Julian Kay wrote: > HI, > > I really appreciate you taking the time!! > > yes OpenSIPS is connecting to Tomcat, the problem I see (I think) is when the > event is being raised OpenSIPS is NOT sending the complete URI. Tomcat server > returns an error of 404. > the Tomcat logs seem to indicate OpenSIPS is only be sending > 192.168.3.132:8080 -> when it should be sending > 192.168.3.132:8080/ccurbiz/xmlrpc > > Thanks!! > Juls > > -Original Message- > From: users-boun...@lists.opensips.org > [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei > Iancu > Sent: Wednesday, January 13, 2016 5:44 AM > To: OpenSIPS users mailling list; juli...@vazycomm.com > Subject: Re: [OpenSIPS-Users] tomcat external app listening to > OpenSIPS events > > Hi Julian, > > So, you say OpenSIPS is actually connecting via HTTP to tomcat in order to > deliver the event, right ? > > Regards, > > Bogdan-Andrei Iancu > OpenSIPS Founder and Developer > http://www.opensips-solutions.com > > On 13.01.2016 03:02, Julian Kay wrote: >> Hi; >> >> Thanks for the help! >> >> the event subscription seems to be successful as show from the >> output of a test xmlrpc test client >> Event:: E_SIP_MESSAGE id=11 Subscriber:: >> socket=xmlrpc:192.168.3.132:8080:ccradius/xmlrpc/OpenSIPSInterface.ms >> g tests expire=never >> >> the parameters I'm using for the for subscribe_event: >> subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccradius/x >> m >> lrpc/OpenSIPSInterface.msgtests"); >> >> for testing purposes I raise the event with -> >> raise_event("E_SIP_MESSAGE") >> >> and it seems OpenSIPs attempts to deliver the event because this is >> what I see in the Tomcat logs: 192.168.3.167 - - >> [06/Jan/2016:23:21:19 -0500] "POST /RPC2 HTTP/1.1" 404 959 >> >> I'm able to successfully call the Java class from a test xmlrpc test client. >> >> I would really appreciate ideas how I can resolve this as this is critical >> for me. I'm even willing to consider some other methodology as long as I can >> interface with Tomcat. >> >> Thanks for your input!! >> Juls >> >> -Original Message- >> From: users-boun...@lists.opensips.org >> [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei >> Iancu >> Sent: Tuesday, January 12, 2016 4:14 AM >> To: OpenSIPS users mailling list; juli...@vazycomm.com >> Subject: Re: [OpenSIPS-Users] tomcat external app listening to >> OpenSIPS events >> >> Hi Julian, >> >> First check if your event subscription was successful (and still valid). >> Use the "subscriber_list" MI command : >> http://www.opensips.org/Documentation/Interface-CoreMI-1-11#toc18 >> >> After that, when events happens, check at network level if there is any >> attempt from opensips side to deliver the event via XMLRPC to the indicated >> URL. >> >> Regards, >> >> Bogdan-Andrei Iancu >> OpenSIPS Founder and Developer >> http://www.opensips-solutions.com >> >> On 12.01.2016 05:15, Julian Kay wrote: >>> Hi; >>> >>> Has anyone successfully interfaced OpenSIPS event_xmlrpc with a Tombat >>> xmlrpc server servlet? If you yes can you share any tips, because I've been >>> trying it for a while without any success. >>> >>> Thanks for any help!! >>> >>> Juls >>> >>> -Original Message- >>> From: users-boun...@lists.opensips.org >>> [mailto:users-boun...@lists.opensips.org] On Behalf Of Julian Kay >>> Sent: Thursday, January 07, 2016 9:33 AM >>> To: 'OpenSIPS users mailling list' >>> Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP >>> events >>> >>> Thanks for your help!! >>> >>> yes the event is reaching the xmlrpc server I'm inc
Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events
HI, I really appreciate you taking the time!! yes OpenSIPS is connecting to Tomcat, the problem I see (I think) is when the event is being raised OpenSIPS is NOT sending the complete URI. Tomcat server returns an error of 404. the Tomcat logs seem to indicate OpenSIPS is only be sending 192.168.3.132:8080 -> when it should be sending 192.168.3.132:8080/ccurbiz/xmlrpc Thanks!! Juls -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Wednesday, January 13, 2016 5:44 AM To: OpenSIPS users mailling list; juli...@vazycomm.com Subject: Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events Hi Julian, So, you say OpenSIPS is actually connecting via HTTP to tomcat in order to deliver the event, right ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 13.01.2016 03:02, Julian Kay wrote: > Hi; > > Thanks for the help! > > the event subscription seems to be successful as show from the output > of a test xmlrpc test client > Event:: E_SIP_MESSAGE id=11 Subscriber:: > socket=xmlrpc:192.168.3.132:8080:ccradius/xmlrpc/OpenSIPSInterface.msg > tests expire=never > > the parameters I'm using for the for subscribe_event: > subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccradius/xm > lrpc/OpenSIPSInterface.msgtests"); > > for testing purposes I raise the event with -> > raise_event("E_SIP_MESSAGE") > > and it seems OpenSIPs attempts to deliver the event because this is > what I see in the Tomcat logs: 192.168.3.167 - - > [06/Jan/2016:23:21:19 -0500] "POST /RPC2 HTTP/1.1" 404 959 > > I'm able to successfully call the Java class from a test xmlrpc test client. > > I would really appreciate ideas how I can resolve this as this is critical > for me. I'm even willing to consider some other methodology as long as I can > interface with Tomcat. > > Thanks for your input!! > Juls > > -Original Message- > From: users-boun...@lists.opensips.org > [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei > Iancu > Sent: Tuesday, January 12, 2016 4:14 AM > To: OpenSIPS users mailling list; juli...@vazycomm.com > Subject: Re: [OpenSIPS-Users] tomcat external app listening to > OpenSIPS events > > Hi Julian, > > First check if your event subscription was successful (and still valid). > Use the "subscriber_list" MI command : > http://www.opensips.org/Documentation/Interface-CoreMI-1-11#toc18 > > After that, when events happens, check at network level if there is any > attempt from opensips side to deliver the event via XMLRPC to the indicated > URL. > > Regards, > > Bogdan-Andrei Iancu > OpenSIPS Founder and Developer > http://www.opensips-solutions.com > > On 12.01.2016 05:15, Julian Kay wrote: >> Hi; >> >> Has anyone successfully interfaced OpenSIPS event_xmlrpc with a Tombat >> xmlrpc server servlet? If you yes can you share any tips, because I've been >> trying it for a while without any success. >> >> Thanks for any help!! >> >> Juls >> >> -Original Message- >> From: users-boun...@lists.opensips.org >> [mailto:users-boun...@lists.opensips.org] On Behalf Of Julian Kay >> Sent: Thursday, January 07, 2016 9:33 AM >> To: 'OpenSIPS users mailling list' >> Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP >> events >> >> Thanks for your help!! >> >> yes the event is reaching the xmlrpc server I'm including 2 entries in the >> Tomcat log file: >> >> call using xmlrpc-test-tool: 192.168.3.167 - - [06/Jan/2016:16:26:11 >> -0500] "POST /ccurbiz/xmlrpc/RPC2 HTTP/1.0" 200 156 >> >> call using event_xmlrpc: 192.168.3.167 - - [06/Jan/2016:23:21:19 -0500] >> "POST /RPC2 HTTP/1.1" 404 959 >> >> (192.168.3.167 is the OpenSIPs server) >> >> I've tried a few variations for the host name parameter including: >> subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccurbiz.xm >> l >> rpc.OpenSIPSInterface.msgtests"); >> >> subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080/ccurbiz/xmlrpc:OpenSIPSInterface.msgtests"); >> -> this is the most similar to other xmlrpc clients I've tested. >> >> Best regards! >> Juls >> >> >> -Original Message- >> From: users-boun...@lists.opensips.org >> [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan Crainea >> Sent
Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events
Hi; Thanks for the help! the event subscription seems to be successful as show from the output of a test xmlrpc test client Event:: E_SIP_MESSAGE id=11 Subscriber:: socket=xmlrpc:192.168.3.132:8080:ccradius/xmlrpc/OpenSIPSInterface.msgtests expire=never the parameters I'm using for the for subscribe_event: subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccradius/xmlrpc/OpenSIPSInterface.msgtests"); for testing purposes I raise the event with -> raise_event("E_SIP_MESSAGE") and it seems OpenSIPs attempts to deliver the event because this is what I see in the Tomcat logs: 192.168.3.167 - - [06/Jan/2016:23:21:19 -0500] "POST /RPC2 HTTP/1.1" 404 959 I'm able to successfully call the Java class from a test xmlrpc test client. I would really appreciate ideas how I can resolve this as this is critical for me. I'm even willing to consider some other methodology as long as I can interface with Tomcat. Thanks for your input!! Juls -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, January 12, 2016 4:14 AM To: OpenSIPS users mailling list; juli...@vazycomm.com Subject: Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events Hi Julian, First check if your event subscription was successful (and still valid). Use the "subscriber_list" MI command : http://www.opensips.org/Documentation/Interface-CoreMI-1-11#toc18 After that, when events happens, check at network level if there is any attempt from opensips side to deliver the event via XMLRPC to the indicated URL. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 12.01.2016 05:15, Julian Kay wrote: > Hi; > > Has anyone successfully interfaced OpenSIPS event_xmlrpc with a Tombat xmlrpc > server servlet? If you yes can you share any tips, because I've been trying > it for a while without any success. > > Thanks for any help!! > > Juls > > -Original Message- > From: users-boun...@lists.opensips.org > [mailto:users-boun...@lists.opensips.org] On Behalf Of Julian Kay > Sent: Thursday, January 07, 2016 9:33 AM > To: 'OpenSIPS users mailling list' > Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP > events > > Thanks for your help!! > > yes the event is reaching the xmlrpc server I'm including 2 entries in the > Tomcat log file: > > call using xmlrpc-test-tool: 192.168.3.167 - - [06/Jan/2016:16:26:11 -0500] > "POST /ccurbiz/xmlrpc/RPC2 HTTP/1.0" 200 156 > > call using event_xmlrpc: 192.168.3.167 - - [06/Jan/2016:23:21:19 -0500] > "POST /RPC2 HTTP/1.1" 404 959 > > (192.168.3.167 is the OpenSIPs server) > > I've tried a few variations for the host name parameter including: > subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccurbiz.xml > rpc.OpenSIPSInterface.msgtests"); > > subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080/ccurbiz/xmlrpc:OpenSIPSInterface.msgtests"); >-> this is the most similar to other xmlrpc clients I've tested. > > Best regards! > Juls > > > -Original Message- > From: users-boun...@lists.opensips.org > [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan Crainea > Sent: Thursday, January 07, 2016 4:34 AM > To: users@lists.opensips.org > Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP > events > > Hi, Julian! > > First of all, is the event reaching the xmlrpc server? If not sure, try to > make a tcpdump to capture the communication. > If it does reach the server, what are the errors you are seeing in the Tomcat > server? > > Best regards, > > Răzvan Crainea > OpenSIPS Core Developer > http://www.opensips-solutions.com > > On 01/07/2016 12:32 AM, Julian Kay wrote: >> 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.xm >> l >> rpc.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 wan
Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events
Hi; Has anyone successfully interfaced OpenSIPS event_xmlrpc with a Tombat xmlrpc server servlet? If you yes can you share any tips, because I've been trying it for a while without any success. Thanks for any help!! Juls -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Julian Kay Sent: Thursday, January 07, 2016 9:33 AM To: 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP events Thanks for your help!! yes the event is reaching the xmlrpc server I'm including 2 entries in the Tomcat log file: call using xmlrpc-test-tool:192.168.3.167 - - [06/Jan/2016:16:26:11 -0500] "POST /ccurbiz/xmlrpc/RPC2 HTTP/1.0" 200 156 call using event_xmlrpc:192.168.3.167 - - [06/Jan/2016:23:21:19 -0500] "POST /RPC2 HTTP/1.1" 404 959 (192.168.3.167 is the OpenSIPs server) I've tried a few variations for the host name parameter including: subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080:ccurbiz.xmlrpc.OpenSIPSInterface.msgtests"); subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080/ccurbiz/xmlrpc:OpenSIPSInterface.msgtests"); -> this is the most similar to other xmlrpc clients I've tested. Best regards! Juls -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan Crainea Sent: Thursday, January 07, 2016 4:34 AM To: users@lists.opensips.org Subject: Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP events Hi, Julian! First of all, is the event reaching the xmlrpc server? If not sure, try to make a tcpdump to capture the communication. If it does reach the server, what are the errors you are seeing in the Tomcat server? Best regards, Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com On 01/07/2016 12:32 AM, Julian Kay wrote: > 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.xml > rpc.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-boun...@lists.opensips.org > [mailto:users-boun...@lists.opensips.org] *On Behalf Of *Razvan > Crainea > *Sent:* Wednesday, December 30, 2015 10:40 AM > *To:* users@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:/msgtests";) > > I get the error: ERROR: core:evi_event_subscribe: invalid event name > > > Any help much appreciated, thx!!! > > Juls > > *From:*users-boun...@lists.opensips.org > <mailto:users-boun...@lists.opensips.org> > [mailto:users-boun...@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 a
Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP events
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-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan Crainea Sent: Wednesday, December 30, 2015 10:40 AM To: users@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:/msgtests";) I get the error: ERROR: core:evi_event_subscribe: invalid event name Any help much appreciated, thx!!! Juls From: users-boun...@lists.opensips.org [mailto:users-boun...@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 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@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] external app listening to OpenSIPS/SIP events
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:/msgtests";) I get the error: ERROR: core:evi_event_subscribe: invalid event name Any help much appreciated, thx!!! Juls From: users-boun...@lists.opensips.org [mailto:users-boun...@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 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@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] external app listening to OpenSIPS/SIP events
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@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] extension status monitoring
Just a quick thank you for the great points on extension status monitoring. JK From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of SamyGo Sent: Monday, August 17, 2015 11:58 AM To: Bogdan-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] extension status monitoring Thanks Bogdan, That makes everything easy. :) Best Regards, Sammy On Mon, Aug 17, 2015 at 11:52 AM, Bogdan-Andrei Iancu wrote: Hi Sammy, If you use the "brief" option just to get the list of AORs, is quite ok. But depends on how often you need this info. If you want to keep into into a parallel DB, better use the AOR inserted /deleted events: http://www.opensips.org/html/docs/modules/2.1.x/usrloc.html#id295255 And keep your REDIS in sync from there. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 17.08.2015 18:10, SamyGo wrote: Hi Bogdan, Can you recommend this approach for a huge number of ul records ? Is there any better approach in your opinion ? I Push Registering Users into Redis from cfg file, and on un-registering delete them from redis List of online users. This wont give me accurate results but I believe much less load on OpenSIPS. Then for accurate results I created script utilizing the mi_http module to reconcile with Redis and purge any dead entries, this is done after 5~10 minutes interval. I just want to know if there is any other approach to this ? Best Regards, Sammy On Mon, Aug 17, 2015 at 5:42 AM, Bogdan-Andrei Iancu wrote: Hi Julian, The MI command "ul_dump" gives you the registration status for all users: http://www.opensips.org/html/docs/modules/1.11.x/usrloc.html#id294959 You can trigger this command via the MI interface : http://www.opensips.org/Documentation/Interface-MI-1-11 where you have several protocols/backends to communicate with OpenSIPS. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 17.08.2015 08:14, Julian Kay wrote: Hi; I'm looking for information on monitoring extension status on phones registered with OpenSIPS. I'm looking into interfacing a java web applet to OpenSIPS. If anyone knows where I may find helpful info I would appreciate it. Thx! JK ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] extension status monitoring
Hi; I'm looking for information on monitoring extension status on phones registered with OpenSIPS. I'm looking into interfacing a java web applet to OpenSIPS. If anyone knows where I may find helpful info I would appreciate it. Thx! JK ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] outbound routing
Hi; I'm not looking for step by step instructions, but the invite is sent to the remote proxy of the sip trunk, it returns "407 proxy authentication required" I'm using OpensIPS 1.11 and the module UAC_Registrant to register with the sip trunk, I am able to receive calls... but the sending is stumping me. Thx Juls From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Julian Kay Sent: Sunday, June 21, 2015 1:24 AM To: 'OpenSIPS users mailling list' Subject: [OpenSIPS-Users] outbound routing Hi; I've been looking for a while, but I haven't been able to find too much info on routing outbound called through a SIP Trunk... can someone point me to where I can find info / examples / tutorials / etc. I would really appreciate some direction, and sorry if it's an elementary grade question!! Thx Juls ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] outbound routing
Hi; I've been looking for a while, but I haven't been able to find too much info on routing outbound called through a SIP Trunk... can someone point me to where I can find info / examples / tutorials / etc. I would really appreciate some direction, and sorry if it's an elementary grade question!! Thx Juls ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] loss of audio
Hi Can anyone give some ideas why connections made through Opensips after 20 / 30 seconds loses audio and soon after (seconds) disconnects? Thx!! Juls ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] forwarding calls from Asterisk to OpenSIPs
Thanks again! all my extensions have insecure=invite,port. I think Asterisk is forwarding the call as: from anonymous. right now when the user makes a selection I use a GOTO in Asterisk to send it to an Asterisk CONTEXT and from that CONTEXT I use: Dial(SIP/opensips/1005) opensips is the peer name in sip.conf As per the sip trace Opensips gets an INVITE FROM "Anonymous" TO Thanks, I do appreciate the input very much Juls From: Stefano Pisani [mailto:stefano.m.pis...@gmail.com] On Behalf Of Stefano Pisani Sent: Sunday, May 10, 2015 2:37 PM To: Julian Kay Subject: Re: [OpenSIPS-Users] forwarding calls from Asterisk to OpenSIPs Use insecure = invite,port in extensions configuration. s Il 10/05/2015 18:39, Julian Kay ha scritto: Thank for the input!! When I do, it fails and a SIP trace shows error: Failed to authenticate on INVITE to "Anonymous" <mailto:sip:anony...@vazycomm.com> I'm using basically using the "residential" script with some hooks for Asterisk. Asterisk is doing some IVR, once a department / individual is selected I want asterisk to transfer the call to that extension. Again, thanks for any help!!! Juls From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefano Pisani Sent: Thursday, May 07, 2015 4:24 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] forwarding calls from Asterisk to OpenSIPs Just define a peer in sip.conf then Dial(SIP/peer_name/OpensipsAccount) on extensions.conf. Very simple. regards, s Il 07/05/2015 08:32, Julian Kay ha scritto: Hello Everyone; I want to be able to forward calls from Asterisk to a phone registered with OpenSIPs, can anyone give me some information on how this can be done? Or a link to the info I would need to do this. Thanks for any help Juls ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] forwarding calls from Asterisk to OpenSIPs
Thank for the input!! When I do, it fails and a SIP trace shows error: Failed to authenticate on INVITE to "Anonymous" I'm using basically using the "residential" script with some hooks for Asterisk. Asterisk is doing some IVR, once a department / individual is selected I want asterisk to transfer the call to that extension. Again, thanks for any help!!! Juls From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefano Pisani Sent: Thursday, May 07, 2015 4:24 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] forwarding calls from Asterisk to OpenSIPs Just define a peer in sip.conf then Dial(SIP/peer_name/OpensipsAccount) on extensions.conf. Very simple. regards, s Il 07/05/2015 08:32, Julian Kay ha scritto: Hello Everyone; I want to be able to forward calls from Asterisk to a phone registered with OpenSIPs, can anyone give me some information on how this can be done? Or a link to the info I would need to do this. Thanks for any help Juls ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] forwarding calls from Asterisk to OpenSIPs
Hello Everyone; I want to be able to forward calls from Asterisk to a phone registered with OpenSIPs, can anyone give me some information on how this can be done? Or a link to the info I would need to do this. Thanks for any help Juls ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] problems with ds_select_dst w Asterisk
I've been trying to send calls from OpenSIPS to Asterisk using the ds_select_dst command. I'm able to do it with a 3CX soft-phone but all my Snom phones fail, they are all on the same network (Snom 300, 320, 360). Can anyone suggest what I'm doing wrong or what I can try? Asterisk returns SIP code 401. All phones send an ACK request and then another INVITE. Asterisk accepts the subsequent INVITE from the soft-phones but not from the Snom phones. Snom phones are all using the latest firmware the passwords are correct (I checked multiple times) If anyone can give me some input I would appreciate it. Thx!! Juls (Note: I did try to include the debug output as it's often asked, but the email was too big and went into email purgatory) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users