Skip to main content

connecting mobicents to openimscore

20 replies [Last post]
ninil
Offline
Joined: 2009-07-07

hello,

i am trying to configure mobicent with openimscore to enable notification service. the openimscore plateforme works perfectly.
there is a problem to connect mobicent to OpenIMS Core.

In <<>>, I need to modify the <<>> file in the <<>> archive.
my question is about the "BETA3", i find in my directories "BETA2". how can i get BETA3, or is it the same for configuration? i am using mobicents-all-1.2.0.GA-jboss-4.2.3.GA version.

thank you in advance!

Best regards,
ninil

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexandrem
Offline
Joined: 2005-10-19

> 19:18:49,441 INFO [DiameterStackMultiplexer] AVP Dictionary file successfuly parsed!
> 19:18:49,513 ERROR [STDERR] 10 juil. 2009 19:18:49
> org.jdiameter.server.impl.MutablePeerTableImpl start
> ATTENTION: Can not create server socket
> org.jdiameter.client.api.io.TransportException:
> java.lang.Exception: java.net.BindException: Address already in use
>
> Caused by: java.lang.Exception:
> java.net.BindException: Address already in use
> at org.jdiameter.server.impl.io.tcp.NetWorkGuard.(NetWorkGuard.java:52)
> at org.jdiameter.server.impl.io.TransportLayerFactory.cre
> at NetWorkGuard(TransportLayerFactory.java:33)
> ... 98 more
> Caused by: java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind(Native Method)
> at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
> at org.jdiameter.server.impl.io.tcp.NetWorkGuard.(NetWorkGuard.java:44)

Something is already using port 1812 so the Diameter stack cannot be started... please change the port to some that's not being used. Remember to change it in the jdiameter-config.xml and the example.properties.

Alexandre Mendonca
JBoss R&D

ninil
Offline
Joined: 2009-07-07

hello,

we have changed the port number with many other numbers but without success!

below you will find the XML file. we are confused about an IP Address (the underligned part below) in the

part. should we put the IP Address of mobicents or hss?

