[mobicents-public] creating simple IPBX with Mobicents JSLEE

13 views
Skip to first unread message

Jamal

unread,
May 5, 2010, 7:05:04 AM5/5/10
to mobicents-public
Good morning Mobicents community,
I have established a Mobicents developpement environment : Eclipse,
maven archetypes, jboss-server with mms
and i want to know steps to create a simple IPBX ( SIP call + RTP
session )
thankx very much

Bartosz Baranowski

unread,
May 5, 2010, 7:42:15 AM5/5/10
to mobicent...@googlegroups.com
1. MSS or JSLEE
2. did you browse through examples? A lot of examples show how to manage RTP+SIP for instance :call-controller2, converged(both MSS and JSLEE) .
3. did you try STF?

Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

Jean Deruelle

unread,
May 5, 2010, 8:12:13 AM5/5/10
to mobicent...@googlegroups.com
You may want to contribute to the existing IPBX

Jean

jamal ouardi

unread,
May 5, 2010, 11:27:20 AM5/5/10
to mobicent...@googlegroups.com
I'm using JSLEE and i already tried sip-services example, and i still have problems with call-controller2 because MMS don't synchronyze with the slee container !

Bartosz Baranowski

unread,
May 5, 2010, 11:50:09 AM5/5/10
to mobicent...@googlegroups.com
What do you mean "dont synchronize" ? Does example throw exception. Please attach log file.

Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.


jamal ouardi

unread,
May 5, 2010, 12:55:32 PM5/5/10
to mobicent...@googlegroups.com
I mean that the media server is not solicited by the Slee Container to open RTP session with the UA,and its console don't change when the VoiceMail SBB is executed in container. here is the console of JSLEE container :


16:53:45,049 INFO  [SipResourceAdaptor] Received Response:
SIP/2.0 200 OK
CSeq: 917 INVITE
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK1273078420981_0.16555791608341686_1273078420981,SIP/2.0/UDP 127.0.0.1:5072;rport=5072;branch=z9hG4bKdhwfsnbj;received=127.0.0.1
User-Agent: Ekiga/3.2.6
From: "torosvi" <sip:vm...@127.0.0.1>;tag=ajeev
Call-ID: rdtgmfsxqrbsokz@jamal-laptop
To: <sip:tor...@127.0.0.1>;tag=90a8396d-d456-df11-8570-001e65e2d504
Contact: <sip:tor...@127.0.0.1:5061>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,SUBSCRIBE,NOTIFY,REFER,MESSAGE,INFO,PING
Content-Type: application/sdp
Record-Route: <sip:127.0.0.1:5060;maddr=127.0.0.1;transport=udp;cluster=mobi-cents;lr=>
Content-Length: 242

v=0
o=- 1273078420 1 IN IP4 127.0.0.1
s=Opal SIP Session
c=IN IP4 127.0.0.1
t=0 0
m=audio 5064 RTP/AVP 98 101
a=sendrecv
a=rtpmap:98 Speex/16000/1
a=fmtp:98 sr=16000,mode=any
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16,32,36

16:53:52,702 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKdhwfsnbj:INVITE terminated
16:53:52,722 INFO  [VoiceMailSbb] ########## VOICE MAIL SBB: onActivityEndEvent[ServerTransaction[z9hG4bKdhwfsnbj]] ##########
16:53:54,231 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bK7679fc61-d456-df11-8570-001e65e2d504:REGISTER terminated
16:53:57,428 INFO  [SipResourceAdaptor] Received Request:
REGISTER sip:127.0.0.1 SIP/2.0
CSeq: 2 REGISTER
Via: SIP/2.0/UDP 127.0.0.1:5061;branch=z9hG4bKb82e0477-d456-df11-8570-001e65e2d504;rport=5061;received=127.0.0.1
User-Agent: Ekiga/3.2.6
From: <sip:tor...@127.0.0.1>;tag=f8bbfb61-d456-df11-8570-001e65e2d504
Call-ID: 2ca6fb61-d456-df11-8570-001e65e2d504@jamal-laptop
To: <sip:tor...@127.0.0.1>
Contact: <sip:tor...@172.16.114.49>;q=1
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,SUBSCRIBE,NOTIFY,REFER,MESSAGE,INFO,PING
Expires: 3600
Max-Forwards: 70
Content-Length: 0


