1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[root@localhost OpenIMSCore]# ./fhoss.sh 
Building Classpath
Classpath is lib/xml-apis.jar:lib/xercesImpl.jar:lib/xerces-2.4.0.jar:lib/xalan-2.4.0.jar:lib/tomcat-util.jar:lib/tomcat-http.jar:lib/tomcat-coyote.jar:lib/struts.jar:lib/servlets-default.jar:lib/servlet-api.jar:lib/naming-resources.jar:lib/naming-factory.jar:lib/mysql-connector-java-3.1.12-bin.jar:lib/mx4j-3.0.1.jar:lib/log4j.jar:lib/junit.jar:lib/junitee.jar:lib/jta.jar:lib/jsp-api.jar:lib/jmx.jar:lib/jdp.jar:lib/jasper-runtime.jar:lib/jasper-compiler-jdt.jar:lib/jasper-compiler.jar:lib/hibernate3.jar:lib/FHoSS.jar:lib/ehcache-1.1.jar:lib/dom4j-1.6.1.jar:lib/commons-validator.jar:lib/commons-modeler.jar:lib/commons-logging.jar:lib/commons-logging-1.0.4.jar:lib/commons-lang.jar:lib/commons-fileupload.jar:lib/commons-el.jar:lib/commons-digester.jar:lib/commons-collections-3.1.jar:lib/commons-beanutils.jar:lib/cglib-2.1.3.jar:lib/catalina-optional.jar:lib/catalina.jar:lib/c3p0-0.9.1.jar:lib/base64.jar:lib/asm.jar:lib/asm-attrs.jar:lib/antlr-2.7.6.jar:.:/usr/java/latest/lib/tools.jar:/usr/java/latest/lib/dt.jar:log4j.properties:..
[main] INFO de.fhg.fokus.hss.main.TomcatServer - Tomcat-Server is started.
[main] INFO org.apache.catalina.startup.Embedded - Starting tomcat server
[main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/5.5.9
[main] INFO org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
[main] INFO org.apache.coyote.http11.Http11Protocol - Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
[main] WARN org.apache.catalina.connector.MapperListener - Unknown default host: 0.0.0.0
[main] INFO org.apache.catalina.core.StandardHost - XML validation disabled
[main] INFO de.fhg.fokus.hss.web.servlet.ResponseFilter - Response Filter Initialisation!
log4j:WARN No appenders could be found for logger (org.apache.catalina.loader.WebappClassLoader).
log4j:WARN Please initialize the log4j system properly.
[main] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
[main] INFO org.apache.struts.validator.ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validator-rules.xml'
[main] INFO org.apache.struts.validator.ValidatorPlugIn - Loading validation rules file from '/WEB-INF/validation.xml'
[main] INFO de.fhg.fokus.hss.main.TomcatServer - WebConsole of FHoSS was started !
[main] INFO org.hibernate.cfg.Environment - Hibernate 3.2.1
[main] INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.c3p0.timeout=3600, hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.connection.isolation=1, hibernate.c3p0.max_statements=0, hibernate.c3p0.max_size=30, hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.c3p0.idle_test_period=1200, hibernate.c3p0.min_size=1, hibernate.connection.username=hss, hibernate.c3p0.acquire_increment=1, hibernate.connection.url=jdbc:mysql://127.0.0.1:3306/hss_db, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.password=****}
[main] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
[main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
[main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
[main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/ApplicationServer.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.ApplicationServer -> application_server
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/CapabilitiesSet.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.CapabilitiesSet -> capabilities_set
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/Capability.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.Capability -> capability
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/ChargingInfo.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.ChargingInfo -> charging_info
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/DSAI_IMPU.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.DSAI_IMPU -> dsai_impu
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/DSAI_IFC.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.DSAI_IFC -> dsai_ifc
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/DSAI.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.DSAI -> dsai
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/IFC.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.IFC -> ifc
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/IMPI_IMPU.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.IMPI_IMPU -> impi_impu
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/IMPI.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.IMPI -> impi
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/IMPU.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.IMPU -> impu
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/IMPU_VisitedNetwork.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.IMPU_VisitedNetwork -> impu_visited_network
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/IMSU.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.IMSU -> imsu
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/Preferred_SCSCF_Set.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.Preferred_SCSCF_Set -> preferred_scscf_set
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/CxEvents.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.CxEvents -> cx_events
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/Shared_IFC_Set.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.Shared_IFC_Set -> shared_ifc_set
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/ShNotification.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.ShNotification -> sh_notification
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/ShSubscription.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.ShSubscription -> sh_subscription
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/SP_IFC.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.SP_IFC -> sp_ifc
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/SP_Shared_IFC_Set.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.SP_Shared_IFC_Set -> sp_shared_ifc_set
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/SP.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.SP -> sp
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/SPT.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.SPT -> spt
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/TP.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.TP -> tp
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/VisitedNetwork.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.VisitedNetwork -> visited_network
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/RepositoryData.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.RepositoryData -> repository_data
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/AliasesRepositoryData.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.AliasesRepositoryData -> aliases_repository_data
[main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : mappings/Zh_USS.hbm.xml
[main] INFO org.hibernate.cfg.HbmBinder - Mapping class: de.fhg.fokus.hss.db.model.Zh_USS -> zh_uss
[main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: foo
[main] INFO org.hibernate.connection.C3P0ConnectionProvider - C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://127.0.0.1:3306/hss_db
[main] INFO org.hibernate.connection.C3P0ConnectionProvider - Connection properties: {user=hss, password=****, autocommit=false}
[main] INFO org.hibernate.connection.C3P0ConnectionProvider - autocommit mode: false
[main] INFO com.mchange.v2.log.MLog - MLog clients using log4j logging.
[main] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.1 [built 16-January-2007 14:46:42; debug? true; trace: 10]
[main] INFO org.hibernate.connection.C3P0ConnectionProvider - JDBC isolation level: READ_UNCOMMITTED
[main] INFO com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@e7f23a68 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@4004925e [ acquireIncrement -> 1, acquireRetryAttempts -> 60, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kfltag122ny3d78q4yt|5d43c3d0, idleConnectionTestPeriod -> 1200, initialPoolSize -> 1, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 3600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@dd14f5bf [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> z8kfltag122ny3d78q4yt|70d586bc, jdbcUrl -> jdbc:mysql://127.0.0.1:3306/hss_db, properties -> {user=******, password=******, autocommit=false} ], preferredTestQuery -> null, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> z8kfltag122ny3d78q4yt|4feaf536, numHelperThreads -> 3 ]
[main] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.73
[main] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect
[main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
[main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
[main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
[main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
[main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
[main] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
[main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
[main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
[main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
[main] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
[main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
[main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
[main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
[main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
[main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Factory name: foo
[main] INFO org.hibernate.util.NamingHelper - JNDI InitialContext properties:{}
[main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Bound factory to JNDI name: foo
[main] WARN org.hibernate.impl.SessionFactoryObjectFactory - InitialContext did not implement EventContext
[main] INFO de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - Bean style constructor called, don't forget to configure!
[main] INFO de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - FQDN: hss.open-ims.test
[main] INFO de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - Realm: open-ims.test
[main] INFO de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - Vendor_ID : 10415
[main] INFO de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - Product Name: JavaDiameterPeer
[main] INFO de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - AcceptUnknwonPeers: true
[main] INFO de.fhg.fokus.diameter.DiameterPeer.DiameterPeer - DropUnknownOnDisconnect: true
[main] INFO de.fhg.fokus.hss.main.HSSContainer -
Type "exit" to stop FHoSS!

http://svn.code.sf.net/p/openimscore/code/FHoSS/trunk/
https://github.com/herlesupreeth/FHoSS

1 呼叫流程

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 ip1                   ip2                 ip3                  ip4
| | | |
1 : |U------INVITE----->| | |
2 : |<-100 trying -- y-U| | |
3 : | |U------INVITE----->| |
4 : | |<-100 trying -- y-U| |
5 : | |<------INVITE-----U| |
6 : | |U-100 trying -- y->| |
7 : | |U----------------INVITE--------------->|
8 : | |<----183 Session in|Progress/INVITE---U|
9 : | |U-183 Session in ->| |
10: | |<-183 Session in -U| |
11: |<-183 Session in -U| | |
12: |U------PRACK------>| | |
13: | |U------PRACK------>| |
14: | |<------PRACK------U| |
15: | |U----------------PRACK---------------->|
16: | |<-------------200 OK/PRACK------------U|
17: | |<----------180 Ringing/INVITE---------U|
18: | |U---200 OK/PRACK-->| |
19: | |U-180 Ringing/INV->| |
20: | |<---200 OK/PRACK--U| |
21: | |<-180 Ringing/INV-U| |
22: |<---200 OK/PRACK--U| | |
23: |<-180 Ringing/INV-U| | |
24: |U------PRACK------>| | |
25: | |U------PRACK------>| |
26: | |<------PRACK------U| |
27: | |U----------------PRACK---------------->|
28: | |<-------------200 OK/PRACK------------U|
29: | |U---200 OK/PRACK-->| |
30: | |<---200 OK/PRACK--U| |
31: |<---200 OK/PRACK--U| | |
32: | |<------------200 OK/INVITE------------U|
33: | |U--200 OK/INVITE-->| |
34: | |<--200 OK/INVITE--U| |
35: |<--200 OK/INVITE--U| | |
36: |U-------ACK------->| | |
37: | |U-------ACK------->| |
38: | |<-------ACK-------U| |
39: | |U-----------------ACK----------------->|
40: |U-------BYE------->| | |
41: | |U-------BYE------->| |
42: | |<-------BYE-------U| |
43: | |U-----------------BYE----------------->|
44: | |<--------------200 OK/BYE-------------U|
45: | |U----200 OK/BYE--->| |
46: | |<----200 OK/BYE---U| |
47: |<----200 OK/BYE---U| | |