10:24:40,496 INFO [DiameterShClient]
+----------------------------------- HEADER ----------------------------------+
| Version.................1
| Command-Flags...........R[true] P[true] E[false] T[false]
| Command-Code............308
| Application-Id..........16777217
| Hop-By-Hop Identifier...0
| End-To-End Identifier...81788930
+------------------------------------ AVPs -----------------------------------+
| AVP: Code[259] VendorID[0] Value[16777217] Flags[M=true;E=false;V=false]
| AVP: Code[263] VendorID[0] Value[123sip-servlets456;1247307880488] Flags[M=false;E=false;V=false]
| AVP: Code[260] VendorID[0] Value[] Flags[M=true;E=false;V=false]
| AVP: Code[266] VendorID[0] Value[(¯] Flags[M=true;E=false;V=false]
| AVP: Code[258] VendorID[0] Value[] Flags[M=true;E=false;V=false]
| AVP: Code[277] VendorID[0] Value[2] Flags[M=true;E=false;V=false]
| AVP: Code[264] VendorID[0] Value[mobicents.iamnet.ma] Flags[M=true;E=false;V=false]
| AVP: Code[296] VendorID[0] Value[iamnet.ma] Flags[M=true;E=false;V=false]
| AVP: Code[293] VendorID[0] Value[aaa://192.168.100.164:3868] Flags[M=true;E=false;V=false]
| AVP: Code[283] VendorID[0] Value[iamnet.ma] Flags[M=true;E=false;V=false]
| AVP: Code[700] VendorID[10415] Value[] Flags[M=true;E=false;V=true]
| AVP: Code[601] VendorID[10415] Value[sip:alice@iamnet.ma] Flags[M=true;E=true;V=true]
| AVP: Code[705] VendorID[10415] Value[0] Flags[M=true;E=false;V=true]
| AVP: Code[703] VendorID[10415] Value[11] Flags[M=true;E=false;V=true]
+-----------------------------------------------------------------------------+

10:24:40,513 ERROR [STDERR] 11 juil. 2009 10:24:40 org.jdiameter.client.impl.fsm.PeerFSMImpl$1 run
INFO: Error during processing fsm event
java.lang.IllegalStateException: Connection is down
at org.jdiameter.server.impl.fsm.PeerFSMImpl$6.processEvent(PeerFSMImpl.java:395)
at org.jdiameter.client.impl.fsm.PeerFSMImpl$1.run(PeerFSMImpl.java:129)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
10:24:45,225 ERROR [STDERR] 11 juil. 2009 10:24:45 org.jdiameter.client.impl.transport.tcp.TCPTransportClient run
INFO: Read thread is stopped
10:25:05,266 ERROR [STDERR] 11 juil. 2009 10:25:05 org.jdiameter.client.impl.transport.tcp.TCPTransportClient run
INFO: Read thread is stopped

jdiameter-config.xml :
































[u] [/u]








best regards,
ninil

ninil
Offline
Joined: 2009-07-07

hello,
I have just seen that when i run the hss i receive that :

ser with Public Identity: sip:bob@iamnet.ma and all its coresponding implicit-set identities are Un-Registered!
2009-07-11 20:17:09,112 DEBUG de.fhg.fokus.hss.main.Task - execute Processing LIR!
2009-07-11 20:17:09,648 DEBUG de.fhg.fokus.hss.main.Task - execute Sending Sh-PNR!
2009-07-11 20:17:09,653 DEBUG de.fhg.fokus.hss.main.Task - execute Sending Sh-PNR!
2009-07-11 20:17:09,677 ERROR de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - sendMessage DiameterPeer: Peer mobicents.iamnet.ma not found in peer list.
2009-07-11 20:17:09,678 ERROR de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - sendMessage DiameterPeer: Peer mobicents.iamnet.ma not found in peer list.
2009-07-11 20:17:19,922 DEBUG de.fhg.fokus.hss.main.Task - execute Processing LIR!
2009-07-11 20:18:07,756 DEBUG de.fhg.fokus.hss.main.Task - execute Processing UAR!
2009-07-11 20:18:07,775 DEBUG de.fhg.fokus.hss.main.Task - execute Processing MAR!
2009-07-11 20:18:07,798 DEBUG de.fhg.fokus.hss.cx.op.MAR - generateAuthVector Auth-Scheme is Digest-AKA
2009-07-11 20:18:07,800 DEBUG de.fhg.fokus.hss.auth.DigestAKA - getAuthenticationVector Authentication-Scheme: AKAv1!
2009-07-11 20:18:07,813 DEBUG de.fhg.fokus.hss.main.Task - execute Processing UAR!
2009-07-11 20:18:07,819 DEBUG de.fhg.fokus.hss.main.Task - execute Processing SAR!
2009-07-11 20:18:07,834 INFO de.fhg.fokus.hss.cx.op.SAR - processRequest User with Public Identity: sip:alice@iamnet.ma and all its coresponding implicit-set identities are De-Registered!
2009-07-11 20:18:09,682 DEBUG de.fhg.fokus.hss.main.Task - execute Sending Sh-PNR!
2009-07-11 20:18:09,705 ERROR de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - sendMessage DiameterPeer: Peer mobicents.iamnet.ma not found in peer list.
2009-07-11 20:18:23,065 DEBUG de.fhg.fokus.hss.main.Task - execute Processing LIR!

I think that the probleme is in the jdiamer file.

best regards,
ninil

baranowb
Offline
Joined: 2006-01-09

Clue lies here afaik:

Peer mobicents.iamnet.ma not found in peer list.

hss cant find diameter peer identified by this fqdn.

alexandrem
Offline
Joined: 2005-10-19

Do you have any Diameter console output ?

It's hard to tell what can be wrong without knowing exactly where does it stops... Please paste your console output (use http://pastebin.com/ for example... to keep the thread readable :))

Regards,
Alexandre Mendonca
JBoss R&D

ninil
Offline
Joined: 2009-07-07

Hello,

when i have started JBoss , i receive :

19:18:49,441 INFO [DiameterStackMultiplexer] AVP Dictionary file successfuly parsed!
19:18:49,513 ERROR [STDERR] 10 juil. 2009 19:18:49 org.jdiameter.server.impl.MutablePeerTableImpl start
ATTENTION: Can not create server socket
org.jdiameter.client.api.io.TransportException: java.lang.Exception: java.net.BindException: Address already in use

Caused by: java.lang.Exception: java.net.BindException: Address already in use
at org.jdiameter.server.impl.io.tcp.NetWorkGuard.(NetWorkGuard.java:52)
at org.jdiameter.server.impl.io.TransportLayerFactory.createNetWorkGuard(TransportLayerFactory.java:33)
... 98 more
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
at org.jdiameter.server.impl.io.tcp.NetWorkGuard.(NetWorkGuard.java:44)

19:18:58,041 WARN [ServiceController] Problem starting service jboss:service=Hypersonic,database=localDB
java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@a900789f[file =/home/kossay2/Bureau/mobicent/server/default/data/hypersonic/localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [/home/kossay2/Bureau/mobicent/server/default/data/hypersonic/localDB.lck] is presumably locked by another process.
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at org.jboss.jdbc.HypersonicDatabase.getConnection(HypersonicDatabase.java:768)

--- MBeans waiting for other MBeans ---
ObjectName: jboss:service=Hypersonic,database=localDB
State: FAILED
Reason: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@a900789f[file =/home/kossay2/Bureau/mobicent/server/default/data/hypersonic/localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [/home/kossay2/Bureau/mobicent/server/default/data/hypersonic/localDB.lck] is presumably locked by another process.
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=DefaultDS

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=Hypersonic,database=localDB
State: FAILED
Reason: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@a900789f[file =/home/kossay2/Bureau/mobicent/server/default/data/hypersonic/localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [/home/kossay2/Bureau/mobicent/server/default/data/hypersonic/localDB.lck] is presumably locked by another process.
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=DefaultDS

19:18:59,490 INFO [Http11Protocol] Démarrage de Coyote HTTP/1.1 sur http-192.168.100.168-8081
19:18:59,508 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-192.168.100.168-8009
19:18:59,547 INFO [SipProtocolHandler] Mobicents Sip Servlets sip stack properties : {gov.nist.javax.sip.SERVER_LOG=/home/kossay2/Bureau/mobicent/server/default/log/mss-jsip-messages.xml, javax.sip.AUTOMATIC_DIALOG_SUPPORT=off, gov.nist.javax.sip.LOG_MESSAGE_CONTENT=true, gov.nist.javax.sip.DELIVER_UNSOLICITED_NOTIFY=true, gov.nist.javax.sip.TRACE_LEVEL=32, javax.sip.STACK_NAME=Mobicents-SIP-Servlets, gov.nist.javax.sip.REENTRANT_LISTENER=true, gov.nist.javax.sip.DEBUG_LOG=/home/kossay2/Bureau/mobicent/server/default/log/mss-jsip-debuglog.txt, gov.nist.javax.sip.THREAD_POOL_SIZE=64}
19:18:59,805 INFO [SipProtocolHandler] Sip Connector started on ip address : 192.168.100.168,port 5080, useStun false, stunAddress null, stunPort : 0
19:18:59,872 INFO [SipApplicationDispatcherImpl] Congestion control background task started and checking every 30000 milliseconds.
19:18:59,907 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 22s:407ms

After have started mercuro, registred as alice and called bob , i receive :

19:23:45,037 INFO [SipApplicationDispatcherImpl] transaction gov.nist.javax.sip.stack.SIPServerTransaction@9fa1ec1a terminated => INVITE sip:bob@iamnet.ma SIP/2.0
Record-Route: ,
Route:
Via: SIP/2.0/UDP 192.168.100.163:6060;branch=z9hG4bK7d7b.9a29a234.0,SIP/2.0/UDP 192.168.100.161:4060;branch=z9hG4bK7d7b.e04ffdf6.0,SIP/2.0/UDP 192.168.100.14:2172;rport=2172;branch=z9hG4bK1247246517928
From: ;tag=8276
To:
Call-ID: M-a812a5288623ada40ad0ce497d9c8b2d
CSeq: 701 INVITE
Max-Forwards: 15
Allow: INVITE,ACK,CANCEL,BYE,MESSAGE,OPTIONS,NOTIFY,PRACK,UPDATE,REFER
Contact:
User-Agent: IM-client/OMA1.0 Mercuro-Bronze/v4.0.1381.0
Supported: sdp-anat,100rel,norefersub
P-Preferred-Service: urn:urn-xxx:3gpp-service.ims.icsi.mmtel
Content-Type: application/sdp
P-Access-Network-Info: ADSL; utran-cell-id-3gpp=00000000
Privacy: none
Allow-Events: presence,presence.winfo
P-Asserted-Identity:
P-Charging-Vector: icid-value="P-CSCFabcd4a57953b00000011";icid-generated-at=192.168.100.161;orig-ioi=iamnet.ma
Content-Length: 262

v=0
o=- 3344 3344 IN IP4 192.168.100.14
s=Mercuro IMS Client Session
t=0 0
m=audio 31254 RTP/AVP 0 8 101
c=IN IP4 192.168.100.14
a=rtpmap:0 PCMU/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=silenceSupp:off - - - -

19:23:45,038 INFO [SipApplicationDispatcherImpl] no sip session were returned for this transaction gov.nist.javax.sip.stack.SIPServerTransaction@9fa1ec1a

19:23:45,038 INFO [SipApplicationDispatcherImpl] no sip session were returned for this transaction gov.nist.javax.sip.stack.SIPServerTransaction@9fa1ec1a
19:24:12,455 INFO [SipApplicationDispatcherImpl] transaction gov.nist.javax.sip.stack.SIPClientTransaction@1c4abfa2 terminated => INVITE sip:bob@iamnet.ma SIP/2.0
Record-Route: ,
Route:
Via: SIP/2.0/UDP 192.168.100.168:5080;noappreturned=noappreturned;branch=z9hG4bK025c22e03b6b5fe078d0f427155496b3,SIP/2.0/UDP 192.168.100.163:6060;branch=z9hG4bK7d7b.9a29a234.0,SIP/2.0/UDP 192.168.100.161:4060;branch=z9hG4bK7d7b.e04ffdf6.0,SIP/2.0/UDP 192.168.100.14:2172;rport=2172;branch=z9hG4bK1247246517928
From: ;tag=8276
To:
Call-ID: M-a812a5288623ada40ad0ce497d9c8b2d
CSeq: 701 INVITE
Max-Forwards: 14
Allow: INVITE,ACK,CANCEL,BYE,MESSAGE,OPTIONS,NOTIFY,PRACK,UPDATE,REFER
Contact:
User-Agent: IM-client/OMA1.0 Mercuro-Bronze/v4.0.1381.0
Supported: sdp-anat,100rel,norefersub
P-Preferred-Service: urn:urn-xxx:3gpp-service.ims.icsi.mmtel
Content-Type: application/sdp
P-Access-Network-Info: ADSL; utran-cell-id-3gpp=00000000
Privacy: none
Allow-Events: presence,presence.winfo
P-Asserted-Identity:
P-Charging-Vector: icid-value="P-CSCFabcd4a57953b00000011";icid-generated-at=192.168.100.161;orig-ioi=iamnet.ma
Content-Length: 262

v=0
o=- 3344 3344 IN IP4 192.168.100.14
s=Mercuro IMS Client Session
t=0 0
m=audio 31254 RTP/AVP 0 8 101
c=IN IP4 192.168.100.14
a=rtpmap:0 PCMU/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=silenceSupp:off - - - -

19:24:12,455 INFO [SipApplicationDispatcherImpl] no sip session were returned for this transaction gov.nist.javax.sip.stack.SIPClientTransaction@1c4abfa2

After I have started mercuro, registred bob , i receive :

19:32:41,175 INFO [SipApplicationDispatcherImpl] no sip session were returned for this transaction gov.nist.javax.sip.stack.SIPServerTransaction@37437aec
19:32:41,588 INFO [SipApplicationDispatcherImpl] transaction gov.nist.javax.sip.stack.SIPServerTransaction@9796586f terminated => SUBSCRIBE sip:alice@iamnet.ma SIP/2.0
Record-Route: ,
Route:
Via: SIP/2.0/UDP 192.168.100.163:6060;branch=z9hG4bK93b4.e30ad131.0,SIP/2.0/UDP 192.168.100.161:4060;branch=z9hG4bK93b4.c2a6f79.0,SIP/2.0/UDP 192.168.100.190:59572;rport=59572;branch=z9hG4bK1247254331390
From: ;tag=491
To:
Call-ID: M-ad132e219be25d6c5d30fab9fe9db3a2
CSeq: 801 SUBSCRIBE
Max-Forwards: 15
Allow: INVITE,ACK,CANCEL,BYE,MESSAGE,OPTIONS,NOTIFY,PRACK,UPDATE,REFER
Contact:
User-Agent: IM-client/OMA1.0 Mercuro-Bronze/v4.0.1381.0
Expires: 600000
Event: presence
Supported: eventlist
Accept: multipart/related,application/rlmi+xml,application/pidf+xml,application/rpid+xml,application/xcap-diff+xml,message/external-body
P-Access-Network-Info: ADSL; utran-cell-id-3gpp=00000000
Privacy: none
Allow-Events: presence,presence.winfo
P-Asserted-Identity:
P-Charging-Vector: icid-value="P-CSCFabcd4a57973900000017";icid-generated-at=192.168.100.161;orig-ioi=iamnet.ma

19:32:41,588 INFO [SipApplicationDispatcherImpl] no sip session were returned for this transaction gov.nist.javax.sip.stack.SIPServerTransaction@9796586f
19:32:42,710 INFO [SipApplicationDispatcherImpl] transaction gov.nist.javax.sip.stack.SIPServerTransaction@de4b52d4 terminated => PUBLISH sip:bob@iamnet.ma SIP/2.0
Route:
Via: SIP/2.0/UDP 192.168.100.163:6060;branch=z9hG4bK4f7.d2596196.0,SIP/2.0/UDP 192.168.100.161:4060;branch=z9hG4bK4f7.dd574572.0,SIP/2.0/UDP 192.168.100.190:59572;rport=59572;branch=z9hG4bK1247254331391
From: ;tag=4827
To:
Call-ID: M-b6414d45dd221466af0dcdeb74fc8282
CSeq: 901 PUBLISH
Max-Forwards: 15
Allow: INVITE,ACK,CANCEL,BYE,MESSAGE,OPTIONS,NOTIFY,PRACK,UPDATE,REFER
User-Agent: IM-client/OMA1.0 Mercuro-Bronze/v4.0.1381.0
Expires: 600000
Event: presence
Content-Type: application/pidf-diff+xml
P-Access-Network-Info: ADSL; utran-cell-id-3gpp=00000000
Privacy: none
P-Asserted-Identity:
P-Charging-Vector: icid-value="P-CSCFabcd4a57973a00000018";icid-generated-at=192.168.100.161;orig-ioi=iamnet.ma
Content-Length: 1193

thank you very much!
best regards,
ninil

ninil
Offline
Joined: 2009-07-07

hello,

sorry for the previous message, we have forgot to copy the jar file.

after we have copied it, we retried.
so we register as alice and call bob.
but when bob is registred, he doesn't receive any notification about alice's call.

20:40:48,148 INFO [MessageDispatcher] Dispatching response SIP/2.0 404 Not Found - destination user not found on this S-CSCF
Via: SIP/2.0/UDP 192.168.100.168:5080;branch=z9hG4bK606f8e7ea1360bd68be1c17a93d76a67;appname=d8f44bf1,SIP/2.0/UDP 192.168.100.163:6060;branch=z9hG4bK7f38.3e006aa1.0,SIP/2.0/UDP 192.168.100.161:4060;branch=z9hG4bK7f38.5f1a3986.0,SIP/2.0/UDP 192.168.100.14:1049;rport=1049;branch=z9hG4bK1247251213694
From: ;tag=19857
To: ;tag=a70dec21a7d0c494be4d14b87e180ede-294b
Call-ID: M-d005d223282474da7f7c73b0b14fb389
CSeq: 801 INVITE
Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (i386/linux))
Warning: 392 192.168.100.163:6060 "Noisy feedback tells: pid=15112 req_src_ip=192.168.100.162 req_src_port=5060 in_uri=sip:bob@iamnet.ma out_uri=sip:bob@iamnet.ma via_cnt==3"
Content-Length: 0

to following App/servlet => org.mobicents.servlet.sip.example.DiameterOpenIMSApplication/DiameterOpenIMSSipServlet
20:40:48,148 INFO [DiameterOpenIMSSipServlet] Proccessing Error Response (404)...
20:40:48,150 INFO [DiameterOpenIMSSipServlet] Created Missed Call: From[sip:alice@iamnet.ma], To[sip:bob@iamnet.ma]/URI[sip:bob@iamnet.ma], Date[10/07/2009 at 20:40:48]
20:40:48,150 INFO [DiameterOpenIMSSipServlet] Added new missed call to sip:bob@iamnet.ma list. (current size: 1)
20:40:48,151 INFO [InitialRequestDispatcher] Request event dispatched to org.mobicents.servlet.sip.example.DiameterOpenIMSApplication
20:41:10,629 INFO [SipApplicationDispatcherImpl] transaction gov.nist.javax.sip.stack.SIPServerTransaction@14db3ffd terminated => REGISTER sip:192.168.100.168:5080 SIP/2.0

20:41:20,658 INFO [SipApplicationDispatcherImpl] sip session (sip:alice@iamnet.ma,19857,sip:bob@iamnet.ma,M-d005d223282474da7f7c73b0b14fb389,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication) returned for this transaction gov.nist.javax.sip.stack.SIPClientTransaction@4b2dd6a2
20:41:20,658 INFO [SipApplicationDispatcherImpl] session (sip:alice@iamnet.ma,19857,sip:bob@iamnet.ma,M-d005d223282474da7f7c73b0b14fb389,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication) is valid ? :true
20:41:20,658 INFO [SipApplicationDispatcherImpl] Sip session (sip:alice@iamnet.ma,19857,sip:bob@iamnet.ma,M-d005d223282474da7f7c73b0b14fb389,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication) is ready to be invalidated ? :false

after the registration of bob:

20:43:37,383 INFO [SipApplicationDispatcherImpl] no sip session were returned for this transaction gov.nist.javax.sip.stack.SIPServerTransaction@25107e83
20:43:48,115 INFO [SipApplicationSessionImpl] Invalidating the following sip application session (1247258448114673000,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication)
20:43:48,115 INFO [SipApplicationSessionImpl] The following sip application session (1247258448114673000,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication) has been invalidated
20:43:48,118 INFO [SipApplicationSessionImpl] Invalidating the following sip application session (1247258448030728000,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication)
20:43:48,118 INFO [SipSessionImpl] Invalidating the sip session (sip:alice@iamnet.ma,19857,sip:bob@iamnet.ma,M-d005d223282474da7f7c73b0b14fb389,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication)
20:43:48,119 INFO [SipApplicationSessionImpl] The following sip application session (1247258448030728000,org.mobicents.servlet.sip.example.DiameterOpenIMSApplication) has been invalidated

thank you for your help!
best regards,
ninil

Message was edited by: ninil

baranowb
Offline
Joined: 2006-01-09

iir since b3 conbf files are moved into exploded sar. would suggest to move to 1.0.1GA which should be out this week.

ninil
Offline
Joined: 2009-07-07

thank you for your repond but can you explain more please, or if you have any tutoriel that can help me, woulld you send it to me!

thank you so much!

alexandrem
Offline
Joined: 2005-10-19

Hi ninil,

Please take a look at http://www.mobicents.org/mss-diameter_sh.html for complete instruction on how to configure OpenIMS to work with mobicents and how to configure Mobicents Diameter.

You can learn more about Mobicents Diameter at http://groups.google.com/group/mobicents-public/web/mobicents-diameter

Regards,
Alexandre Mendonca
JBoss R&D

ninil
Offline
Joined: 2009-07-07

hello,

i am following steps in the links you have just send to me!
maybe i made errors in the configuration file! please can you check it and tell me if everything is well configured?
where: 192.168.100.20 is the mobicents IP Address
192.168.100.164 is the hss IP Address
iamnet.ma is our domaine name

diameter-openims.properties
# ##
# OpenIMS Diameter Example #
## #

# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / mobicents.org)
origin.ip=192.168.100.20 (is the ip adress of the mms)
origin.port=1812
origin.realm=mobicents.org

# If defined, overrides usage of ip:port
origin.host=mobicents.iamnet.ma

# The HSS IP Address, Port and Realm (default: 127.0.0.1 / 3868 / mobicents.org)
destination.ip=192.168.100.164 (is the adresse ip of the hss)
destination.port=3868
destination.realm=iamnet.ma

# If defined, overrides usage of ip:port
# destination.host=hss.iamnet.ma

# The users to subscribe Profile notifications (separate by comma)
users=alice@iamnet.ma,bob@iamnet.ma

jdiameter-config.xml :









































thank for all your responds

alexandrem
Offline
Joined: 2005-10-19

Please use always the latest version of Mobicents Diameter (1.0.0.GA, but 1.0.1.GA will be released really soon, couple of hours probably...). You can get it from here:

http://sourceforge.net/projects/mobicents/files/

You should also add the OpenIMS realm (while mantaining the mobicents one) to jdiameter-config.xml:

[i]





[/i]

If anything is not working, please provide additional information.

Regards,
Alexandre Mendonca
JBoss R&D

ninil
Offline
Joined: 2009-07-07

hello,
thank you for your respond!

i have made the changes you told me about, but i got these errors:

Caused by: org.jdiameter.api.RouteException: Can not find valid connection to peer[aaa://192.168.100.164:3868] in realm[mobicents.org]
at org.jdiameter.client.impl.router.RouterImpl.getPeer(RouterImpl.java:269)
at org.jdiameter.client.impl.controller.PeerTableImpl.sendMessage(PeerTableImpl.java:116)
at org.jdiameter.client.impl.StackImpl.sendMessage(StackImpl.java:255)
at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:70)

--- MBeans waiting for other MBeans ---
ObjectName: jboss:service=Hypersonic,database=localDB
State: FAILED
Reason: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@b1aa4cc2[file =/home/kossay2/Bureau/mobicents/server/default/data/hypersonic/localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [/home/kossay2/Bureau/mobicents/server/default/data/hypersonic/localDB.lck] is presumably locked by another process.
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=DefaultDS

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=Hypersonic,database=localDB
State: FAILED
Reason: java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@b1aa4cc2[file =/home/kossay2/Bureau/mobicents/server/default/data/hypersonic/localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [/home/kossay2/Bureau/mobicents/server/default/data/hypersonic/localDB.lck] is presumably locked by another process.
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=DefaultDS

Caused by: javax.management.AttributeNotFoundException: Cannot find attribute loader
at org.apache.tomcat.util.modeler.ManagedBean.getSetter(ManagedBean.java:531)
at org.apache.tomcat.util.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:407)
at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:70)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:212)
at org.mobicents.servlet.sip.startup.jboss.TomcatConvergedDeployer.performDeployInternal(TomcatConvergedDeployer.java:61)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
... 112 more

21:37:14,321 ERROR [STDERR] org.jdiameter.api.RouteException: Can not find valid connection to peer[aaa://192.168.100.164:3868] in realm[mobicents.org]
21:37:14,321 ERROR [STDERR] at org.jdiameter.client.impl.router.RouterImpl.getPeer(RouterImpl.java:269)
21:37:14,321 ERROR [STDERR] at org.jdiameter.client.impl.controller.PeerTableImpl.sendMessage(PeerTableImpl.java:116)
21:37:14,322 ERROR [STDERR] at org.jdiameter.client.impl.StackImpl.sendMessage(StackImpl.java:255)
21:37:14,322 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:70)
21:37:14,322 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:50)
21:37:14,322 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl$MyFuture.send(BaseSessionImpl.java:194)
21:37:14,322 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl.send(BaseSessionImpl.java:90)
21:37:14,322 ERROR [STDERR] at org.mobicents.diameter.stack.DiameterStackMultiplexer.sendMessageSync(DiameterStackMultiplexer.java:289)
21:37:14,322 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterShClient.sendMessageSync(DiameterShClient.java:236)
21:37:14,322 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterShClient.initializeExample(DiameterShClient.java:136)
21:37:14,322 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterShClient.(DiameterShClient.java:97)
21:37:14,322 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterOpenIMSSipServlet.init(DiameterOpenIMSSipServlet.java:74)

here is the .dar file:

# ##
# OpenIMS Diameter Example #
## #

# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / mobicents.org)
origin.ip=192.168.100.168
diameter-openims-1.3.war

origin.port=1812
origin.realm=mobicents.org

# If defined, overrides usage of ip:port
origin.host=mobicents.iamnet.ma

# The HSS IP Address, Port and Realm (default: 127.0.0.1 / 3868 / mobicents.org)
destination.ip=192.168.100.164
destination.port=3868
destination.realm=mobicents.org

# If defined, overrides usage of ip:port
# destination.host=hss.iamnet.ma

# The users to subscribe Profile notifications (separate by comma)
users=alice@iamnet.ma,bob@iamnet.ma

and here is my configuration file:


-
-
-


-






-
-
-







-




-










-
-
-

-

-

-

-

-

-

-

-



-
-

-

-

-

-

-
-





-
-





-

-




best regads,
ninil

alexandrem
Offline
Joined: 2005-10-19

Hmm.. Message is going to 192.168.100.164 in realm [b]mobicents.org[/b], when in conf it belongs to realm [b]iamnet.ma[/b].

Either change/add 192.168.100.164 to mobicents.org realm:

[i][/i]

or switch realm in example properties file:

[i]destination.ip=192.168.100.164
destination.port=3868
destination.realm=[b]iamnet.ma[/b][/i]

First option should be enough, although it may not be the desired behavior, making the HSS member of both realms.

Good luck!
Alexandre Mendonca
JBoss R&D

ninil
Offline
Joined: 2009-07-07

hello,
thank you so much!

i would like to ask you if we can use only one realm (iamnet.ma) and put "iamnet.ma" instead of "mobicents.org" ?

i am confused about some points in the diameter-openims-1.3.war file :

1) for the section below, i don't know if we should put "mobicents.org" as a origin.realm ( i have entered <<>> in <<>> in application server part of the FHoSS, also its IP ADDRESS 192.168.100.168)

origin.ip=192.168.100.168
origin.port=1812
origin.realm=mobicents.org

2)for the section below should we put "iamnet.ma" in the destination.realm?

