Search This Blog

Re: [mobicents-public] sip presence and RESTful web services

Hi.

Do you have an API semantics in mind for the kind of REST operations that you would require at the endpoint?

Regards
Aayush

On Apr 28, 2011 8:53 PM, "ichi" <ichi8884@gmail.com> wrote:

Hai everyone,

I would like to create a service in mobicents using sip presence
server to retrieve the list of presence information received during
PUBLISH, SUBSCRIBE and NOTIFY method.
After I have these informations, I have send this data to a framework
(web service) which is based on RESTful.

I want to know how to do this, I've look through RA in mobicents jain-
slee and found Http client/server RA. Since I have to use the method
POST and GET to send and retrieve the data to/from the framework. But
I didnt find example using this HTTP client/server RA.

Could you give me insight about this?

Thank you.

[mobicents-public] sip presence and RESTful web services

Hai everyone,

I would like to create a service in mobicents using sip presence
server to retrieve the list of presence information received during
PUBLISH, SUBSCRIBE and NOTIFY method.
After I have these informations, I have send this data to a framework
(web service) which is based on RESTful.

I want to know how to do this, I've look through RA in mobicents jain-
slee and found Http client/server RA. Since I have to use the method
POST and GET to send and retrieve the data to/from the framework. But
I didnt find example using this HTTP client/server RA.

Could you give me insight about this?

Thank you.

Re: [mobicents-public] Re: issue with digest auth nc management + patch

Check out the issue I proposed a counter patch.

On Thu, Apr 28, 2011 at 4:46 PM, Jose <josemrecio@gmail.com> wrote:
Done !!!
Patch is preliminar, I tried to make it working avoiding as much as
possible changes on the existing code, surely it can be condensed.
JM


On Apr 26, 9:31 pm, Jean Deruelle <jean.derue...@gmail.com> wrote:
> Jose,
>
> Thanks for the patch, I will  check it out as soon as possible.
> In the meanwhile can you sign the JBoss Contributor Agreement located athttps://cla.jboss.org/and notify me when you have done so ?
>
> Thanks in advance
> Best regards
> Jean
>
>
>
>
>
>
>
> On Tue, Apr 26, 2011 at 5:01 PM, Jose <josemre...@gmail.com> wrote:
> > I have verified the patch is still valid for mss-1.6.0-
> > SNAPSHOT-1104180444
> > JM
>
> > On Apr 16, 1:16 am, Jose <josemre...@gmail.com> wrote:
> > > Hello, all,
>
> > > Currently nc and cnonce are not updated in subsequent requests for the
> > > same session. MSS always sends nc=1, and cnonce=xyz.
> > > This works in most cases, but fails with more strict implementations.
> > > I have opened issue 2505 (http://code.google.com/p/mobicents/issues/
> > > detail?id=2505) and included a preliminary proposed patch.
>
> > > As it is right now (up to SNAPSHOT-1104120544), schematic for a
> > > REGISTER scenario, with a MSS application (left side) registering into
> > > a 3rd party registrar (right side):
>
> > > REGISTER ->
> > > <- 401 (WWW-Auth:nonce, ...)
> > > REGISTER -> (Auth: nc=1, cnonce = "xyz")
> > > <- 200
> > > .
> > > .
> > > (timer triggers registration refresh)
> > > .
> > > REGISTER -> (Auth: nc=1, cnonce = "xyz")
> > > <- 403 Forbidden
>
> > > A strict SIP Registrar rejects a message with an Auth. header that re-
> > > uses the same nc and cnonce (as it can be a replay/man in the middle
> > > attack).
>
> > > [In many other scenarios, the SIP Registrar's don't care about
> > > repeating nc values, or accept it but then send a new 401 to refresh
> > > the authentication state (inefficient)]
>
> > > --------
>
> > > Enhanced MSS behaviour, implemented in the proposed patch:
>
> > > - Everytime a Request is generated on an existing session, the
> > > Authorization header is refreshed, with a new nc (taken from the
> > > CSeq), and a new cnonce (randomly generated).
>
> > > The patch is generated over SNAPSHOT-1104120544 src.
>
> > > JM

[mobicents-public] Re: issue with digest auth nc management + patch

Done !!!
Patch is preliminar, I tried to make it working avoiding as much as
possible changes on the existing code, surely it can be condensed.
JM


On Apr 26, 9:31 pm, Jean Deruelle <jean.derue...@gmail.com> wrote:
> Jose,
>
> Thanks for the patch, I will  check it out as soon as possible.
> In the meanwhile can you sign the JBoss Contributor Agreement located athttps://cla.jboss.org/and notify me when you have done so ?
>
> Thanks in advance
> Best regards
> Jean
>
>
>
>
>
>
>
> On Tue, Apr 26, 2011 at 5:01 PM, Jose <josemre...@gmail.com> wrote:
> > I have verified the patch is still valid for mss-1.6.0-
> > SNAPSHOT-1104180444
> > JM
>
> > On Apr 16, 1:16 am, Jose <josemre...@gmail.com> wrote:
> > > Hello, all,
>
> > > Currently nc and cnonce are not updated in subsequent requests for the
> > > same session. MSS always sends nc=1, and cnonce=xyz.
> > > This works in most cases, but fails with more strict implementations.
> > > I have opened issue 2505 (http://code.google.com/p/mobicents/issues/
> > > detail?id=2505) and included a preliminary proposed patch.
>
> > > As it is right now (up to SNAPSHOT-1104120544), schematic for a
> > > REGISTER scenario, with a MSS application (left side) registering into
> > > a 3rd party registrar (right side):
>
> > > REGISTER ->
> > > <- 401 (WWW-Auth:nonce, ...)
> > > REGISTER -> (Auth: nc=1, cnonce = "xyz")
> > > <- 200
> > > .
> > > .
> > > (timer triggers registration refresh)
> > > .
> > > REGISTER -> (Auth: nc=1, cnonce = "xyz")
> > > <- 403 Forbidden
>
> > > A strict SIP Registrar rejects a message with an Auth. header that re-
> > > uses the same nc and cnonce (as it can be a replay/man in the middle
> > > attack).
>
> > > [In many other scenarios, the SIP Registrar's don't care about
> > > repeating nc values, or accept it but then send a new 401 to refresh
> > > the authentication state (inefficient)]
>
> > > --------
>
> > > Enhanced MSS behaviour, implemented in the proposed patch:
>
> > > - Everytime a Request is generated on an existing session, the
> > > Authorization header is refreshed, with a new nc (taken from the
> > > CSeq), and a new cnonce (randomly generated).
>
> > > The patch is generated over SNAPSHOT-1104120544 src.
>
> > > JM

[mobicents-public] Re: Feedback on running Mobicents Converged Demo (JSR 309)

it works!

What i did

Install mobicents 1.5 + mms
Install the shopping example, ear in deploy/, configure the dar file
Reconfigure mobicents to use 5060/5061 (optional)
start mobicents sip servlets and mms using run.bat -b myip (not
127.0.0.1)

Configure client
user => XXX
domain => myip (same as earlier ofc)

register a user, fill in http://mobicents-public.googlegroups.com/web/UserCreation.png
with the correct user and ip

Order! Should get a call asap

