hi master-hand:
i had rencontred a problem.when i configured my Openser work together with
wesip,use two
linux OS,one use to run openser,other run wesip,
this is my configure file:
openser:
------------------------------------
debug=9 # debug level (cmd line: -dddddddddd)
fork=no
log_stderror=yes # (cmd line: -E)
children=8
# Uncomment these lines to enter debugging mode
#fork=no
#log_stderror=yes
#
port=5060
# uncomment the following lines for TLS support
#disable_tls = 0
#listen = tls:your_IP:5061
#tls_verify_server = 1
#tls_verify_client = 1
#tls_require_client_certificate = 0
#tls_method = TLSv1
#tls_certificate = "/usr/local/etc/openser/tls/user/user-cert.pem"
#tls_private_key = "/usr/local/etc/openser/tls/user/user-privkey.pem"
#tls_ca_list = "/usr/local/etc/openser/tls/user/user-calist.pem"
"openser.cfg" 154L, 3866C
14,1 Top
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
exit;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
if (!method=="REGISTER")
record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
61,1 49%
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
exit;
};
append_hf("P-hint: usrloc applied\r\n");
};
route(2);
}
route[1] {
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
exit;
}
route[2]{
if(!as_relay_t("app_server_one")){
t_reply("500","Application Server error");
}
121,3-17 98%
}
-----------------------------
and this is wesip:
-----------------------------
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector
className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" acceptCount="10" debug="0" />
<Connector
className="com.voztele.sipservlet.connector.SipConnector"
minProcessors="5" maxProcessors="75"
enableLookups="true" acceptCount="10" debug="0"
addresses="localhost:5060" pathName="com.voztele"
protocol="tcp" >
<ExtraProperties>
<Property key="javax.sip.SER_ADDRESS"
value="192.168.7.15" />
<Property key="javax.sip.SER_PORT"
value="5080" />
<Property key="STATISTICS" value="true"
/>
<Property key="javax.sip.STACK_NAME"
value="app_server_one" />
<Property
key="javax.sip.THREAD_POOL_SIZE" value="100" />
<Property
key="javax.sip.THREAD_POOL_SIZE" value="100" />
<Property
key="javax.sip.REENTRANT_LISTENER" value="true" />
<Property
key="javax.sip.AUTOMATIC_DIALOG_SUPPORT" value="false" />
<Property key="javax.sip.TRACE_LEVEL"
value="0" />
</ExtraProperties>
</Connector>
<Engine name="Standalone" defaultHost="localhost" debug="0"
className="com.voztele.sipservlet.core.ConvergedEngine">
<Mapper
className="org.apache.catalina.core.StandardEngineMapper" protocol="HTTP/1.1"/>
-----------------------------------------------------------------------
at the debug model:
found those tips:
WARNING: using only the first listen address (no fork)
0(0) init_unixsock_socket: No unix domain socket will be opened
.......
bind (Cannot assign requested address)
-1(0) unable to open server sockets on dispatcher
-1(0) ERROR:init_mod_child: Error while initializing module seas, rank 1
-1(0) main_dontfork: init_child failed
would you help me! thank you very much.
All my best regards.
------------------------------
(luhan china)卢涵 技术部
E-mail: [EMAIL PROTECTED]
phone: 010-59828003
mobile: 13810262476
------------------------------
_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users