destination.ip=192.168.100.164
destination.port=3868
destination.realm=mobicents.org

best regards,
ninil

alexandrem
Offline
Joined: 2005-10-19

Hi,

You decide what belong to which realm. If you make eveything part of the same realm it's easier to work with.

If you have [b]mobicents.iamnet.ma[/b] in Diameter FQDN in OpenIMS, than it should be what's present in the [b]origin.host[/b] field of the example properties file.

If you decide to use iamnet.ma as both realms, make sure the the jdiamete-config.xml entry looks like this:

[b]





[/b]

Alexandre Mendonca
JBoss R&D

ninil
Offline
Joined: 2009-07-07

hello,

i have made the changes you adviced me to make but i still have problems to enable the notification service.

here are the errors i get:

org.mobicents.servlet.sip.core.dispatchers.DispatcherException: the Request-URI does not point to another domain, and there is no Route header,the container should not send the request as it will cause a loop. Instead, the container must reject the request with 404 Not Found final response with no Retry-After header. You may want to check your dar configuration file to see if the request can be handled or make sure you use the correct Application Router jar.

Caused by: org.jdiameter.api.RouteException: Unknown realm name [iamnet.ma]
at org.jdiameter.client.impl.router.RouterImpl.getPeer(RouterImpl.java:239)
at org.jdiameter.client.impl.controller.PeerTableImpl.sendMessage(PeerTableImpl.java:116)
at org.jdiameter.client.impl.StackImpl.sendMessage(StackImpl.java:255)
at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:70)