Now to get the admin-calling fu
On 28 apr, 14:04, Jean Deruelle <jean.derue...@gmail.com> wrote:
> bind to network interface 192.168.0.X some sip phones don't like it on
> 127.0.0.1
>
>
>
>
>
>
>
> On Thu, Apr 28, 2011 at 1:56 PM, Jo <janssens...@gmail.com> wrote:
> > Okay, i got a bit further!
>
> > I reconfigured my softphone: name jo domain 127.0.0.1 and registered a
> > new client with sip:j...@127.0.0.1 in the phone field. The call reaches
> > my phone but when i answer i get the exceptions in my MMS => Network
> > is unreachable.
>
> > On 28 apr, 13:38, Jean Deruelle <jean.derue...@gmail.com> wrote:
> > > Take a look athttp://
> > groups.google.com/group/mobicents-public/web/converged-applica...
> > > and
> > > especiallyhttp://
> > mobicents-public.googlegroups.com/web/UserCreation.pngthe
> > > red circle is the area where you need to enter the phone ipadress and
> > port.
>
> > > Jean
>
> > > On Thu, Apr 28, 2011 at 1:33 PM, Jo <janssens...@gmail.com> wrote:
> > > > What do you mean? Isn't this what i do when i configure my sip client?
>
> > > > On 28 apr, 13:22, Jean Deruelle <jean.derue...@gmail.com> wrote:
> > > > > just register the ip address and port of your sipphone when you
> > create
> > > > the
> > > > > user you want to be callback to
>
> > > > > On Thu, Apr 28, 2011 at 12:29 PM, Jo <janssens...@gmail.com> wrote:
> > > > > > Already tried this, seems the server tries to call but it fails and
> > it
> > > > > > ends up in a loop (output is very spammy).
>
> > > > > > Current setup
>
> > > > > > -mobicents 1.5 sip servlets + mms
> > > > > > -shopping example from the page (not from source) - working
> > > > > > -ports reconfigured to 5060/5061
>
> > > > > > client
>
> > > > > > userid : jeand
> > > > > > domain: sip.callwithus.com
>
> > > > > > register with domain and recieve calls ticked
>
> > > > > > Redirected sip.callwithus.com  to 127.0.0.1 through hosts-file
>
> > > > > > I make an order with the jeand account for less then 100 dollar,
> > the
> > > > > > shop tries to call me but the server goes crazy.
>
> > > > > > Am i missing something? i had it working once last week but i did
> > not
> > > > > > write down what the specific settings were.

RE: [mobicents-public] theoretical question about APIs

 


From: mobicents-public@googlegroups.com [mailto:mobicents-public@googlegroups.com] On Behalf Of Jean Deruelle
Anyone with good design skills that could update the diagram to include the new projects, sub-projects, incubator projects ?
 
and possibly make them clickable...?

Re: [mobicents-public] Re: Feedback on running Mobicents Converged Demo (JSR 309)

bind to network interface 192.168.0.X some sip phones don't like it on 127.0.0.1

On Thu, Apr 28, 2011 at 1:56 PM, Jo <janssens.jo@gmail.com> wrote:
Okay, i got a bit further!

I reconfigured my softphone: name jo domain 127.0.0.1 and registered a
new client with sip:jo@127.0.0.1 in the phone field. The call reaches
my phone but when i answer i get the exceptions in my MMS => Network
is unreachable.


On 28 apr, 13:38, Jean Deruelle <jean.derue...@gmail.com> wrote:
> Take a look athttp://groups.google.com/group/mobicents-public/web/converged-applica...
> and
> especiallyhttp://mobicents-public.googlegroups.com/web/UserCreation.pngthe
> red circle is the area where you need to enter the phone ipadress and port.
>
> Jean
>
>
>
>
>
>
>
> On Thu, Apr 28, 2011 at 1:33 PM, Jo <janssens...@gmail.com> wrote:
> > What do you mean? Isn't this what i do when i configure my sip client?
>
> > On 28 apr, 13:22, Jean Deruelle <jean.derue...@gmail.com> wrote:
> > > just register the ip address and port of your sipphone when you create
> > the
> > > user you want to be callback to
>
> > > On Thu, Apr 28, 2011 at 12:29 PM, Jo <janssens...@gmail.com> wrote:
> > > > Already tried this, seems the server tries to call but it fails and it
> > > > ends up in a loop (output is very spammy).
>
> > > > Current setup
>
> > > > -mobicents 1.5 sip servlets + mms
> > > > -shopping example from the page (not from source) - working
> > > > -ports reconfigured to 5060/5061
>
> > > > client
>
> > > > userid : jeand
> > > > domain: sip.callwithus.com
>
> > > > register with domain and recieve calls ticked
>
> > > > Redirected sip.callwithus.com  to 127.0.0.1 through hosts-file
>
> > > > I make an order with the jeand account for less then 100 dollar, the
> > > > shop tries to call me but the server goes crazy.
>
> > > > Am i missing something? i had it working once last week but i did not
> > > > write down what the specific settings were.

Re: [mobicents-public] theoretical question about APIs

Since I will point people to the website at JUDCon/JBoss World, I wanted to update it before that so here is a first draft http://www.mobicents.org/products.htmlFeel free to give feedback. In doing it I just realized how much we have grown in the past 3 years...

Anyone with good design skills that could update the diagram to include the new projects, sub-projects, incubator projects ?

Jean

On Wed, Apr 27, 2011 at 1:53 PM, Tom Uijldert <tom.uijldert@gmail.com> wrote:
No, I mean the overview http://www.mobicents.org/products.html.

A lot of products/projects hide under the Mobicents flag. It might be good
to have an overview of what they're all about and how they interrelate (also
wrt. any standards used).

SLEE section looks ok.

> -----Original Message-----
> From: mobicents-public@googlegroups.com
> [mailto:mobicents-public@googlegroups.com] On Behalf Of
> Eduardo Martins
>
> You mean the JAIN SLEE mobicents.org section?
>
> -- Eduardo
> ..............................................
> http://emmartins.blogspot.com
> http://redhat.com/solutions/telco
>
>
>
> On Wed, Apr 27, 2011 at 12:22 PM, Tom Uijldert
> <tom.uijldert@gmail.com> wrote:
> > Hmm, given that these questions emerge, this implies 1 of 2 things:
> > - Either the info is not available/unclear or
> > - Is hard to find.
> >
> > In this case, the overview in mobicents.org is pretty
> sketchy whereas the
> > google project home page contains far better info
> > (http://code.google.com/p/mobicents/ - although I wonder
> whether this
> > contains all the answers given here).
> >
> > Perhaps a more direct link is in order.
> >
> > Hope this helps,
> > Tom
> >
> >> -----Original Message-----
> >> From: mobicents-public@googlegroups.com
> >> [mailto:mobicents-public@googlegroups.com] On Behalf Of
> >> Eduardo Martins
> >>
> >> JAIN SLEE provides the programing API, but usually it must be
> >> completed with particular resources API, named Resource
> Adaptor Types.
> >> In particular, the JAIN SIP Resource Adaptor Type is defined in the
> >> JAIN SLEE 1.1 specs, the JSR 240. As for the implementation, the
> >> Mobicents JAIN SIP Resource Adaptor uses Mobicents JAIN
> SIP HA stack,
> >> which is the JAIN SIP RI stack + fault tolerance
> capabilities provided
> >> by Mobicents Cluster framework.
> >>
> >> -- Eduardo
> >> ..............................................
> >> http://emmartins.blogspot.com
> >> http://redhat.com/solutions/telco
> >>
> >> On Wed, Apr 27, 2011 at 10:11 AM, Peter
> >> <melis.peter24@gmail.com> wrote:
> >> > Hello,
> >> >
> >> > Its quite hard to find some information about this, so
> >> > I would like to ask generally about all Mobicents sub-projects.
> >> > If I am right, JAIN SLEE is a Java standard [JSR 22] and
> [JSR 240],
> >> > which does not provide functional (programming) API, but just
> >> > interface
> >> > to a container for telco applications.
> >> >
> >> > Therefore I would like to ask, which API is used to
> build(implement)
> >> > Mobicents sub-projects(as sip servlets, jain slee, media server,
> >> > presence server), or new telco applications?
> >> > Is it a combination of JAIN SIP API and SIP SERVLETS
> API(or SIP API
> >> > for J2ME)? Or just one of them?
> >> >
> >> > Thank you for your answer.
> >> > Peter.
> >
> >
>


[mobicents-public] Re: Feedback on running Mobicents Converged Demo (JSR 309)

Okay, i got a bit further!

I reconfigured my softphone: name jo domain 127.0.0.1 and registered a
new client with sip:jo@127.0.0.1 in the phone field. The call reaches
my phone but when i answer i get the exceptions in my MMS => Network
is unreachable.


