JSR 309 example w/ mms-Jboss-5.1.0.GA

175 views
Skip to first unread message

Mick McLaughlin

unread,
Sep 10, 2009, 11:00:20 AM9/10/09
to mobicent...@googlegroups.com
I am very new to mobicents and trying to get up to speed with the JSR 309 example described here: http://www.mobicents.org/mss-jsr309-demo.html
I'm currently at the step to drop media-jsr309-dar.properties in server/default/conf/dars directory but this version of JBoss which I just downloaded does not have this directory in conf.  I downloaded mms-jboss from http://sourceforge.net/projects/mobicents/files/ under 2.0.0.Beta2.

I do have mms-jboss-4.2.3.GA installed as well and I notice dars is present in conf...  I tried the jsr 309 example with this app server but it didn't work, and the documentation states that it needs to be run on JBoss 5. 

Am I missing something here?

thanks,
/mick 

Jean Deruelle

unread,
Sep 10, 2009, 11:07:07 AM9/10/09
to mobicent...@googlegroups.com
This example is working on top of Mobicents Sip Servlets on JBoss 5 which is bundling Mobicents Media Server not working on the standalone Mobicents Media Server.

Jean

Mick McLaughlin

unread,
Sep 10, 2009, 1:08:01 PM9/10/09
to mobicent...@googlegroups.com
Thank you for the link.  I downloaded it and have it running. 

One thing to note:  the directions say to change darConfigurationFileLocation attribute in Server.xml to media-jsr309-dar.properties which is located in the server/default/deploy/jboss-web.deployer directory. 

The directory is not present in this JBoss version.  I ended up finding it in jbossweb.sar.  Hopefully it's the correct file...  I am restarting JBoss with the new configuration now to see how it works out.

thanks again for the help!

Mick McLaughlin

unread,
Sep 10, 2009, 2:35:15 PM9/10/09
to mobicent...@googlegroups.com
I have 1 more small question hoping someone can help me out with.  The example JSR309 app is running very well however, I cannot seem to find the recorded message which is suppose to be saved as test.wav.  I did a search on my computer but it came up with nothing.  I don't know where the home directory is suppose to be.

I did find all the other wave files in a jboss directory:
C:\mss-1.0-jboss-5.1.0.GA\server\default\tmp\4j5d6z3z-aikydh-fzfsfg5y-1-fzfshhq0-cq\media-jsr309-servlet.war\audio

temp.wav is not in this directory.  Should I be looking somewhere else, or is there a place I need to define where to save any recorded messages?

thanks again.

Oleg Kulikov

unread,
Sep 10, 2009, 2:38:16 PM9/10/09
to mobicent...@googlegroups.com
One comment. It is possible to use stanalone media server 2.x with this example. But for development would be easy to use JBoss version of media server

2009/9/10 Mick McLaughlin <mclaugh...@gmail.com>

Mick McLaughlin

unread,
Sep 10, 2009, 3:37:20 PM9/10/09
to mobicent...@googlegroups.com
Thanks Oleg.

Actually I am using the JBoss  version of the media server right now.  I found this exception in the server log:

2009-09-10 14:36:27,752 ERROR [org.mobicents.media.server.spi.resource.Recorder] (Thread-97) Audio stream write error
java.io.IOException: Write error
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:260)
    at com.sun.media.sound.WaveFileWriter.writeWaveFile(WaveFileWriter.java:238)
    at com.sun.media.sound.WaveFileWriter.write(WaveFileWriter.java:117)
    at javax.sound.sampled.AudioSystem.write(AudioSystem.java:1297)
    at org.mobicents.media.server.impl.resource.audio.RecorderImpl$RecorderRunnable.run(RecorderImpl.java:228)
    at java.lang.Thread.run(Thread.java:619)

This explains why I don't see test.wav after recording my message, but I'm not sure why the error is coming up. I will pull the source code into my IDE when I get home from work and try to run it in debug mode to see if I can get a better understanding of whats really going on.

thanks.

Oleg Kulikov

unread,
Sep 10, 2009, 10:58:29 PM9/10/09
to mobicent...@googlegroups.com
There is a property of IVR endpoint- recordDir. Also check that you have write permissions.

Oleg

2009/9/10 Mick McLaughlin <mclaugh...@gmail.com>

Jean Deruelle

unread,
Sep 11, 2009, 2:37:25 AM9/11/09
to mobicent...@googlegroups.com
Fixed !
Thanks for the feedback.

Jean

krzysiek

unread,
Nov 4, 2009, 7:05:32 AM11/4/09
to mobicents-public
Hi,