16:51:34,305 ERROR [STDERR] org.jdiameter.api.RouteException: Unknown realm name [iamnet.ma]
16:51:34,306 ERROR [STDERR] at org.jdiameter.client.impl.router.RouterImpl.getPeer(RouterImpl.java:239)
16:51:34,306 ERROR [STDERR] at org.jdiameter.client.impl.controller.PeerTableImpl.sendMessage(PeerTableImpl.java:116)
16:51:34,306 ERROR [STDERR] at org.jdiameter.client.impl.StackImpl.sendMessage(StackImpl.java:255)
16:51:34,306 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:70)
16:51:34,306 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:50)
16:51:34,306 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl$MyFuture.send(BaseSessionImpl.java:194)
16:51:34,306 ERROR [STDERR] at org.jdiameter.client.impl.BaseSessionImpl.send(BaseSessionImpl.java:90)
16:51:34,306 ERROR [STDERR] at org.mobicents.diameter.stack.DiameterStackMultiplexer.sendMessageSync(DiameterStackMultiplexer.java:289)
16:51:34,306 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterShClient.sendMessageSync(DiameterShClient.java:236)
16:51:34,306 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterShClient.initializeExample(DiameterShClient.java:136)
16:51:34,306 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterShClient.(DiameterShClient.java:97)
16:51:34,306 ERROR [STDERR] at org.mobicents.servlet.sip.example.DiameterOpenIMSSipServlet.init(DiameterOpenIMSSipServlet.java:74)
16:51:34,306 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
16:51:34,306 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
16:51:34,307 ERROR [STDERR] at org.mobicents.servlet.sip.startup.loading.SipServletImpl.load(SipServletImpl.java:57)
16:51:34,307 ERROR [STDERR] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)
16:51:34,307 ERROR [STDERR] at org.mobicents.servlet.sip.startup.SipStandardContext.loadOnStartup(SipStandardContext.java:535)
16:51:34,307 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4375)