On 28 apr, 13:38, Jean Deruelle <jean.derue...@gmail.com> wrote:
> Take a look athttp://groups.google.com/group/mobicents-public/web/converged-applica...
> and
> especiallyhttp://mobicents-public.googlegroups.com/web/UserCreation.pngthe
> red circle is the area where you need to enter the phone ipadress and port.
>
> Jean
>
>
>
>
>
>
>
> On Thu, Apr 28, 2011 at 1:33 PM, Jo <janssens...@gmail.com> wrote:
> > What do you mean? Isn't this what i do when i configure my sip client?
>
> > On 28 apr, 13:22, Jean Deruelle <jean.derue...@gmail.com> wrote:
> > > just register the ip address and port of your sipphone when you create
> > the
> > > user you want to be callback to
>
> > > On Thu, Apr 28, 2011 at 12:29 PM, Jo <janssens...@gmail.com> wrote:
> > > > Already tried this, seems the server tries to call but it fails and it
> > > > ends up in a loop (output is very spammy).
>
> > > > Current setup
>
> > > > -mobicents 1.5 sip servlets + mms
> > > > -shopping example from the page (not from source) - working
> > > > -ports reconfigured to 5060/5061
>
> > > > client
>
> > > > userid : jeand
> > > > domain: sip.callwithus.com
>
> > > > register with domain and recieve calls ticked
>
> > > > Redirected sip.callwithus.com  to 127.0.0.1 through hosts-file
>
> > > > I make an order with the jeand account for less then 100 dollar, the
> > > > shop tries to call me but the server goes crazy.
>
> > > > Am i missing something? i had it working once last week but i did not
> > > > write down what the specific settings were.

[mobicents-public] isue With mobicents Media Server (MGCP-Demo)

Hi All.

when I use the video that is in the Folder Extra /Mobicents Media Server/Media in the Mobicents JSLEE Server .

1)I copy the file that its extension is .3gp and i rename it by darbaoui.3gp
2)I replace this file in the folder audio in the source code of MGCP-Demo
3)i put the name of this file and its extension in the file java of ivr-Sbb also in the source code of the MGCP-Demo
4)I put mvn install in the terminal to produce a new file .war that contain this file and also a new service file.jar that contain th directionan name of the new file
5) i deploy the MMS and Mobicents JSLEE Server.
 

but a have this probleme when i put 2010 to see this video in X-lite. you can see the attached.

Re: [mobicents-public] Re: Feedback on running Mobicents Converged Demo (JSR 309)

Take a look at http://groups.google.com/group/mobicents-public/web/converged-application-demo?hl=en and especially http://mobicents-public.googlegroups.com/web/UserCreation.png the red circle is the area where you need to enter the phone ipadress and port.

Jean

On Thu, Apr 28, 2011 at 1:33 PM, Jo <janssens.jo@gmail.com> wrote:
What do you mean? Isn't this what i do when i configure my sip client?

On 28 apr, 13:22, Jean Deruelle <jean.derue...@gmail.com> wrote:
> just register the ip address and port of your sipphone when you create the
> user you want to be callback to
>
>
>
>
>
>
>
> On Thu, Apr 28, 2011 at 12:29 PM, Jo <janssens...@gmail.com> wrote:
> > Already tried this, seems the server tries to call but it fails and it
> > ends up in a loop (output is very spammy).
>
> > Current setup
>
> > -mobicents 1.5 sip servlets + mms
> > -shopping example from the page (not from source) - working
> > -ports reconfigured to 5060/5061
>
> > client
>
> > userid : jeand
> > domain: sip.callwithus.com
>
> > register with domain and recieve calls ticked
>
> > Redirected sip.callwithus.com  to 127.0.0.1 through hosts-file
>
> > I make an order with the jeand account for less then 100 dollar, the
> > shop tries to call me but the server goes crazy.
>
> > Am i missing something? i had it working once last week but i did not
> > write down what the specific settings were.

[mobicents-public] Re: Feedback on running Mobicents Converged Demo (JSR 309)

What do you mean? Isn't this what i do when i configure my sip client?

On 28 apr, 13:22, Jean Deruelle <jean.derue...@gmail.com> wrote:
> just register the ip address and port of your sipphone when you create the
> user you want to be callback to
>
>
>
>
>
>
>
> On Thu, Apr 28, 2011 at 12:29 PM, Jo <janssens...@gmail.com> wrote:
> > Already tried this, seems the server tries to call but it fails and it
> > ends up in a loop (output is very spammy).
>
> > Current setup
>
> > -mobicents 1.5 sip servlets + mms
> > -shopping example from the page (not from source) - working
> > -ports reconfigured to 5060/5061
>
> > client
>
> > userid : jeand
> > domain: sip.callwithus.com
>
> > register with domain and recieve calls ticked
>
> > Redirected sip.callwithus.com  to 127.0.0.1 through hosts-file
>
> > I make an order with the jeand account for less then 100 dollar, the
> > shop tries to call me but the server goes crazy.
>
> > Am i missing something? i had it working once last week but i did not
> > write down what the specific settings were.

Re: [mobicents-public] Re: Feedback on running Mobicents Converged Demo (JSR 309)

just register the ip address and port of your sipphone when you create the user you want to be callback to

On Thu, Apr 28, 2011 at 12:29 PM, Jo <janssens.jo@gmail.com> wrote:
Already tried this, seems the server tries to call but it fails and it
ends up in a loop (output is very spammy).

Current setup

-mobicents 1.5 sip servlets + mms
-shopping example from the page (not from source) - working
-ports reconfigured to 5060/5061

client

userid : jeand
domain: sip.callwithus.com

register with domain and recieve calls ticked

Redirected sip.callwithus.com  to 127.0.0.1 through hosts-file


I make an order with the jeand account for less then 100 dollar, the
shop tries to call me but the server goes crazy.

Am i missing something? i had it working once last week but i did not
write down what the specific settings were.

Re: [mobicents-public] Re: theoretical question about APIs

Mobicents JAIN SLEE is an implementation of JAIN SLEE 1.1 platform (JSR 240)
Mobicents SIP Servlets is an implementation of SIP Servlets 1.1 (JSR 289)
Mobicents SIP Presence implements IETF/OMA/RCS SIP Presence functional
elements (Presence Server, Resource List Server, XDM Server), too many
standards to enumerate.
Mobicents Media Server implements a MGCP and MS Control (JSR 309)
Media Server/Gateway

-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco

On Wed, Apr 27, 2011 at 10:10 PM, Peter <melis.peter24@gmail.com> wrote:
> Thank you for your replies,
> if I understood well,
>
> Mobicents JAIN SLEE is "build" by JAIN SLEE API, and of course its
> functionality extend Resource Adaptor Types.
> Mobicents Sip Servlets is "build" by SIP Servelts API,
> Mobcents Media Server is impelented by JMF API,
> and Mobicetns SIP Presence Server is made up from Java APIs
> "established" by IETF, OMA, 3GPP, ETSI?
>
> And sorry for bothering, but I really have to know it, and
> unfortunately the JSRs didnt tell me enough:
>
> Considering JAIN SIP API as a low-level API, - is this API used in any
> of this Mobicents sub-project implementations, or telco application
> examples, or RA SIP11?
> Also considering SIP Servlets API as a high-level API - this API, if I
> am right, is used to implement Mobicents SIP Servlets and also the
> examples for this server. Is there anything else concerning Mobicents
> implemented by this type of API please?
>
> Thank you all to make it clear for me and other beginners in this
> field.
> Best Regards,
> Peter.
>

Re: [mobicents-public] Re: Transaction exceptions in the event router

Also, what version of SLEE are you using?

-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco

