Skip to main content

Basic prsence functionalities using JSIP RA 1.2

4 replies [Last post]
chemadh
Offline
Joined: 2007-03-21
Points: 0

Hi everybody,

Before all, congratulations for this JSLEE initiative, the container evolution rhythm is really impresive.

I'm quite new in Mobicents and I'm finding problems to develope a service with simple presence functionalities. Concretely, I am not able to subscribe my service to PUBLISH events. Looking at the list of event types deployed in the container (using the last binary version of JSIP RA 1.2 downloadable from www.mobicents.org) I only can find NOTIFY and SUBSCRIBE events referring to presence.

How can I get my service suscribed to PUBLISH event? May be I need to use a newer version of the JSIP RA?

Thanks in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chemadh
Offline
Joined: 2007-03-21
Points: 0

Fine! I've downloaded the source version from project's SVN and now I can receive Publish events. Thanks a lot for your help, I hope the binary version will be updated soon too.

baranowb
Offline
Joined: 2006-01-09
Points: 0

Hey. Thats weird. You should see all events printed - those You can subscribe for:

This should cause them to print out - name of methods(which are mapped to events, except EXTENSION - which is used if Request method cant be found in this set)
[code]
static {
String[] tmp = { Request.ACK, Request.BYE, Request.CANCEL,
Request.INFO, Request.INVITE, Request.MESSAGE, Request.NOTIFY,
Request.OPTIONS, Request.PRACK, Request.PUBLISH, Request.REFER,
Request.REGISTER, Request.SUBSCRIBE, Request.UPDATE };
for (int i = 0; i < tmp.length; i++)
rfc3261Methods.add(tmp[i]);

log.info("\n================SIP METHODS====================\n"
+ rfc3261Methods
+ "\n===============================================");
}
[/code]

eduardomartins
Offline
Joined: 2005-10-10
Points: 0

I downloaded the binary and in fact it's an old build, that has not the publish event. It's going to be fixed asap.

eduardomartins
Offline
Joined: 2005-10-10
Points: 0

Older versions of the sip ra didn't had the publish event on the ratype. Get the last version from http://slee-sip-ra.dev.java.net