Today after a long fight i am able to configure Mobicents Diameter Server and Client, thanks to Alex for his continues support ;)
So lets start with configuring with the provided details
Deployed Contents
Jain-Slee.x.y.z(mobicents.sar)
mobicents-diameter-mux-x.y.z.sar
diameter-base-ra-DU-x.y.z.jar
diameter-base-example-DU-x.y.z.jar
Configuration file settings
jdiameter-config.xml (located at mobicents-diameter-mux-x.y.z.sar-->config)
<?xml version="1.0"?>
<Configuration xmlns="http://www.jdiameter.org/jdiameter-server">
<LocalPeer>
<URI value="aaa://127.0.0.1:1812" />
<IPAddresses>
<IPAddress value="127.0.0.1" />
</IPAddresses>
<Realm value="mobicents.org" />
<VendorID value="193" />
<ProductName value="jDiameter" />
<FirmwareRevision value="1" />
<OverloadMonitor>
<Entry index="1" lowThreshold="0.5" highThreshold="0.6">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Entry>
</OverloadMonitor>
</LocalPeer>
<Parameters>
<AcceptUndefinedPeer value="true" />
<DuplicateProtection value="true" />
<DuplicateTimer value="240000" />
<UseUriAsFqdn value="false" /> <!-- Needed for Ericsson Emulator (set to true) -->
<QueueSize value="10000" />
<MessageTimeOut value="60000" />
<StopTimeOut value="10000" />
<CeaTimeOut value="10000" />
<IacTimeOut value="30000" />
<DwaTimeOut value="10000" />
<DpaTimeOut value="5000" />
<RecTimeOut value="10000" />
</Parameters>
<Network>
<Peers>
<Peer name="aaa://127.0.0.1:21812" attempt_connect="false" rating="1" />
</Peers>
<Realms>
<Realm name="mobicents.org" peers="127.0.0.1" local_action="LOCAL" dynamic="false" exp_time="1">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Realm>
</Realms>
</Network>
<Extensions />
</Configuration>
Example properties changes
(located at diameter-base-example-DU-x.y.z.jar--> example.properties(deploy folder) or base-example-DU-x.y.z/du/src/main/resources/example.properties (From source) )
# ##
# Diameter CCA Example #
## #
# Act as "client" or "server" (default: server)
example.mode=server
# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / mobicents.org)
origin.ip=127.0.0.1
origin.port=1812
origin.realm=mobicents.org
# The Remote IP Address, Port and Realm (default: 127.0.0.1 / 3868 / mobicents.org)
destination.ip=127.0.0.1
destination.port=21812
destination.realm=mobicents.org
Deployed Contents
Jain-Slee.x.y.z(mobicents.sar)
mobicents-diameter-mux-x.y.z.sar
diameter-base-ra-DU-x.y.z.jar
diameter-base-example-DU-x.y.z.jar
Configuration file settings
jdiameter-config.xml (located at mobicents-diameter-mux-x.y.z.sar-->config)
<?xml version="1.0"?>
<Configuration xmlns="http://www.jdiameter.org/jdiameter-server">
<LocalPeer>
<URI value="aaa://127.0.0.1:21812" />
<IPAddresses>
<IPAddress value="127.0.0.1" />
</IPAddresses>
<Realm value="mobicents.org" />
<VendorID value="193" />
<ProductName value="jDiameter" />
<FirmwareRevision value="1" />
<OverloadMonitor>
<Entry index="1" lowThreshold="0.5" highThreshold="0.6">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Entry>
</OverloadMonitor>
</LocalPeer>
<Parameters>
<AcceptUndefinedPeer value="true" />
<DuplicateProtection value="true" />
<DuplicateTimer value="240000" />
<UseUriAsFqdn value="false" /> <!-- Needed for Ericsson Emulator (set to true) -->
<QueueSize value="10000" />
<MessageTimeOut value="60000" />
<StopTimeOut value="10000" />
<CeaTimeOut value="10000" />
<IacTimeOut value="30000" />
<DwaTimeOut value="10000" />
<DpaTimeOut value="5000" />
<RecTimeOut value="10000" />
</Parameters>
<Network>
<Peers>
<Peer name="aaa://127.0.0.1:1812" attempt_connect="true" rating="1" />
</Peers>
<Realms>
<Realm name="mobicents.org" peers="127.0.0.1" local_action="LOCAL" dynamic="false" exp_time="1">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Realm>
</Realms>
</Network>
<Extensions />
</Configuration>
Example properties changes
@Client(located at diameter-base-example-DU-x.y.z.jar--> example.properties(deploy folder) or base-example-DU-x.y.z/du/src/main/resources/example.properties (From source) )
# ##
# Diameter CCA Example #
## #
# Act as "client" or "server" (default: server)
example.mode=client
# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / mobicents.org)
origin.ip=127.0.0.1
origin.port=21812
origin.realm=mobicents.org
# The Remote IP Address, Port and Realm (default: 127.0.0.1 / 3868 / mobicents.org)
destination.ip=127.0.0.1
destination.port=1812
destination.realm=mobicents.org
*x.y.z would be replaced with the version you are trying
So lets start with configuring with the provided details
@Server
Deployed Contents
Jain-Slee.x.y.z(mobicents.sar)
mobicents-diameter-mux-x.y.z.sar
diameter-base-ra-DU-x.y.z.jar
diameter-base-example-DU-x.y.z.jar
Configuration file settings
jdiameter-config.xml (located at mobicents-diameter-mux-x.y.z.sar-->config)
<?xml version="1.0"?>
<Configuration xmlns="http://www.jdiameter.org/jdiameter-server">
<LocalPeer>
<URI value="aaa://127.0.0.1:1812" />
<IPAddresses>
<IPAddress value="127.0.0.1" />
</IPAddresses>
<Realm value="mobicents.org" />
<VendorID value="193" />
<ProductName value="jDiameter" />
<FirmwareRevision value="1" />
<OverloadMonitor>
<Entry index="1" lowThreshold="0.5" highThreshold="0.6">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Entry>
</OverloadMonitor>
</LocalPeer>
<Parameters>
<AcceptUndefinedPeer value="true" />
<DuplicateProtection value="true" />
<DuplicateTimer value="240000" />
<UseUriAsFqdn value="false" /> <!-- Needed for Ericsson Emulator (set to true) -->
<QueueSize value="10000" />
<MessageTimeOut value="60000" />
<StopTimeOut value="10000" />
<CeaTimeOut value="10000" />
<IacTimeOut value="30000" />
<DwaTimeOut value="10000" />
<DpaTimeOut value="5000" />
<RecTimeOut value="10000" />
</Parameters>
<Network>
<Peers>
<Peer name="aaa://127.0.0.1:21812" attempt_connect="false" rating="1" />
</Peers>
<Realms>
<Realm name="mobicents.org" peers="127.0.0.1" local_action="LOCAL" dynamic="false" exp_time="1">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Realm>
</Realms>
</Network>
<Extensions />
</Configuration>
Example properties changes
(located at diameter-base-example-DU-x.y.z.jar--> example.properties(deploy folder) or base-example-DU-x.y.z/du/src/main/resources/example.properties (From source) )
# ##
# Diameter CCA Example #
## #
# Act as "client" or "server" (default: server)
example.mode=server
# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / mobicents.org)
origin.ip=127.0.0.1
origin.port=1812
origin.realm=mobicents.org
# The Remote IP Address, Port and Realm (default: 127.0.0.1 / 3868 / mobicents.org)
destination.ip=127.0.0.1
destination.port=21812
destination.realm=mobicents.org
@Client
Deployed Contents
Jain-Slee.x.y.z(mobicents.sar)
mobicents-diameter-mux-x.y.z.sar
diameter-base-ra-DU-x.y.z.jar
diameter-base-example-DU-x.y.z.jar
Configuration file settings
jdiameter-config.xml (located at mobicents-diameter-mux-x.y.z.sar-->config)
<?xml version="1.0"?>
<Configuration xmlns="http://www.jdiameter.org/jdiameter-server">
<LocalPeer>
<URI value="aaa://127.0.0.1:21812" />
<IPAddresses>
<IPAddress value="127.0.0.1" />
</IPAddresses>
<Realm value="mobicents.org" />
<VendorID value="193" />
<ProductName value="jDiameter" />
<FirmwareRevision value="1" />
<OverloadMonitor>
<Entry index="1" lowThreshold="0.5" highThreshold="0.6">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Entry>
</OverloadMonitor>
</LocalPeer>
<Parameters>
<AcceptUndefinedPeer value="true" />
<DuplicateProtection value="true" />
<DuplicateTimer value="240000" />
<UseUriAsFqdn value="false" /> <!-- Needed for Ericsson Emulator (set to true) -->
<QueueSize value="10000" />
<MessageTimeOut value="60000" />
<StopTimeOut value="10000" />
<CeaTimeOut value="10000" />
<IacTimeOut value="30000" />
<DwaTimeOut value="10000" />
<DpaTimeOut value="5000" />
<RecTimeOut value="10000" />
</Parameters>
<Network>
<Peers>
<Peer name="aaa://127.0.0.1:1812" attempt_connect="true" rating="1" />
</Peers>
<Realms>
<Realm name="mobicents.org" peers="127.0.0.1" local_action="LOCAL" dynamic="false" exp_time="1">
<ApplicationID>
<VendorId value="193" />
<AuthApplId value="0" />
<AcctApplId value="19302" />
</ApplicationID>
</Realm>
</Realms>
</Network>
<Extensions />
</Configuration>
Example properties changes
@Client(located at diameter-base-example-DU-x.y.z.jar--> example.properties(deploy folder) or base-example-DU-x.y.z/du/src/main/resources/example.properties (From source) )
# ##
# Diameter CCA Example #
## #
# Act as "client" or "server" (default: server)
example.mode=client
# The AS IP Address, Port and Realm (default: 127.0.0.1 / 1812 / mobicents.org)
origin.ip=127.0.0.1
origin.port=21812
origin.realm=mobicents.org
# The Remote IP Address, Port and Realm (default: 127.0.0.1 / 3868 / mobicents.org)
destination.ip=127.0.0.1
destination.port=1812
destination.realm=mobicents.org
*x.y.z would be replaced with the version you are trying
Dear Parnami,
ReplyDeletewhat versions of Mobicents components are you using in this example? I'm actualy fighting to put this example to work. If you can help, please see the complete discussion about the problem at:
http://forums.java.net/jive/thread.jspa?messageID=358774
Hi Sandra,
ReplyDeleteI have used all GA components which is
mobicents-diameter-mux-1.0.0.GA
diameter Base-RA-1.0.0.GA
Will have a look at the post and let you know if some thing clicks