On Thu, Apr 28, 2011 at 11:52 AM, Eduardo Martins <emmartins@gmail.com> wrote:
> Can you do a TRACE log, from the event routing begin to end, that also
> includes mobicents stuff?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> debug="false">
>
>       <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
>               <errorHandler
> class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
>               <param name="Target" value="System.out"/>
>               <param name="Threshold" value="TRACE"/>
>               <layout class="org.apache.log4j.PatternLayout">
>                       <param name="ConversionPattern"
> value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
>               </layout>
>       </appender>
>
>       <root>
>               <level value="TRACE"/>
>               <appender-ref ref="CONSOLE"/>
>       </root>
>
> </log4j:configuration>
>
> -- Eduardo
> ..............................................
> http://emmartins.blogspot.com
> http://redhat.com/solutions/telco
>
>
>
> 2011/4/28 Carl-Magnus Björkell <nrgizer.fi@gmail.com>:
>> Yet another update:
>>
>> Just checked the query log for the mysql servers, and we can't find
>> anything weird going on there. Auto commit is not set for the queries,
>> and no errors/exceptions are returned as far as we can see. The only
>> other thing I can think of is our Configuration RA that caches our
>> configuration into the SLEE from the database. This RA doesn't have
>> any transaction handling (yet), and periodically reads from the
>> database. Could this potentially "taint" the SLEE transaction
>> handling?
>>
>> BR,
>> -Calle
>>
>> On Apr 28, 9:04 am, Carl-Magnus Björkell <nrgizer...@gmail.com> wrote:
>>> Now it's confirmed with certainty that it's the datasource causing
>>> this problem. We've limited it to the load-balancing in the datasource
>>> configuration (The mysql connector can do load balancing when multiple
>>> comma separated IP's are added to the connect string). If we use only
>>> one of the cluster IP's in the configuration, the transactions work.
>>> We are currently checking if there is some special transaction
>>> handling being used when the driver does load balancing. I'll post the
>>> solution here if/when we find it.
>>>
>>> I guess your money is still on some other component trying to auto-
>>> commit the global transaction? Or can you think of other reasons why
>>> the transaction would be rolled back?
>>>
>>> BR,
>>> -Calle
>>>
>>> On Apr 26, 5:50 pm, Eduardo Martins <emmart...@gmail.com> wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> > If by changing the datasource everything works fine it may be some
>>> > configuration, perhaps it is trying to auto commit the tx? Also the
>>> > fact you see rollback exceptions will for sure have an impact on SLEE,
>>> > cause Arjuna is the underlying tx manager, and that may explain why
>>> > the event is not fired (its tx gets a rollback).  I will try to look
>>> > at the log later today and let you known if I find anything unusual,
>>> > but no promises. Meanwhile I recommend you to start digging the
>>> > configuration of such datasource, and see if there is anything which
>>> > clearly may be the cause.
>>>
>>> > -- Eduardo
>>> > ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>>>
>>> > 2011/4/26 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>>>
>>> > > Oh, and I forgot, the content of the databases are exactly the same
>>> > > (cloned it just before re-running the test scenario, so that is not a
>>> > > variable in this case)
>>>
>>> > > -Calle
>>>
>>> > > On Apr 26, 5:09 pm, Carl-Magnus Björkell <nrgizer...@gmail.com> wrote:
>>> > >> Hey Eduardo,
>>>
>>> > >> Thanks for the category list. I was trying to get more logging, but I
>>> > >> wasn't really sure what categories to turn on, so I was flooded with
>>> > >> too much stuff to make any sense of.
>>>
>>> > >> Disclaimer: Hope this mess makes sense, I've kept the post open for
>>> > >> half the day trying to write down what I find. Please bare with me.
>>>
>>> > >> I tried to run the DEBUG traces, but didn't spot anything that could
>>> > >> explain what happens, so I tried with the TRACE level. Since this
>>> > >> trace is ginormous, I'm going to start with a snippet that I think
>>> > >> might be the crucial parts, if you think that this doesn't contain the
>>> > >> issue I'll try to get the full trace uploaded somewhere (pastebin/
>>> > >> kwrite didn't want to accept/complete the full >2MiB paste :P )
>>>
>>> > >>http://pastebin.com/MNXFDDxk(theIPsand usernames have been
>>> > >> cencored, I hope :) )
>>>
>>> > >> The line that caught my eye was: 10:21:12,443 TRACE [TxInterceptor]
>>> > >> Setting tx as null and gtx as null ... this doesn't seem to be
>>> > >> right..?
>>>
>>> > >> Here is the same scenario again with the DEBUG level:http://pastebin.com/d8ACq1KY
>>>
>>> > >> Just to give some context, what is happening here is that the call
>>> > >> layer (which in this case is a single root Sbb) is firing our own
>>> > >> custom CallStatusChangeEvent on a NullActivity ACI. The receiver is
>>> > >> the AnnouncementSbb, but it never seems to actually get the event
>>> > >> (Rollback happens before it gets there..?)
>>>
>>> > >> It is worth noting that this is not thrown when executing the code
>>> > >> snippet I have above. To be honest I'm not sure if I this is because I
>>> > >> misread the trace the first time around, if the code has changed since
>>> > >> then, or if this is a new issue with the same exception. In any case
>>> > >> it's still a problem. In this case I'm much more confused though since
>>> > >> I can't find any log message that would indicate that the
>>> > >> CallStatusChangeEvent (our custom event) is ever even received in the
>>> > >> attached Sbb. I've been staring at this log now for about an hour, and
>>> > >> I can't seem to find any reason for why our code would be causing
>>> > >> this...
>>>
>>> > >> NOTE! We're using a load balanced JDBC (MySQL cluster) local-tx-
>>> > >> datasource in our Sbb's. Database related code is not touched at all
>>> > >> in relation to most of the arjuna RollbackExceptions that we see (yes,
>>> > >> we've seen these before). However, the interesting thing is that the
>>> > >> RollbackExceptions disappear completely if we change the datasource
>>> > >> (by editing mysql-ds.xml) so that we use a single InnoDB standard
>>> > >> mysql server instead. I don't have an explanation for this either. I
>>> > >> just confirmed this by shutting down mobicents, editing *only* mysql-
>>> > >> ds.xml and then restarting and running the scenario again. It worked
>>> > >> without problems (announcement was played an call gracefully dropped).
>>>
>>> > >> Working mysql-ds.xml entry:
>>> > >> <local-tx-datasource>
>>> > >>   <jndi-name>DB</jndi-name>
>>> > >>   <use-java-context>false</use-java-context>
>>> > >>   <connection-url>jdbc:mysql://myownserver:3306/DB</connection-url>
>>> > >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
>>> > >>   <user-name>ohmilols</user-name>
>>> > >>   <password>***</password>
>>> > >>   <exception-sorter-class-
>>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
>>> > >> exception-sorter-class-name>
>>> > >>   <valid-connection-checker-class-
>>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
>>> > >> valid-connection-checker-class-name>
>>> > >>   <metadata>
>>> > >>     <type-mapping>mySQL</type-mapping>
>>> > >>   </metadata>
>>> > >> </local-tx-datasource>
>>>
>>> > >> Non-working mysql-ds.xml entry:
>>> > >> <local-tx-datasource>
>>> > >>   <jndi-name>DB</jndi-name>
>>> > >>   <use-java-context>false</use-java-context>
>>> > >>   <connection-url>jdbc:mysql://clusternode1:3306,clusternode2:3306/DB?
>>> > >> useConfigs=clusterBase&amp;secondsBeforeRetryMaster=60</connection-
>>> > >> url>
>>> > >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
>>> > >>   <user-name>ohmilols</user-name>
>>> > >>   <password>***</password>
>>> > >>   <exception-sorter-class-
>>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
>>> > >> exception-sorter-class-name>
>>> > >>   <valid-connection-checker-class-
>>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
>>> > >> valid-connection-checker-class-name>
>>> > >>   <metadata>
>>> > >>      <type-mapping>mySQL</type-mapping>
>>> > >>   </metadata>
>>> > >> </local-tx-datasource>
>>>
>>> > >> Any ideas? Any at all?
>>>
>>> > >> BR,
>>> > >> -Calle
>>>
>>> > >> On Apr 25, 6:29 pm, Eduardo Martins <emmart...@gmail.com> wrote:
>>>
>>> > >> > There may be lots of reasons for a tx commit failure, such as
>>> > >> > concurrent txs setting same state with different values, or even a
>>> > >> > hidden exception that results in some code raising the tx rollback
>>> > >> > flag, in your case will need to adjust the logging to understand what
>>> > >> > is going on, first lets try setting everything with debug level so
>>> > >> > please set the log4j config file to:
>>>
>>> > >> > <?xml version="1.0" encoding="UTF-8"?>
>>> > >> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>>>
>>> > >> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>>> > >> > debug="false">
>>>
>>> > >> >         <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
>>> > >> >                 <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
>>> > >> >                 <param name="Target" value="System.out"/>
>>> > >> >                 <param name="Threshold" value="DEBUG"/>
>>> > >> >                 <layout class="org.apache.log4j.PatternLayout">
>>> > >> >                         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
>>> > >> >                 </layout>
>>> > >> >         </appender>
>>>
>>> > >> >         <category name="org.jboss.cache">
>>> > >> >                 <priority value="DEBUG" />
>>> > >> >         </category>
>>>
>>> > >> >         <category name="javax.slee">
>>> > >> >                 <priority value="DEBUG" />
>>> > >> >         </category>
>>>
>>> > >> >         <category name="org.mobicents">
>>> > >> >                 <priority value="DEBUG" />
>>> > >> >         </category>
>>>
>>> > >> >         <root>
>>> > >> >                 <level value="INFO"/>
>>> > >> >                 <appender-ref ref="CONSOLE"/>
>>> > >> >         </root>
>>>
>>> > >> > </log4j:configuration>
>>>
>>> > >> > Please paste the console log since the SIP message arrives in SIP
>>> > >> > stack, if nothing becomes clear we will go for the ultra packed TRACE
>>> > >> > log for a few components.
>>>
>>> > >> > -- Eduardo
>>> > >> > ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>>>
>>> > >> > 2011/4/19 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>>>
>>> > >> > > Hey,
>>>
>>> > >> > > That is the full stack trace. The server log file wouldn't do you any
>>> > >> > > good since the only thing before this error is the reception of the
>>> > >> > > INVITE in the SIP RA and then the logging that our internal event has
>>> > >> > > been received in our custom Sbb.
>>>
>>> > >> > > I'm sure we can bubblegum-fix this specific problem in one way or
>>> > >> > > another, I'm more interested in the general "rules" for transactions
>>> > >> > > and what might be causing errors of this sort. Hopefully someone has
>>> > >> > > some insight into this, and is willing to share :)
>>>
>>> > >> > > BR,
>>> > >> > > -Calle
>>>
>>> > >> > > On Apr 19, 7:21 pm, aayush <abhatnagar192...@gmail.com> wrote:
>>> > >> > >> Carl..can you provide the full stack trace? Or better still - you can attach
>>> > >> > >> the server.log file.
>>>
>>> > >> > >> On Apr 19, 2011 9:05 PM, "Carl-Magnus Björkell" <nrgizer...@gmail.com>
>>> > >> > >> wrote:
>>>
>>> > >> > >> Well, spam is taking it a bit far I think :) I'm sorry if I came
>>> > >> > >> across as rude, that was not my intention. You just misunderstood what...
>>>
>>> read more »
>