in the lines below you will find the configuration i have made:

diameteropenims-dar.properties :
INVITE: ("org.mobicents.servlet.sip.example.DiameterOpenIMSApplication", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")

diameter-openims.properties:

# ##
# OpenIMS Diameter Example #
## #

# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / iamnet.ma)
origin.ip=192.168.100.168
origin.port=1812
origin.realm=iamnet.ma

# If defined, overrides usage of ip:port
origin.host=mobicents.iamnet.ma

# The HSS IP Address, Port and Realm (default: 127.0.0.1 / 3868 / iamnet.ma)
destination.ip=192.168.100.164
destination.port=3868
destination.realm=iamnet.ma

# If defined, overrides usage of ip:port
# destination.host=hss.iamnet.ma

# The users to subscribe Profile notifications (separate by comma)
users=alice@iamnet.ma,bob@iamnet.ma

should we change the domaine name in that file: /server/default/deploy/jboss-web.deployer/server.xml ?
is there any file where we should put the IP Address of the DNS server iamnet.ma (192.168.100.170)?

thank you for all your help!
best regards,
ninil

alexandrem
Offline
Joined: 2005-10-19

Did you added the realm to jdiameter-config.xml as told in previous message?

That error message means that iamnet.ma is not present in jdiameter-config.xml .

Regards,
Alexandre Mendonca
JBoss R&D

ninil
Offline
Joined: 2009-07-07

Hello,

i have made all the changes as you told me, now the mobicents does not return any errors. so we have started mercuro, registred as bob and called alice who was not registred. after that, alice register but she does not receive any notification message.

i don't know if i have missed any step in the configuration.
to help you notice my problem, i will describe below all the steps i have followed to enable notification service.

1) i have copied "diameteopenims-dar.properties" file at "jboss_home/server/default/conf/dars" directory.