I have few problems with JSR 309 example. The link to war file from
the main site (http://www.mobicents.org/mss-jsr309-demo.html) is
broken.
I've tried to run the example by compiling the source files. (By the
way i can't checkout the source from svn with TortoiseSVN , i get
"could not resolve hostname mobicents.googlecode.com" error, i had to
download each file manually). When I import the sources to a netbeans
project i get the ' package javax.media.mscontrol does not exist'
error. I have imported mscontrol.jar and mobicents-jsr309-
impl-2.0.0.BETA2.jar. I've tried to change the imports from for
example javax.media.mscontrol.MediaSession to
org.mobicents.javax.media.mscontrol.MediaSession (I've noticed that
the above jars have this package) but nothing helps.
Im using mms embedded in jboss and i have set up jboss as the server
for my project. First i tried to run the example on sailfin with
standalone mms but no luck.
Can anybody give me some advice how to run the example?

On 11 Wrz, 07:37, Jean Deruelle <jean.derue...@gmail.com> wrote:
> Fixed !
> Thanks for the feedback.
> Jean
>
> On Thu, Sep 10, 2009 at 7:08 PM, Mick McLaughlin
> <mclaughlin.m...@gmail.com>wrote:
>
> > Thank you for the link.  I downloaded it and have it running.
>
> > One thing to note:  the directions say to change
> > darConfigurationFileLocation attribute in Server.xml to
> > media-jsr309-dar.properties which is located in the
> > server/default/deploy/jboss-web.deployer directory.
>
> > The directory is not present in this JBoss version.  I ended up finding it
> > in jbossweb.sar.  Hopefully it's the correct file...  I am restarting JBoss
> > with the new configuration now to see how it works out.
>
> > thanks again for the help!
>
> > On Thu, Sep 10, 2009 at 11:07 AM, Jean Deruelle <jean.derue...@gmail.com>wrote:
>
> >> This example is working on top of Mobicents Sip Servlets on JBoss 5 which
> >> is bundling Mobicents Media Server not working on the standalone Mobicents
> >> Media Server. You can grab the
> >> binary mss-1.0-jboss-5.1.0.GA-0907231440-TECH-PREVIEW.zip from here
> >>http://sourceforge.net/projects/mobicents/files/Mobicents%20Sip%20Ser...
>
> >> Jean
>
> >> On Thu, Sep 10, 2009 at 5:00 PM, Mick McLaughlin <
> >> mclaughlin.m...@gmail.com> wrote:
>
> >>> I am very new to mobicents and trying to get up to speed with the JSR 309
> >>> example described here:http://www.mobicents.org/mss-jsr309-demo.html
> >>> I'm currently at the step to drop media-jsr309-dar.properties in
> >>> server/default/conf/dars directory but this version of JBoss which I just
> >>> downloaded does not have this directory in conf.  I downloaded mms-jboss
> >>> fromhttp://sourceforge.net/projects/mobicents/files/under 2.0.0.Beta2.

Jean Deruelle

unread,
Nov 5, 2009, 4:40:05 AM11/5/09
to mobicent...@googlegroups.com
Thanks for letting us know, I fixed the link.
Make sure you get the mscontrol jar from here 
If you want to use it with sailfin you'll have to tweak the source code so that the peer address of the MGCP stack is the IP address of the MMS standalone (if they are both on localhost you should be fine)
But we recommend using Mobicents Sip Servlets, no support can be offered on sailfin. I would be interested to know why you choose Sailfin over Mobicents Sip Servlets so that we can improve where you think we are lacking.

Thanks in advance
Best regards
Jean

krzysiek

unread,
Nov 9, 2009, 4:14:05 PM11/9/09
to mobicents-public
Thanks for such a quick response, i wasn't able to test it earlier.
Today i managed to run the example. I have used the standalone version
of mms and jboss mss. First I tried to use the version embedded in
jboss, but i got a bit confused, is this version configured to run sip
servlets? (if, yes i think there should be sip-servlet-manager
deployed, as it is in the case of mss).

We're testing different servers/solutions concerning sip telco
services. Sailfin was the first choice because, we were already
familiar with glassfish. We have a service running on sailfin, which
right now is undergoing specific tests. Sailfin seems very stable. But
we are open for other solutions.
We are using a custom (our own implementation) application router for
our service on sailfin. Is it possible to deploy own application
router on jboss? In the documentation i've seen only information about
DAR and DCF.

Thanks one more time,
Krzysiek


On 5 Lis, 10:40, Jean Deruelle <jean.derue...@gmail.com> wrote:
> Thanks for letting us know, I fixed the link.
> Make sure you get the mscontrol jar from herehttp://repository.jboss.com/maven2/org/mobicents/external/jsr309/msco...

Vladimir Ralev

unread,
Nov 9, 2009, 6:55:36 PM11/9/09
to mobicent...@googlegroups.com
Hi,