Re: [mobicents-public] Re: Transaction exceptions in the event router

Can you do a TRACE log, from the event routing begin to end, that also
includes mobicents stuff?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">

<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Target" value="System.out"/>
<param name="Threshold" value="TRACE"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
</layout>
</appender>

<root>
<level value="TRACE"/>
<appender-ref ref="CONSOLE"/>
</root>

</log4j:configuration>

-- Eduardo
..............................................
http://emmartins.blogspot.com
http://redhat.com/solutions/telco

2011/4/28 Carl-Magnus Björkell <nrgizer.fi@gmail.com>:
> Yet another update:
>
> Just checked the query log for the mysql servers, and we can't find
> anything weird going on there. Auto commit is not set for the queries,
> and no errors/exceptions are returned as far as we can see. The only
> other thing I can think of is our Configuration RA that caches our
> configuration into the SLEE from the database. This RA doesn't have
> any transaction handling (yet), and periodically reads from the
> database. Could this potentially "taint" the SLEE transaction
> handling?
>
> BR,
> -Calle
>
> On Apr 28, 9:04 am, Carl-Magnus Björkell <nrgizer...@gmail.com> wrote:
>> Now it's confirmed with certainty that it's the datasource causing
>> this problem. We've limited it to the load-balancing in the datasource
>> configuration (The mysql connector can do load balancing when multiple
>> comma separated IP's are added to the connect string). If we use only
>> one of the cluster IP's in the configuration, the transactions work.
>> We are currently checking if there is some special transaction
>> handling being used when the driver does load balancing. I'll post the
>> solution here if/when we find it.
>>
>> I guess your money is still on some other component trying to auto-
>> commit the global transaction? Or can you think of other reasons why
>> the transaction would be rolled back?
>>
>> BR,
>> -Calle
>>
>> On Apr 26, 5:50 pm, Eduardo Martins <emmart...@gmail.com> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > If by changing the datasource everything works fine it may be some
>> > configuration, perhaps it is trying to auto commit the tx? Also the
>> > fact you see rollback exceptions will for sure have an impact on SLEE,
>> > cause Arjuna is the underlying tx manager, and that may explain why
>> > the event is not fired (its tx gets a rollback).  I will try to look
>> > at the log later today and let you known if I find anything unusual,
>> > but no promises. Meanwhile I recommend you to start digging the
>> > configuration of such datasource, and see if there is anything which
>> > clearly may be the cause.
>>
>> > -- Eduardo
>> > ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>>
>> > 2011/4/26 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>>
>> > > Oh, and I forgot, the content of the databases are exactly the same
>> > > (cloned it just before re-running the test scenario, so that is not a
>> > > variable in this case)
>>
>> > > -Calle
>>
>> > > On Apr 26, 5:09 pm, Carl-Magnus Björkell <nrgizer...@gmail.com> wrote:
>> > >> Hey Eduardo,
>>
>> > >> Thanks for the category list. I was trying to get more logging, but I
>> > >> wasn't really sure what categories to turn on, so I was flooded with
>> > >> too much stuff to make any sense of.
>>
>> > >> Disclaimer: Hope this mess makes sense, I've kept the post open for
>> > >> half the day trying to write down what I find. Please bare with me.
>>
>> > >> I tried to run the DEBUG traces, but didn't spot anything that could
>> > >> explain what happens, so I tried with the TRACE level. Since this
>> > >> trace is ginormous, I'm going to start with a snippet that I think
>> > >> might be the crucial parts, if you think that this doesn't contain the
>> > >> issue I'll try to get the full trace uploaded somewhere (pastebin/
>> > >> kwrite didn't want to accept/complete the full >2MiB paste :P )
>>
>> > >>http://pastebin.com/MNXFDDxk(theIPsand usernames have been
>> > >> cencored, I hope :) )
>>
>> > >> The line that caught my eye was: 10:21:12,443 TRACE [TxInterceptor]
>> > >> Setting tx as null and gtx as null ... this doesn't seem to be
>> > >> right..?
>>
>> > >> Here is the same scenario again with the DEBUG level:http://pastebin.com/d8ACq1KY
>>
>> > >> Just to give some context, what is happening here is that the call
>> > >> layer (which in this case is a single root Sbb) is firing our own
>> > >> custom CallStatusChangeEvent on a NullActivity ACI. The receiver is
>> > >> the AnnouncementSbb, but it never seems to actually get the event
>> > >> (Rollback happens before it gets there..?)
>>
>> > >> It is worth noting that this is not thrown when executing the code
>> > >> snippet I have above. To be honest I'm not sure if I this is because I
>> > >> misread the trace the first time around, if the code has changed since
>> > >> then, or if this is a new issue with the same exception. In any case
>> > >> it's still a problem. In this case I'm much more confused though since
>> > >> I can't find any log message that would indicate that the
>> > >> CallStatusChangeEvent (our custom event) is ever even received in the
>> > >> attached Sbb. I've been staring at this log now for about an hour, and
>> > >> I can't seem to find any reason for why our code would be causing
>> > >> this...
>>
>> > >> NOTE! We're using a load balanced JDBC (MySQL cluster) local-tx-
>> > >> datasource in our Sbb's. Database related code is not touched at all
>> > >> in relation to most of the arjuna RollbackExceptions that we see (yes,
>> > >> we've seen these before). However, the interesting thing is that the
>> > >> RollbackExceptions disappear completely if we change the datasource
>> > >> (by editing mysql-ds.xml) so that we use a single InnoDB standard
>> > >> mysql server instead. I don't have an explanation for this either. I
>> > >> just confirmed this by shutting down mobicents, editing *only* mysql-
>> > >> ds.xml and then restarting and running the scenario again. It worked
>> > >> without problems (announcement was played an call gracefully dropped).
>>
>> > >> Working mysql-ds.xml entry:
>> > >> <local-tx-datasource>
>> > >>   <jndi-name>DB</jndi-name>
>> > >>   <use-java-context>false</use-java-context>
>> > >>   <connection-url>jdbc:mysql://myownserver:3306/DB</connection-url>
>> > >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
>> > >>   <user-name>ohmilols</user-name>
>> > >>   <password>***</password>
>> > >>   <exception-sorter-class-
>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
>> > >> exception-sorter-class-name>
>> > >>   <valid-connection-checker-class-
>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
>> > >> valid-connection-checker-class-name>
>> > >>   <metadata>
>> > >>     <type-mapping>mySQL</type-mapping>
>> > >>   </metadata>
>> > >> </local-tx-datasource>
>>
>> > >> Non-working mysql-ds.xml entry:
>> > >> <local-tx-datasource>
>> > >>   <jndi-name>DB</jndi-name>
>> > >>   <use-java-context>false</use-java-context>
>> > >>   <connection-url>jdbc:mysql://clusternode1:3306,clusternode2:3306/DB?
>> > >> useConfigs=clusterBase&amp;secondsBeforeRetryMaster=60</connection-
>> > >> url>
>> > >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
>> > >>   <user-name>ohmilols</user-name>
>> > >>   <password>***</password>
>> > >>   <exception-sorter-class-
>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
>> > >> exception-sorter-class-name>
>> > >>   <valid-connection-checker-class-
>> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
>> > >> valid-connection-checker-class-name>
>> > >>   <metadata>
>> > >>      <type-mapping>mySQL</type-mapping>
>> > >>   </metadata>
>> > >> </local-tx-datasource>
>>
>> > >> Any ideas? Any at all?
>>
>> > >> BR,
>> > >> -Calle
>>
>> > >> On Apr 25, 6:29 pm, Eduardo Martins <emmart...@gmail.com> wrote:
>>
>> > >> > There may be lots of reasons for a tx commit failure, such as
>> > >> > concurrent txs setting same state with different values, or even a
>> > >> > hidden exception that results in some code raising the tx rollback
>> > >> > flag, in your case will need to adjust the logging to understand what
>> > >> > is going on, first lets try setting everything with debug level so
>> > >> > please set the log4j config file to:
>>
>> > >> > <?xml version="1.0" encoding="UTF-8"?>
>> > >> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>>
>> > >> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>> > >> > debug="false">
>>
>> > >> >         <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
>> > >> >                 <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
>> > >> >                 <param name="Target" value="System.out"/>
>> > >> >                 <param name="Threshold" value="DEBUG"/>
>> > >> >                 <layout class="org.apache.log4j.PatternLayout">
>> > >> >                         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
>> > >> >                 </layout>
>> > >> >         </appender>
>>
>> > >> >         <category name="org.jboss.cache">
>> > >> >                 <priority value="DEBUG" />
>> > >> >         </category>
>>
>> > >> >         <category name="javax.slee">
>> > >> >                 <priority value="DEBUG" />
>> > >> >         </category>
>>
>> > >> >         <category name="org.mobicents">
>> > >> >                 <priority value="DEBUG" />
>> > >> >         </category>
>>
>> > >> >         <root>
>> > >> >                 <level value="INFO"/>
>> > >> >                 <appender-ref ref="CONSOLE"/>
>> > >> >         </root>
>>
>> > >> > </log4j:configuration>
>>
>> > >> > Please paste the console log since the SIP message arrives in SIP
>> > >> > stack, if nothing becomes clear we will go for the ultra packed TRACE
>> > >> > log for a few components.
>>
>> > >> > -- Eduardo
>> > >> > ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>>
>> > >> > 2011/4/19 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>>
>> > >> > > Hey,
>>
>> > >> > > That is the full stack trace. The server log file wouldn't do you any
>> > >> > > good since the only thing before this error is the reception of the
>> > >> > > INVITE in the SIP RA and then the logging that our internal event has
>> > >> > > been received in our custom Sbb.
>>
>> > >> > > I'm sure we can bubblegum-fix this specific problem in one way or
>> > >> > > another, I'm more interested in the general "rules" for transactions
>> > >> > > and what might be causing errors of this sort. Hopefully someone has
>> > >> > > some insight into this, and is willing to share :)
>>
>> > >> > > BR,
>> > >> > > -Calle
>>
>> > >> > > On Apr 19, 7:21 pm, aayush <abhatnagar192...@gmail.com> wrote:
>> > >> > >> Carl..can you provide the full stack trace? Or better still - you can attach
>> > >> > >> the server.log file.
>>
>> > >> > >> On Apr 19, 2011 9:05 PM, "Carl-Magnus Björkell" <nrgizer...@gmail.com>
>> > >> > >> wrote:
>>
>> > >> > >> Well, spam is taking it a bit far I think :) I'm sorry if I came
>> > >> > >> across as rude, that was not my intention. You just misunderstood what...
>>
>> read more »

