Mobicents直径没有连接到对等错误消息

时间:2014-05-14 07:43:55

标签: diameter-protocol

我是mobicents直径的新手,并遵循示例downloaded here

在具有不同端口的同一台机器上执行ExampleClient和ExampleServer,“结果代码”为3002

“错误消息”是“无与同伴的连接”

我哪里错了?

协议错误:

DIAMETER_UNABLE_TO_DELIVER 3002

  This error is given when Diameter can not deliver the message to
  the destination, either because no host within the realm
  supporting the required application was available to process the
  request, or because Destination-Host AVP was given without the
  associated Destination-Realm AVP.

客户jdiameter-config.xml中

  <?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="0" />
    <ProductName value="jDiameter" />
    <FirmwareRevision value="1" />
    <OverloadMonitor>
        <Entry index="1" lowThreshold="0.5" highThreshold="0.6">
            <ApplicationID>
                <VendorId value="0" />
                <AuthApplId value="333333" />
                <AcctApplId value="0" />
            </ApplicationID>
        </Entry>
    </OverloadMonitor>
</LocalPeer>

<Parameters>
    <AcceptUndefinedPeer value="false" />
    <DuplicateProtection value="true" />
    <DuplicateTimer value="240000" />
    <UseUriAsFqdn value="false" />
    <QueueSize value="10000" />
    <MessageTimeOut value="60000" />
    <StopTimeOut value="10000" />
    <CeaTimeOut value="10000" />
    <IacTimeOut value="30000" />
    <DwaTimeOut value="10000" />
    <DpaTimeOut value="5000" />
    <RecTimeOut value="10000" />
    <Concurrent>
        <Entity name="ThreadGroup" size="64" />
        <Entity name="ProcessingMessageTimer" size="1" />
        <Entity name="DuplicationMessageTimer" size="1" />
        <Entity name="RedirectMessageTimer" size="1" />
        <Entity name="PeerOverloadTimer" size="1" />
        <Entity name="ConnectionTimer" size="1" />
        <Entity name="StatisticTimer" size="1" />
    </Concurrent>

</Parameters>

<Network>
    <Peers>

        <Peer name="aaa://127.0.0.1:3868" 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="0" />
                <AuthApplId value="333333" />
                <AcctApplId value="0" />
            </ApplicationID>
        </Realm>


    </Realms>
</Network>

<Extensions />

   </Configuration>

服务器jdiameter-config.xml中

   <?xml version="1.0"?>
    <Configuration xmlns="http://www.jdiameter.org/jdiameter-server">

<LocalPeer>
    <URI value="aaa://127.0.0.1:3868" />

    <IPAddresses>
        <IPAddress value="127.0.0.1" />
    </IPAddresses>
    <Realm value="mobicents.org" />
    <VendorID value="0" />
    <ProductName value="jDiameter" />
    <FirmwareRevision value="1" />
    <OverloadMonitor>
        <Entry index="1" lowThreshold="0.5" highThreshold="0.6">
            <ApplicationID>
                <VendorId value="0" />
                <AuthApplId value="333333" />
                <AcctApplId value="0" />
            </ApplicationID>
        </Entry>
    </OverloadMonitor>

</LocalPeer>

<Parameters>
    <!-- set to true, we can safely remove client def in this case -->
    <AcceptUndefinedPeer value="true" />
    <DuplicateProtection value="true" />
    <DuplicateTimer value="240000" />
    <UseUriAsFqdn value="false" />
    <QueueSize value="10000" />
    <MessageTimeOut value="60000" />
    <StopTimeOut value="10000" />
    <CeaTimeOut value="10000" />
    <IacTimeOut value="30000" />
    <DwaTimeOut value="10000" />
    <DpaTimeOut value="5000" />
    <RecTimeOut value="10000" />
    <Concurrent>
        <Entity name="ThreadGroup" size="64" />
        <Entity name="ProcessingMessageTimer" size="1" />
        <Entity name="DuplicationMessageTimer" size="1" />
        <Entity name="RedirectMessageTimer" size="1" />
        <Entity name="PeerOverloadTimer" size="1" />
        <Entity name="ConnectionTimer" size="1" />
        <Entity name="StatisticTimer" size="1" />
    </Concurrent>

</Parameters>

<Network>
    <Peers>
        <!-- our client, lets define it -->
        <Peer name="aaa://127.0.0.1:1812" 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="0" />
                <AuthApplId value="333333" />
                <AcctApplId value="0" />
            </ApplicationID>
        </Realm>


    </Realms>
</Network>

<Extensions />

    </Configuration>

0 个答案:

没有答案