Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-02-04 Thread Julian Kay
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=11Subscriber::
>>> 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 happens, check at netw

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-26 Thread Bogdan-Andrei Iancu

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=11Subscriber::
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 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.x
m
l
rpc.OpenSIPSInterface.msgtests");

subscribe_event("E_SIP_MESSAGE","xmlrpc:192.168.3.132:8080/ccurbiz/xmlrpc:Op

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-25 Thread Julian Kay
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=11Subscriber::
>> 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 including 2 entries in the 
>>&g

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-19 Thread Bogdan-Andrei Iancu

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=11Subscriber::
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: 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://ww

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-13 Thread Bogdan-Andrei Iancu

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=11Subscriber::  
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 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 *R

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-13 Thread Julian Kay
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=11Subscriber::  
> 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: Thursday, January 07, 2016 4:34 AM
>> To: u

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-12 Thread Bogdan-Andrei Iancu

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.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] *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:

 

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-12 Thread Julian Kay
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=11Subscriber::  
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 wanted to make sure the xmlrpc server was working, I'm able to 
>

Re: [OpenSIPS-Users] tomcat external app listening to OpenSIPS events

2016-01-11 Thread Julian Kay
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] *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