16:53:57,463 INFO  [LocationSbb] binding updated: sipAddress=sip:tor...@127.0.0.1,contactAddress=sip:tor...@172.16.114.49
16:53:57,464 INFO  [RegisterSbb] sending response:
SIP/2.0 200 OK
CSeq: 2 REGISTER
Via: SIP/2.0/UDP 127.0.0.1:5061;branch=z9hG4bKb82e0477-d456-df11-8570-001e65e2d504;rport=5061;received=127.0.0.1
From: <sip:tor...@127.0.0.1>;tag=f8bbfb61-d456-df11-8570-001e65e2d504
Call-ID: 2ca6fb61-d456-df11-8570-001e65e2d504@jamal-laptop
To: <sip:tor...@127.0.0.1>
Contact: <sip:tor...@172.16.114.49>;expires=3600;q=1.0
Date: Wed, 05 May 2010 16:53:57 GMT
Content-Length: 0


16:53:57,465 INFO  [ServerTransactionWrapper] ServerTransaction[z9hG4bKb82e0477-d456-df11-8570-001e65e2d504] sending response:
SIP/2.0 200 OK
CSeq: 2 REGISTER
Via: SIP/2.0/UDP 127.0.0.1:5061;branch=z9hG4bKb82e0477-d456-df11-8570-001e65e2d504;rport=5061;received=127.0.0.1
From: <sip:tor...@127.0.0.1>;tag=f8bbfb61-d456-df11-8570-001e65e2d504
Call-ID: 2ca6fb61-d456-df11-8570-001e65e2d504@jamal-laptop
To: <sip:tor...@127.0.0.1>
Contact: <sip:tor...@172.16.114.49>;expires=3600;q=1.0
Date: Wed, 05 May 2010 16:53:57 GMT
Content-Length: 0


16:54:16,586 INFO  [SipResourceAdaptor] Received Request:
BYE sip:vm...@127.0.0.1:5072 SIP/2.0
Route: <sip:127.0.0.1:5060;maddr=127.0.0.1;transport=udp;cluster=mobi-cents;lr=>
CSeq: 2 BYE
Via: SIP/2.0/UDP 127.0.0.1:5062;branch=z9hG4bK48876a82-d456-df11-8570-001e65e2d504;rport=5062;received=127.0.0.1
From: <sip:tor...@127.0.0.1>;tag=90a8396d-d456-df11-8570-001e65e2d504
Call-ID: rdtgmfsxqrbsokz@jamal-laptop
To: "torosvi" <sip:vm...@127.0.0.1>;tag=ajeev
Contact: <sip:tor...@127.0.0.1:5061>
Max-Forwards: 70
Content-Length: 0


16:54:16,592 INFO  [ProxySbb] processing request: method =
BYE
16:54:16,598 INFO  [ClientTransactionWrapper] ClientTransaction[z9hG4bK1273078456597_0.7735527762958957_1273078456597] sending request:
BYE sip:vm...@127.0.0.1:5072 SIP/2.0
CSeq: 2 BYE
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK1273078456597_0.7735527762958957_1273078456597,SIP/2.0/UDP 127.0.0.1:5062;branch=z9hG4bK48876a82-d456-df11-8570-001e65e2d504;rport=5062;received=127.0.0.1
From: <sip:tor...@127.0.0.1>;tag=90a8396d-d456-df11-8570-001e65e2d504
Call-ID: rdtgmfsxqrbsokz@jamal-laptop
To: "torosvi" <sip:vm...@127.0.0.1>;tag=ajeev
Contact: <sip:tor...@127.0.0.1:5061>
Max-Forwards: 69
Record-Route: <sip:127.0.0.1:5060;maddr=127.0.0.1;transport=udp;cluster=mobi-cents;lr=>
Content-Length: 0


16:54:16,604 INFO  [SipResourceAdaptor] Received Response:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK1273078456597_0.7735527762958957_1273078456597,SIP/2.0/UDP 127.0.0.1:5062;received=127.0.0.1;rport=5062;branch=z9hG4bK48876a82-d456-df11-8570-001e65e2d504

Jamal

unread,
May 6, 2010, 5:16:49 AM5/6/10
to mobicents-public
another problem with MMS that when I start it, i have log4j
exception ! Console :

log4j:WARN No appenders could be found for logger
(org.mobicents.media.server.bootstrap.Main).
log4j:WARN Please initialize the log4j system properly.
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: ../log/server.log (No such file or
directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:
167)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:
163)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:2

please help !

Bartosz Baranowski

unread,
May 6, 2010, 6:42:24 AM5/6/10
to mobicent...@googlegroups.com
Ensure MMS runs with rights to create directories or create it, or change it to proper URL where MMS can store log.


Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.


jamal ouardi

unread,
May 6, 2010, 7:02:49 AM5/6/10
to mobicent...@googlegroups.com
ook. I will try this
Reply all
Reply to author
Forward
0 new messages