It is not clear which distribution you tried to use that is missing
sip-servlet-management console. There are no such distributions and I
guess you have downloaded a plain JBoss Application Server from
jboss.org. The telco products are available only in the downloads
clearly marked as "mobicents"...-something (mobicents-all or sip
servlets, etc).

Sure, it's possible to deploy your own app router. We implement all
JSR-289 compliant methods - either remove the Mobicents app router jar
and put your own jar in JBOSS_HOME/server/*/deploy/jboss-web.deployer/
OR just put your app router jar and run JBoss with run.sh
-Djavax.servlet.sip.ar.spi.SipApplicationRouterProvider=<your provider
class>

We should be able to cover the significant part of what Sailfin has to
offer + our own Mobicents-specific features. Especially with the
upcoming release. If you have specific concerns just let us know.

krzysiek

unread,
Nov 10, 2009, 4:24:19 AM11/10/09
to mobicents-public
I have used the mms-jboss-5.1.0.GA-2.0.0.BETA2 downloaded from
http://www.mobicents.org/mms/mms-downloads.html. The only applications
running on JBoss are ROOT and admin-console, i can't find the sip-
servlet-management console.

Thanks for the hint about the custom application router.

On 10 Lis, 00:55, Vladimir Ralev <vladimir.ra...@gmail.com> wrote:
> Hi,
>
> It is not clear which distribution you tried to use that is missing
> sip-servlet-management console. There are no such distributions and I
> guess you have downloaded a plain JBoss Application Server from
> jboss.org. The telco products are available only in the downloads
> clearly marked as "mobicents"...-something (mobicents-all or sip
> servlets, etc).
>
> Sure, it's possible to deploy your own app router. We implement all
> JSR-289 compliant methods - either remove the Mobicents app router jar
> and put your own jar in JBOSS_HOME/server/*/deploy/jboss-web.deployer/
> OR just put your app router jar and run JBoss with run.sh
> -Djavax.servlet.sip.ar.spi.SipApplicationRouterProvider=<your provider
> class>
>
> We should be able to cover the significant part of what Sailfin has to
> offer + our own Mobicents-specific features. Especially with the
> upcoming release. If you have specific concerns just let us know.
>

Vladimir Ralev

unread,
Nov 10, 2009, 2:59:57 PM11/10/09
to mobicent...@googlegroups.com
Yes, you are right, the MMS distro doesn't contain any SIP container.
You would need Sip Servlets or Mobicents ALL to host SIP Sip Servlets
applications.

If you need MMS 2 + Sip Servlets in the same machine then you should
look for Mobicents Sip Servlets for JBOSs AS 5.1. This is the last
release http://downloads.sourceforge.net/project/mobicents/Mobicents%20Sip%20Servlets/Mobicents%20Sip%20Servlets%201.0/mss-1.0-jboss-5.1.0.GA-0907231440-TECH-PREVIEW.zip

But there is a much newer build in the nightly snapshots
http://hudson.jboss.org/hudson/view/Mobicents/job/MobicentsSipServletsRelease/
if you like unstable (but better) binary.

Either way, we'd be happy to hear more requirements, especially if
something present in Sailfin is missing.

krzysiek

unread,
Nov 11, 2009, 3:05:43 PM11/11/09
to mobicents-public
As i wrote before i had used Mobicents Sip Servlets for JBOSs AS 5.1
and the standalone MMS - the example worked fine.
Is it possible to play announcents directly from the filesystem
folder, not from url? I want to modify the example to play the files i
had recored using IVR endpoint of MMS. Also i would't like to give
users access to announcement files (now they're available through
http).

Until now I haven't noticed any significant difference between jboss
and sailfin. Though we're still working in development environment.
I'll let you know if i'll find something worth noticing.

On 10 Lis, 20:59, Vladimir Ralev <vladimir.ra...@gmail.com> wrote:
> Yes, you are right, the MMS distro doesn't contain any SIP container.
> You would need Sip Servlets or Mobicents ALL to host SIP Sip Servlets
> applications.
>
> If you need MMS 2 + Sip Servlets in the same machine then you should
> look for Mobicents Sip Servlets for JBOSs AS 5.1. This is the last
> releasehttp://downloads.sourceforge.net/project/mobicents/Mobicents%20Sip%20...
>
> But there is a much newer build in the nightly snapshotshttp://hudson.jboss.org/hudson/view/Mobicents/job/MobicentsSipServlet...

Vladimir Ralev

unread,
Nov 11, 2009, 3:33:50 PM11/11/09
to mobicent...@googlegroups.com
for file system you can use URLs like file:///home/audio/file.wav
(unix) or file:///c:/somewhere/file.wav (windows)
Reply all
Reply to author
Forward
0 new messages