Friday, January 25, 2008

Problem with Client / server sample application with Opendiameter


dear friends
i am a newlearner of open diameter software
i have installed the open diameter - i version and i did not have any problem
in installation.
now when i run client/server sample applications in /libdiameter i am getting
out put something like this


(10534|3086493392) Starting diameter core
(10534|3086493392)             Product :
(10534|3086493392)             Version : 0
(10534|3086493392)           Vendor Id : 0
(10534|3086493392)  Vendor Specific Id : (10534|3086493392)      Vendor=--- ---
(10534|3086493392)  Vendor Specific Id : (10534|3086493392)      Vendor=--- ---
(10534|3086493392)          Dictionary :
(10534|3086493392)            Identity :
(10534|3086493392)               Realm :
(10534|3086493392)          TCP Listen : 0
(10534|3086493392)         SCTP Listen : 0
(10534|3086493392)   Watch-Dog timeout : 0
(10534|3086493392)            Use IPv6 : 0
(10534|3086493392) Re-transmission Int : 0
(10534|3086493392)    Max Re-trans Int : 0
(10534|3086493392)    Recv Buffer Size : 2048
(10534|3086493392) Dumping Peer Table
(10534|3086493392)      Expire Time 0
(10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
(10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
(10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
(10534|3086493392)                Peer : Host = , Port = 16, TLS = 1
(10534|3086493392)  Dumping Route Table
(10534|3086493392)            Exp Time : 0
(10534|3086493392)              Route  : Realm = , Action = 0, Redirect-Usage
= 0
(10534|3086493392)                       Application Id=0, Vendor=0
(10534|3086493392)                          Server = , metric = 0
(10534|3086493392)      Default Route
(10534|3086493392)              Route  : Realm = , Action = 0, Redirect-Usage
= 0
(10534|3086493392)                       Application Id=0, Vendor=0
(10534|3086493392)                          Server = , metric = 0
(10534|3086493392)            Max Sess : 0
(10534|3086493392)  Auth Stateful Auth : stateless
(10534|3086493392)     Auth Session(T) : 0
(10534|3086493392)    Auth Lifetime(T) : 0
(10534|3086493392)       Auth Grace(T) : 0
(10534|3086493392)       Auth Abort(T) : 0
(10534|3086493392)     Acct Session(T) : 0
(10534|3086493392)    Acct Interim Int : 0
(10534|3086493392)      Acct Real-Time : 0
(10534|3086493392)           Debug Log : disabled
(10534|3086493392)           Trace Log : disabled
(10534|3086493392)            Info Log : disabled
(10534|3086493392)         Console Log : disabled
(10534|3086493392)          Syslog Log : disabled
terminate called without an active exception
Aborted




i cannot see anything set in the output.
i have used the xml file called libdiameter/config/agent.local.xml and the structure
is like this




<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration SYSTEM "configuration.dtd">
<configuration>
  <general>
     <product>Open Diameter</product>
     <version>1</version>
     <vendor_id>0</vendor_id>

 <supported_vendor_id>0</supported_vendor_id>
     <supported_vendor_id>1</supported_vendor_id>
     <auth_application_id>1</auth_application_id>
     <auth_application_id>2</auth_application_id>
     <auth_application_id>10000</auth_application_id>
     <auth_application_id>20000</auth_application_id>
     <acct_application_id>3</acct_application_id>
     <acct_application_id>4</acct_application_id>
     <vendor_specific_application_id>
         <vendor_id>31</vendor_id>
         <auth_application_id>1</auth_application_id>
     </vendor_specific_application_id>
     <vendor_specific_application_id>
         <vendor_id>41</vendor_id>
         <acct_application_id>6</acct_application_id>
     </vendor_specific_application_id>
  </general>
  <parser>
     <dictionary>config/dictionary.xml</dictionary>
  </parser>
  <transport_mngt>
     <identity>proxy.inter     mediate.net</identity>
     <realm>intermediate.net</realm>
     <tcp_listen_port>1812</tcp_listen_port>
     <sctp_listen_port>1813</sctp_listen_port>
     <use_ipv6>0</use_ipv6>
     <watchdog_timeout>4</watchdog_timeout>
     <reconnect_interval>30</reconnect_interval>
     <reconnect_max>3</reconnect_max>
     <request_retransmission_interval>10</request_retransmission_interval>
     <max_request_retransmission_count>3</max_request_retransmission_count>
     <receive_buffer_size>2048</receive_buffer_size>
     <advertised_hostname>agent1.isp.net</advertised_hostname>
     <peer_table>
         <expiration_time>1</expiration_time>
         <peer>
             <hostname>server.isp.net</hostname>
             <port>1811</port>
             <tls_enabled>0</tls_enabled>
         </peer>
         <peer>
             <hostname>nas.access1.net</hostname>
             <port>1811</port>
             <tls_enabled>0</tls_enabled>
         </peer>
         <peer>
             <hostname>nas.access2.net</hostname>
             <port>1811</port>
             <tls_enabled>0</tls_enabled>
         </peer>
         <peer>
             <hostname>nas.access3.net</hostname>
             <port>1811</port>
             <tls_enabled>0</tls_enabled>
         </peer>
     </peer_table>
     <route_table>
         <expire_time>0</expire_time>
         <route>
            <realm>access1.net</realm>
            <role>0</role>
            <redirect_usage>0</redirect_usage>
            <application>
               <application_id>0</application_id>
               <vendor_id>0</vendor_id>
               <peer_entry>
                   <server>nas.access1.net</server>
                   <metric>2</metric>
               </peer_entry>
            </application>
            <application>
               <application_id>1</application_id>
               <vendor_id>0</vendor_id>
               <peer_entry>
                   <server>nas.access1.net</server>
                   <metric>2</metric>
               </peer_entry>
               <peer_entry>
                   <server>nas2.access1.net</server>
                   <metric>4</metric>
               </peer_entry>
               <peer_entry>
                   <server>nas3.access1.net</server>
                   <metric>5</metric>
               </peer_entry>
            </application>
         </route>
         <route>
            <realm>access2.net</realm>
            <role>1</role>
            <redirect_usage>6</redirect_usage>
            <application>
               <application_id>1</application_id>
               <vendor_id>0</vendor_id>
               <peer_entry>
                   <server>nas.access2.net</server>
                   <metric>2</metric>
               </peer_entry>
            </application>
         </route>
         <route>
            <realm>access3.net</realm>
            <role>0</role>
            <redirect_usage>0</redirect_usage>
            <application>
               <application_id>0</application_id>
               <vendor_id>6</vendor_id>
               <peer_entry>
                   <server>nas.access3.net</server>
                   <metric>2</metric>
               </peer_entry>
               <peer_entry>
                   <server>nas2.access3.net</server>
                   <metric>4</metric>
               </peer_entry>
               <peer_entry>
                   <server>nas3.access3.net</server>
                   <metric>5</metric>
               </peer_entry>
            </application>
            <application>
               <application_id>1</application_id>
               <vendor_id>0</vendor_id>
               <peer_entry>
                   <server>nas.access3.net</server>
                   <metric>2</metric>
               </peer_entry>
               <peer_entry>
                   <server>nas2.access3.net</server>
                   <metric>4</metric>
               </peer_entry>
               <peer_entry>
                   <server>nas3.access3.net</server>
                   <metric>5</metric>
               </peer_entry>
            </application>
         </route>
         <default_route>
            <realm>access1.net</realm>
            <role>0</role>
            <redirect_usage>0</redirect_usage>
            <application>
               <application_id>0</application_id>
               <vendor_id>0</vendor_id>
               <peer_entry>
                   <server>nas.access1.net</server>
                   <metric>4</metric>
               </peer_entry>
          </application>
 </transport_mngt>
  <session_mngt>
     <max_sessions>10000</max_sessions>
     <auth_sessions>
        <stateful>1</stateful>
        <session_timeout>30</session_timeout>
        <lifetime_timeout>360</lifetime_timeout>
        <grace_period_timeout>30</grace_period_timeout>
        <abort_retry_timeout>20</abort_retry_timeout>
     </auth_sessions>
     <acct_sessions>
        <session_timeout>30</session_timeout>
        <interim_interval>5</interim_interval>
        <realtime>1</realtime>
     </acct_sessions>
  </session_mngt>
  <log>
     <flags>
        <debug>enabled</debug>
        <trace>enabled</trace>
        <info>enabled</info>
     </flags>
     <target>
        <console>enabled</console>
        <syslog>enabled</syslog>
     </target>
  </log>
</configuration>




http://www.tutorialsforu.info - Free Online tutorials
http://www.onlineforu.info - Huge Wallpaper Collection
:::: Google Partner Projects ::::

3 comments:

Suhas said...

Hey John. Even I am facing the same problem when I am trying to run the sample application. Were you able to figure out the solution for this?

Unknown said...
This comment has been removed by the author.
Unknown said...

Hello, Suhas

Do you still study opendiameter???

can we discuss some problems of opendiameter? ^^

Wishing to receive from you ~