[mobicents-public] Re: Feedback on running Mobicents Converged Demo (JSR 309)

Already tried this, seems the server tries to call but it fails and it
ends up in a loop (output is very spammy).

Current setup

-mobicents 1.5 sip servlets + mms
-shopping example from the page (not from source) - working
-ports reconfigured to 5060/5061

client

userid : jeand
domain: sip.callwithus.com

register with domain and recieve calls ticked

Redirected sip.callwithus.com to 127.0.0.1 through hosts-file


I make an order with the jeand account for less then 100 dollar, the
shop tries to call me but the server goes crazy.

Am i missing something? i had it working once last week but i did not
write down what the specific settings were.

Re: [mobicents-public] Mobicents Default ports

This is because historically only JAIN SLEE was present whose SIP RA was bound to 5060 and then came Sip Servlets which we bundled together so to avoid ports conflicts we picked up the default sip ports + 20 (random number of the devil). But I guess that now the split is more distinct in terms of distributions we could come back to 5060/5061. Feel free to open an issue at http://code.google.com/p/mobicents/issues/entry?template=Mobicents%20Sip%20Servlets%20Template

Jean

On Thu, Apr 28, 2011 at 11:44 AM, Jo <janssens.jo@gmail.com> wrote:
I was wondering, why does Mobicents come preconfigured at 5080/5081
instead of 5060/5061 (which is the most common port configuration for
other sip servers and clients). Is this because its in developement
mode at first install?

Greetings Jo

[mobicents-public] Re: Transaction exceptions in the event router

Yet another update:

Just checked the query log for the mysql servers, and we can't find
anything weird going on there. Auto commit is not set for the queries,
and no errors/exceptions are returned as far as we can see. The only
other thing I can think of is our Configuration RA that caches our
configuration into the SLEE from the database. This RA doesn't have
any transaction handling (yet), and periodically reads from the
database. Could this potentially "taint" the SLEE transaction
handling?

BR,
-Calle

