Not able to send diameter message out from the mobicent.

375 views
Skip to first unread message

Himank Sao

unread,
May 18, 2016, 9:16:49 AM5/18/16
to mobicents-public
I am getting below error when trying to send diameter msg out. Can somebody help me.

org.jdiameter.api.RouteException: Unable to find valid connection to peer[aaa://172.24.50.76:3868] in realm[open-ims.test]
at org.jdiameter.client.impl.router.RouterImpl.getPeer(RouterImpl.java:389)
at org.jdiameter.client.impl.controller.PeerTableImpl.sendMessage(PeerTableImpl.java:178)
at org.jdiameter.client.impl.StackImpl.sendMessage(StackImpl.java:428)
at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:121)
at org.jdiameter.client.impl.BaseSessionImpl.genericSend(BaseSessionImpl.java:88)
at org.jdiameter.client.impl.BaseSessionImpl$MyFuture.send(BaseSessionImpl.java:257)
at org.jdiameter.client.impl.BaseSessionImpl.send(BaseSessionImpl.java:144)
at org.mobicents.diameter.stack.DiameterStackMultiplexer.sendMessageSync(DiameterStackMultiplexer.java:322)
at com.radisys.servlet.sip.DiameterClient.sendMessageSync(DiameterClient.java:230)
at com.radisys.servlet.sip.DiameterClient.initializeExample(DiameterClient.java:130)
at com.radisys.servlet.sip.DiameterClient.<init>(DiameterClient.java:91)
at com.radisys.servlet.sip.Registration.doRegister(Registration.java:263)
at javax.servlet.sip.SipServlet.doRequest(SipServlet.java:235)
at javax.servlet.sip.SipServlet.service(SipServlet.java:325)
at org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher.callServlet(MessageDispatcher.java:235)
at org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher$InitialDispatchTask.dispatch(InitialRequestDispatcher.java:727)
at org.mobicents.servlet.sip.core.dispatchers.DispatchTask.dispatchAndHandleExceptions(DispatchTask.java:55)
at org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher.dispatchInsideContainer(InitialRequestDispatcher.java:434)
at org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher.dispatchMessage(InitialRequestDispatcher.java:298)
at org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.processRequest(SipApplicationDispatcherImpl.java:701)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:230)
at gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:196)
at gov.nist.javax.sip.DialogFilter.processRequest(DialogFilter.java:1303)
at gov.nist.javax.sip.stack.SIPServerTransaction.processRequest(SIPServerTransaction.java:847)
at gov.nist.javax.sip.stack.UDPMessageChannel.processMessage(UDPMessageChannel.java:540)
at gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket(UDPMessageChannel.java:492)
at gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:297)

Attaching the jdaimeter-config.xml and my application properties file.

I tried so many things but not able to resolve the issue
jdiameter-config.xml
diameter-openims.properties
DiameterClient.java
DiameterShCodes.java

Himank Sao

unread,
May 19, 2016, 3:26:02 AM5/19/16
to mobicents-public
can some body pls help me on this

Alexandre Mendonça

unread,
May 19, 2016, 7:24:38 PM5/19/16
to Mobicents Public
Hi,

I am not sure from where the peer "aaa://172.24.50.76:3868" or the realm "open-ims.test" are coming from, but doesn't seem like where you want to send the message to, as in your configuration those are not the values.

The exception just says that it can't find a route for such peer at such realm, which makes sense. The only part that doesn't make sense is where the values are coming from.

Make sure it's the right code you have deployed as well as the properties file. If needed, hardcode the values in the code to see if there's some issue with the properties loading.

Hope it helps.

--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Himank Sao

unread,
May 20, 2016, 5:14:54 AM5/20/16
to mobicents-public
Hi Alexandre,
Thanks for response.

I had to use Diameter Cx/Dx interface but i used wrong Code.
I tried this Diameter Cx/Dx Interface and i am getting some issue.

1. In this jar file cx-dx-ratype-2.7.0.FINAL i am not able to get below two classes which is used in Diameter Cx/Dx Example (DiameterCxDxExampleSbb.java) 
    CxDxClientSession and CxDxServerSession 
    instead of this class can i use 
    CxDxClientSessionActivity and CxDxServerSessionActivity
  
2. I have to integrate Diameter Cx/DX interface with mobicent Sip Servlet Application
   Can i directly call sendUserAuthorizationRequest method and if yes how to get response of this message in my application.

I am struggling to get answer of this questions please help me .  

Thanks and Regards
Himank 

Alexandre Mendonça

unread,
May 24, 2016, 9:22:56 PM5/24/16
to Mobicents Public
Please see inline.

Also, don't resend the messages when you don't get an answer within a day, and don't create new threads, that won't help in any way. The community will provide best-effort answers when we have the time.

Regards,
On Fri, May 20, 2016 at 10:13 AM, Himank Sao <himan...@gmail.com> wrote:
Hi Alexandre,
Thanks for response.

I had to use Diameter Cx/Dx interface but i used wrong Code.
I tried this Diameter Cx/Dx Interface and i am getting some issue.

1. In this jar file cx-dx-ratype-2.7.0.FINAL i am not able to get below two classes which is used in Diameter Cx/Dx Example (DiameterCxDxExampleSbb.java) 
    CxDxClientSession and CxDxServerSession 
    instead of this class can i use 
    CxDxClientSessionActivity and CxDxServerSessionActivity

​Yes, it's a typo in the example code. ​CxDxClientSessionActivity and CxDxServerSessionActivity should be used.
 
  
2. I have to integrate Diameter Cx/DX interface with mobicent Sip Servlet Application
   Can i directly call sendUserAuthorizationRequest method and if yes how to get response of this message in my application.

​No, this is only for JAIN SLEE container. For SIP Servlets you'll need to use stack level methods. See the SIP Servlet Ro and Sh examples.
 

I am struggling to get answer of this questions please help me .  

Himank Sao

unread,
May 25, 2016, 2:09:09 AM5/25/16
to mobicents-public
Thanks Alexandre for the response.
Reply all
Reply to author
Forward
0 new messages