Skip to main content

Is it possible to address a daemon-like service entity?

1 reply [Last post]
alexrug
Offline
Joined: 2009-08-27

Hi,

I have a question related to the daemon-like services. JSLEE 1.0 mentions the daemon-like Service entities. I am trying to implement a simple daemon which keeps track of the number of active SIP calls. My service is called CallCounter and it is implemented with CallCounterSbb. On ServiceStarted event, the CallCounterSbb entity initializes a counter variable with 0, and whenever there's a SIP INVITE, that variable needs to be incremented.
On initial event such as a SIP INVITE, a ReceiveInvitesSbb processes the message. Is it possible that ReceiveInvitesSBB has direct access to the CallCounter service SBB - more precisely the call counter? How do I refer, from the existing CallCounter Service SBB (the one which is created & maintained by the service-started event)? Is there any way we can address daemon sbb entities in a JSLEE container?
I want to avoid using a database, since creating a database transaction for each call would be a huge overhead.

I hope I was clear with the problem. Any idea/thought would be of great help.

Thanks and Happy New Year!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vsharma72
Offline
Joined: 2010-02-18

It seems that this is an error in the dispatcher of the container when the container tried to dispatch the INVITE event to the doInvite method of the servlet. I think this could be due to a conflict in the jar files that contains org.mobicents.servlet.sip.message.SipServletRequestImpl and
javax.servlet.sip.SipServletRequest.

_________________
[url=http://www.thewatchhut.co.uk/special-offers/minimum-40-percent-off-sale.htm]discount citizen watches[/url]
[url=http://www.thewatchhut.co.uk/dreyfuss--co.htm]Dreyfuss Watches[/url]