On Apr 28, 9:04 am, Carl-Magnus Björkell <nrgizer...@gmail.com> wrote:
> Now it's confirmed with certainty that it's the datasource causing
> this problem. We've limited it to the load-balancing in the datasource
> configuration (The mysql connector can do load balancing when multiple
> comma separated IP's are added to the connect string). If we use only
> one of the cluster IP's in the configuration, the transactions work.
> We are currently checking if there is some special transaction
> handling being used when the driver does load balancing. I'll post the
> solution here if/when we find it.
>
> I guess your money is still on some other component trying to auto-
> commit the global transaction? Or can you think of other reasons why
> the transaction would be rolled back?
>
> BR,
> -Calle
>
> On Apr 26, 5:50 pm, Eduardo Martins <emmart...@gmail.com> wrote:
>
>
>
>
>
>
>
> > If by changing the datasource everything works fine it may be some
> > configuration, perhaps it is trying to auto commit the tx? Also the
> > fact you see rollback exceptions will for sure have an impact on SLEE,
> > cause Arjuna is the underlying tx manager, and that may explain why
> > the event is not fired (its tx gets a rollback).  I will try to look
> > at the log later today and let you known if I find anything unusual,
> > but no promises. Meanwhile I recommend you to start digging the
> > configuration of such datasource, and see if there is anything which
> > clearly may be the cause.
>
> > -- Eduardo
> > ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>
> > 2011/4/26 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>
> > > Oh, and I forgot, the content of the databases are exactly the same
> > > (cloned it just before re-running the test scenario, so that is not a
> > > variable in this case)
>
> > > -Calle
>
> > > On Apr 26, 5:09 pm, Carl-Magnus Björkell <nrgizer...@gmail.com> wrote:
> > >> Hey Eduardo,
>
> > >> Thanks for the category list. I was trying to get more logging, but I
> > >> wasn't really sure what categories to turn on, so I was flooded with
> > >> too much stuff to make any sense of.
>
> > >> Disclaimer: Hope this mess makes sense, I've kept the post open for
> > >> half the day trying to write down what I find. Please bare with me.
>
> > >> I tried to run the DEBUG traces, but didn't spot anything that could
> > >> explain what happens, so I tried with the TRACE level. Since this
> > >> trace is ginormous, I'm going to start with a snippet that I think
> > >> might be the crucial parts, if you think that this doesn't contain the
> > >> issue I'll try to get the full trace uploaded somewhere (pastebin/
> > >> kwrite didn't want to accept/complete the full >2MiB paste :P )
>
> > >>http://pastebin.com/MNXFDDxk(theIPsand usernames have been
> > >> cencored, I hope :) )
>
> > >> The line that caught my eye was: 10:21:12,443 TRACE [TxInterceptor]
> > >> Setting tx as null and gtx as null ... this doesn't seem to be
> > >> right..?
>
> > >> Here is the same scenario again with the DEBUG level:http://pastebin.com/d8ACq1KY
>
> > >> Just to give some context, what is happening here is that the call
> > >> layer (which in this case is a single root Sbb) is firing our own
> > >> custom CallStatusChangeEvent on a NullActivity ACI. The receiver is
> > >> the AnnouncementSbb, but it never seems to actually get the event
> > >> (Rollback happens before it gets there..?)
>
> > >> It is worth noting that this is not thrown when executing the code
> > >> snippet I have above. To be honest I'm not sure if I this is because I
> > >> misread the trace the first time around, if the code has changed since
> > >> then, or if this is a new issue with the same exception. In any case
> > >> it's still a problem. In this case I'm much more confused though since
> > >> I can't find any log message that would indicate that the
> > >> CallStatusChangeEvent (our custom event) is ever even received in the
> > >> attached Sbb. I've been staring at this log now for about an hour, and
> > >> I can't seem to find any reason for why our code would be causing
> > >> this...
>
> > >> NOTE! We're using a load balanced JDBC (MySQL cluster) local-tx-
> > >> datasource in our Sbb's. Database related code is not touched at all
> > >> in relation to most of the arjuna RollbackExceptions that we see (yes,
> > >> we've seen these before). However, the interesting thing is that the
> > >> RollbackExceptions disappear completely if we change the datasource
> > >> (by editing mysql-ds.xml) so that we use a single InnoDB standard
> > >> mysql server instead. I don't have an explanation for this either. I
> > >> just confirmed this by shutting down mobicents, editing *only* mysql-
> > >> ds.xml and then restarting and running the scenario again. It worked
> > >> without problems (announcement was played an call gracefully dropped).
>
> > >> Working mysql-ds.xml entry:
> > >> <local-tx-datasource>
> > >>   <jndi-name>DB</jndi-name>
> > >>   <use-java-context>false</use-java-context>
> > >>   <connection-url>jdbc:mysql://myownserver:3306/DB</connection-url>
> > >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
> > >>   <user-name>ohmilols</user-name>
> > >>   <password>***</password>
> > >>   <exception-sorter-class-
> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
> > >> exception-sorter-class-name>
> > >>   <valid-connection-checker-class-
> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
> > >> valid-connection-checker-class-name>
> > >>   <metadata>
> > >>     <type-mapping>mySQL</type-mapping>
> > >>   </metadata>
> > >> </local-tx-datasource>
>
> > >> Non-working mysql-ds.xml entry:
> > >> <local-tx-datasource>
> > >>   <jndi-name>DB</jndi-name>
> > >>   <use-java-context>false</use-java-context>
> > >>   <connection-url>jdbc:mysql://clusternode1:3306,clusternode2:3306/DB?
> > >> useConfigs=clusterBase&amp;secondsBeforeRetryMaster=60</connection-
> > >> url>
> > >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
> > >>   <user-name>ohmilols</user-name>
> > >>   <password>***</password>
> > >>   <exception-sorter-class-
> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
> > >> exception-sorter-class-name>
> > >>   <valid-connection-checker-class-
> > >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
> > >> valid-connection-checker-class-name>
> > >>   <metadata>
> > >>      <type-mapping>mySQL</type-mapping>
> > >>   </metadata>
> > >> </local-tx-datasource>
>
> > >> Any ideas? Any at all?
>
> > >> BR,
> > >> -Calle
>
> > >> On Apr 25, 6:29 pm, Eduardo Martins <emmart...@gmail.com> wrote:
>
> > >> > There may be lots of reasons for a tx commit failure, such as
> > >> > concurrent txs setting same state with different values, or even a
> > >> > hidden exception that results in some code raising the tx rollback
> > >> > flag, in your case will need to adjust the logging to understand what
> > >> > is going on, first lets try setting everything with debug level so
> > >> > please set the log4j config file to:
>
> > >> > <?xml version="1.0" encoding="UTF-8"?>
> > >> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>
> > >> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> > >> > debug="false">
>
> > >> >         <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
> > >> >                 <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
> > >> >                 <param name="Target" value="System.out"/>
> > >> >                 <param name="Threshold" value="DEBUG"/>
> > >> >                 <layout class="org.apache.log4j.PatternLayout">
> > >> >                         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
> > >> >                 </layout>
> > >> >         </appender>
>
> > >> >         <category name="org.jboss.cache">
> > >> >                 <priority value="DEBUG" />
> > >> >         </category>
>
> > >> >         <category name="javax.slee">
> > >> >                 <priority value="DEBUG" />
> > >> >         </category>
>
> > >> >         <category name="org.mobicents">
> > >> >                 <priority value="DEBUG" />
> > >> >         </category>
>
> > >> >         <root>
> > >> >                 <level value="INFO"/>
> > >> >                 <appender-ref ref="CONSOLE"/>
> > >> >         </root>
>
> > >> > </log4j:configuration>
>
> > >> > Please paste the console log since the SIP message arrives in SIP
> > >> > stack, if nothing becomes clear we will go for the ultra packed TRACE
> > >> > log for a few components.
>
> > >> > -- Eduardo
> > >> > ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>
> > >> > 2011/4/19 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>
> > >> > > Hey,
>
> > >> > > That is the full stack trace. The server log file wouldn't do you any
> > >> > > good since the only thing before this error is the reception of the
> > >> > > INVITE in the SIP RA and then the logging that our internal event has
> > >> > > been received in our custom Sbb.
>
> > >> > > I'm sure we can bubblegum-fix this specific problem in one way or
> > >> > > another, I'm more interested in the general "rules" for transactions
> > >> > > and what might be causing errors of this sort. Hopefully someone has
> > >> > > some insight into this, and is willing to share :)
>
> > >> > > BR,
> > >> > > -Calle
>
> > >> > > On Apr 19, 7:21 pm, aayush <abhatnagar192...@gmail.com> wrote:
> > >> > >> Carl..can you provide the full stack trace? Or better still - you can attach
> > >> > >> the server.log file.
>
> > >> > >> On Apr 19, 2011 9:05 PM, "Carl-Magnus Björkell" <nrgizer...@gmail.com>
> > >> > >> wrote:
>
> > >> > >> Well, spam is taking it a bit far I think :) I'm sorry if I came
> > >> > >> across as rude, that was not my intention. You just misunderstood what...
>
> read more »

[mobicents-public] Re: Transaction exceptions in the event router