here is the content of "diameteropenims-dar.properties" file:

INVITE: ("org.mobicents.servlet.sip.example.DiameterOpenIMSApplication", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")

2)i have copied "diameter-openims-1.3.war" file at "jboss_home/server/default/deploy" directory.

here is the content of "diameter-openims.properties" file:

# ##
# OpenIMS Diameter Example #
## #

# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / iamnet.ma)
origin.ip=192.168.100.168
origin.port=1812
origin.realm=iamnet.ma

# If defined, overrides usage of ip:port
origin.host=mobicents.iamnet.ma

# The HSS IP Address, Port and Realm (default: 127.0.0.1 / 3868 / iamnet.ma)
destination.ip=192.168.100.164
destination.port=3868
destination.realm=iamnet.ma

# If defined, overrides usage of ip:port
# destination.host=hss.iamnet.ma

# The users to subscribe Profile notifications (separate by comma)
users=alice@iamnet.ma,bob@iamnet.ma

3) i have changed the darConfigurationFileLocation
"<<>>"

4)i have run jboss container:
Cd Server/bin
./run.sh

5)Run plate forme open-imscore

6)

Cd server/default/deploy/mobicents-diameter-mux-1.0.0.BETA3.sar/lib

i have Modified org/mobicents/diameter/stack/jdiameter-config.xml>>> file in the <<>>

7) i have started JBoss
Cd Server/bin
sh run.sh -b 192.168.100.168

in which step could i have made mistakes? what should i verify?

thank you very much!
best regards,
ninil

ninil
Offline
Joined: 2009-07-07

excuse me i have just made a mistake in step 3) while typing the previous message:

3) i have changed the darConfigurationFileLocation
with <<>>

best regards,
ninil