Now it's confirmed with certainty that it's the datasource causing
this problem. We've limited it to the load-balancing in the datasource
configuration (The mysql connector can do load balancing when multiple
comma separated IP's are added to the connect string). If we use only
one of the cluster IP's in the configuration, the transactions work.
We are currently checking if there is some special transaction
handling being used when the driver does load balancing. I'll post the
solution here if/when we find it.

I guess your money is still on some other component trying to auto-
commit the global transaction? Or can you think of other reasons why
the transaction would be rolled back?

BR,
-Calle

On Apr 26, 5:50 pm, Eduardo Martins <emmart...@gmail.com> wrote:
> If by changing the datasource everything works fine it may be some
> configuration, perhaps it is trying to auto commit the tx? Also the
> fact you see rollback exceptions will for sure have an impact on SLEE,
> cause Arjuna is the underlying tx manager, and that may explain why
> the event is not fired (its tx gets a rollback).  I will try to look
> at the log later today and let you known if I find anything unusual,
> but no promises. Meanwhile I recommend you to start digging the
> configuration of such datasource, and see if there is anything which
> clearly may be the cause.
>
> -- Eduardo
> ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>
> 2011/4/26 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>
>
>
>
>
>
>
> > Oh, and I forgot, the content of the databases are exactly the same
> > (cloned it just before re-running the test scenario, so that is not a
> > variable in this case)
>
> > -Calle
>
> > On Apr 26, 5:09 pm, Carl-Magnus Björkell <nrgizer...@gmail.com> wrote:
> >> Hey Eduardo,
>
> >> Thanks for the category list. I was trying to get more logging, but I
> >> wasn't really sure what categories to turn on, so I was flooded with
> >> too much stuff to make any sense of.
>
> >> Disclaimer: Hope this mess makes sense, I've kept the post open for
> >> half the day trying to write down what I find. Please bare with me.
>
> >> I tried to run the DEBUG traces, but didn't spot anything that could
> >> explain what happens, so I tried with the TRACE level. Since this
> >> trace is ginormous, I'm going to start with a snippet that I think
> >> might be the crucial parts, if you think that this doesn't contain the
> >> issue I'll try to get the full trace uploaded somewhere (pastebin/
> >> kwrite didn't want to accept/complete the full >2MiB paste :P )
>
> >>http://pastebin.com/MNXFDDxk(theIPs and usernames have been
> >> cencored, I hope :) )
>
> >> The line that caught my eye was: 10:21:12,443 TRACE [TxInterceptor]
> >> Setting tx as null and gtx as null ... this doesn't seem to be
> >> right..?
>
> >> Here is the same scenario again with the DEBUG level:http://pastebin.com/d8ACq1KY
>
> >> Just to give some context, what is happening here is that the call
> >> layer (which in this case is a single root Sbb) is firing our own
> >> custom CallStatusChangeEvent on a NullActivity ACI. The receiver is
> >> the AnnouncementSbb, but it never seems to actually get the event
> >> (Rollback happens before it gets there..?)
>
> >> It is worth noting that this is not thrown when executing the code
> >> snippet I have above. To be honest I'm not sure if I this is because I
> >> misread the trace the first time around, if the code has changed since
> >> then, or if this is a new issue with the same exception. In any case
> >> it's still a problem. In this case I'm much more confused though since
> >> I can't find any log message that would indicate that the
> >> CallStatusChangeEvent (our custom event) is ever even received in the
> >> attached Sbb. I've been staring at this log now for about an hour, and
> >> I can't seem to find any reason for why our code would be causing
> >> this...
>
> >> NOTE! We're using a load balanced JDBC (MySQL cluster) local-tx-
> >> datasource in our Sbb's. Database related code is not touched at all
> >> in relation to most of the arjuna RollbackExceptions that we see (yes,
> >> we've seen these before). However, the interesting thing is that the
> >> RollbackExceptions disappear completely if we change the datasource
> >> (by editing mysql-ds.xml) so that we use a single InnoDB standard
> >> mysql server instead. I don't have an explanation for this either. I
> >> just confirmed this by shutting down mobicents, editing *only* mysql-
> >> ds.xml and then restarting and running the scenario again. It worked
> >> without problems (announcement was played an call gracefully dropped).
>
> >> Working mysql-ds.xml entry:
> >> <local-tx-datasource>
> >>   <jndi-name>DB</jndi-name>
> >>   <use-java-context>false</use-java-context>
> >>   <connection-url>jdbc:mysql://myownserver:3306/DB</connection-url>
> >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
> >>   <user-name>ohmilols</user-name>
> >>   <password>***</password>
> >>   <exception-sorter-class-
> >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
> >> exception-sorter-class-name>
> >>   <valid-connection-checker-class-
> >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
> >> valid-connection-checker-class-name>
> >>   <metadata>
> >>     <type-mapping>mySQL</type-mapping>
> >>   </metadata>
> >> </local-tx-datasource>
>
> >> Non-working mysql-ds.xml entry:
> >> <local-tx-datasource>
> >>   <jndi-name>DB</jndi-name>
> >>   <use-java-context>false</use-java-context>
> >>   <connection-url>jdbc:mysql://clusternode1:3306,clusternode2:3306/DB?
> >> useConfigs=clusterBase&amp;secondsBeforeRetryMaster=60</connection-
> >> url>
> >>   <driver-class>com.mysql.jdbc.Driver</driver-class>
> >>   <user-name>ohmilols</user-name>
> >>   <password>***</password>
> >>   <exception-sorter-class-
> >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</
> >> exception-sorter-class-name>
> >>   <valid-connection-checker-class-
> >> name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</
> >> valid-connection-checker-class-name>
> >>   <metadata>
> >>      <type-mapping>mySQL</type-mapping>
> >>   </metadata>
> >> </local-tx-datasource>
>
> >> Any ideas? Any at all?
>
> >> BR,
> >> -Calle
>
> >> On Apr 25, 6:29 pm, Eduardo Martins <emmart...@gmail.com> wrote:
>
> >> > There may be lots of reasons for a tx commit failure, such as
> >> > concurrent txs setting same state with different values, or even a
> >> > hidden exception that results in some code raising the tx rollback
> >> > flag, in your case will need to adjust the logging to understand what
> >> > is going on, first lets try setting everything with debug level so
> >> > please set the log4j config file to:
>
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>
> >> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> >> > debug="false">
>
> >> >         <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
> >> >                 <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
> >> >                 <param name="Target" value="System.out"/>
> >> >                 <param name="Threshold" value="DEBUG"/>
> >> >                 <layout class="org.apache.log4j.PatternLayout">
> >> >                         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
> >> >                 </layout>
> >> >         </appender>
>
> >> >         <category name="org.jboss.cache">
> >> >                 <priority value="DEBUG" />
> >> >         </category>
>
> >> >         <category name="javax.slee">
> >> >                 <priority value="DEBUG" />
> >> >         </category>
>
> >> >         <category name="org.mobicents">
> >> >                 <priority value="DEBUG" />
> >> >         </category>
>
> >> >         <root>
> >> >                 <level value="INFO"/>
> >> >                 <appender-ref ref="CONSOLE"/>
> >> >         </root>
>
> >> > </log4j:configuration>
>
> >> > Please paste the console log since the SIP message arrives in SIP
> >> > stack, if nothing becomes clear we will go for the ultra packed TRACE
> >> > log for a few components.
>
> >> > -- Eduardo
> >> > ..............................................http://emmartins.blogspot.comhttp://redhat.com/solutions/telco
>
> >> > 2011/4/19 Carl-Magnus Björkell <nrgizer...@gmail.com>:
>
> >> > > Hey,
>
> >> > > That is the full stack trace. The server log file wouldn't do you any
> >> > > good since the only thing before this error is the reception of the
> >> > > INVITE in the SIP RA and then the logging that our internal event has
> >> > > been received in our custom Sbb.
>
> >> > > I'm sure we can bubblegum-fix this specific problem in one way or
> >> > > another, I'm more interested in the general "rules" for transactions
> >> > > and what might be causing errors of this sort. Hopefully someone has
> >> > > some insight into this, and is willing to share :)
>
> >> > > BR,
> >> > > -Calle
>
> >> > > On Apr 19, 7:21 pm, aayush <abhatnagar192...@gmail.com> wrote:
> >> > >> Carl..can you provide the full stack trace? Or better still - you can attach
> >> > >> the server.log file.
>
> >> > >> On Apr 19, 2011 9:05 PM, "Carl-Magnus Björkell" <nrgizer...@gmail.com>
> >> > >> wrote:
>
> >> > >> Well, spam is taking it a bit far I think :) I'm sorry if I came
> >> > >> across as rude, that was not my intention. You just misunderstood what
> >> > >> transactions I was talking about. Do give the SIP RFC's and JAIN SIP
> >> > >> specification a read, it should clarify a lot about what's going on
> >> > >> behind the scenes in the SIP RA.
>
> >> > >> Now, to get back on topic: Does anyone have an idea about what's going
> >> > >> on in the OP?
>
> >> > >> BR,
> >> > >> -Calle
>
> >> > >> On Apr 19, 6:05 pm, Teresa Reis <zizata...@gmail.com> wrote:
>
> >> > >> > Sorry for the trouble that I cause, ...
> >> > >> > 2011/4/19 Carl-Magnus Björkell <nrgizer...@gmail.com>
>
> >> > >> > > Please don't hijack my thread. This is not about SIP transactions, but
> >> > >> > > the SLE...