Hi Everybody,<br>
<br>
I had arrived a small problem , when i making the call from softphones....<br>
It logined and when dialing to some other softphone , its show me as " CALL NOT aPPROVED "<br>
what this means,<br>
<br>
please solve problem....<br>
<br>
and my openser.cfg file <br>
--------------------------<br>
#<br>
# $Id: openser.cfg,v 1.5 2005/10/28 19:45:33 bogdan_iancu Exp $<br>
#<br>
# simple quick-start config script<br>
#<br>
<br>
# ----------- global configuration parameters ------------------------<br>
<br>
debug=4 # debug level (cmd line: -dddddddddd)<br>
fork=no<br>
log_stderror=yes # (cmd line: -E)<br>
<br>
/* Uncomment these lines to enter debugging mode <br>
fork=no<br>
log_stderror=yes<br>
*/<br>
<br>
server_signature=yes<br>
unix_sock="/tmp/openser.sock"<br>
#user="openser"<br>
#group="openser"<br>
listen=<a href="http://192.168.2.55">192.168.2.55</a><br>
check_via=0 # (cmd. line: -v)<br>
dns=no # (cmd. line: -r)<br>
rev_dns=no # (cmd. line: -R)<br>
port=5060<br>
children=3<br>
alias=<a href="http://192.168.2.55">192.168.2.55</a><br>
fifo="/tmp/openser_fifo"<br>
fifo_db_url="mysql://openser:openserrw@localhost/openser"<br>
fifo_mode=0666<br>
#fifo_dir="/tmp/"<br>
#fifo_modesock_modefile_mode=0660<br>
<br>
#<br>
# uncomment the following lines for TLS support<br>
#disable_tls = 0<br>
#listen = tls:your_IP:5061<br>
#tls_verify = 1<br>
#tls_require_certificate = 0<br>
#tls_method = TLSv1<br>
#tls_certificate = "/usr/local/etc/openser/tls/user/user-cert.pem"<br>
#tls_private_key = "/usr/local/etc/openser/tls/user/user-privkey.pem"<br>
#tls_ca_list = "/usr/local/etc/openser/tls/user/user-calist.pem"<br>
<br>
# ------------------ module loading ----------------------------------<br>
<br>
# Uncomment this if you want to use SQL database<br>
loadmodule "/usr/local/lib/openser/modules/mysql.so"<br>
<br>
loadmodule "/usr/local/lib/openser/modules/sl.so"<br>
loadmodule "/usr/local/lib/openser/modules/tm.so"<br>
loadmodule "/usr/local/lib/openser/modules/rr.so"<br>
loadmodule "/usr/local/lib/openser/modules/maxfwd.so"<br>
loadmodule "/usr/local/lib/openser/modules/usrloc.so"<br>
loadmodule "/usr/local/lib/openser/modules/registrar.so"<br>
loadmodule "/usr/local/lib/openser/modules/textops.so"<br>
<br>
# Uncomment this if you want digest authentication<br>
# mysql.so must be loaded !<br>
loadmodule "/usr/local/lib/openser/modules/auth.so"<br>
loadmodule "/usr/local/lib/openser/modules/auth_db.so"<br>
loadmodule "/usr/local/lib/openser/modules/acc.so"<br>
# ----------------- setting module-specific parameters ---------------<br>
<br>
# -- usrloc params --<br>
<br>
#modparam("usrloc", "db_mode", 1)<br>
<br>
# Uncomment this if you want to use SQL database <br>
# for persistent storage and comment the previous line<br>
modparam("usrloc", "db_mode", 2)<br>
<br>
# -- auth params --<br>
# Uncomment if you are using auth module<br>
#<br>
modparam("auth_db", "calculate_ha1", yes)<br>
#<br>
# If you set "calculate_ha1" parameter to yes (which true in this config), <br>
# uncomment also the following parameter)<br>
#<br>
modparam("auth_db", "password_column", "password")<br>
<br>
# -- rr params --<br>
# add value to ;lr param to make some broken UAs happy<br>
modparam("rr", "enable_full_lr", 1)<br>
modparam("usrloc","db_url","mysql://openser:openserrw@localhost/openser")<br>
#modparam("auth","db_url","mysql://openser:openserrw@localhost/openser")<br>
modparam("auth_db","db_url","mysql://openser:openserrw@localhost/openser")<br>
modparam("auth","secret","")<br>
modparam("acc","log_flag",1)<br>
modparam("acc","log_level",1)<br>
modparam("acc","radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")<br>
# ------------------------- request routing logic -------------------<br>
<br>
# main routing logic<br>
<br>
route{<br>
<br>
# initial sanity checks -- messages with<br>
# max_forwards==0, or excessively long requests<br>
if (!mf_process_maxfwd_header("10")) {<br>
sl_send_reply("483","Too Many Hops");<br>
exit;<br>
};<br>
<br>
if (msg:len >= 2048 ) {<br>
sl_send_reply("513", "Message too big");<br>
exit;<br>
};<br>
<br>
# we record-route all messages -- to make sure that<br>
# subsequent messages will go through our proxy; that's<br>
# particularly good if upstream and downstream entities<br>
# use different transport protocol<br>
if (!method=="REGISTER")<br>
record_route();<br>
<br>
# subsequent messages withing a dialog should take the<br>
# path determined by record-routing<br>
if (loose_route()) {<br>
# mark routing logic in request<br>
append_hf("P-hint: rr-enforced\r\n"); <br>
route(1);<br>
};<br>
<br>
if (!uri==myself) {<br>
# mark routing logic in request<br>
append_hf("P-hint: outbound\r\n"); <br>
# if you have some interdomain connections via TLS<br>
#if(uri=~"@tls_domain1.net") {<br>
# t_relay_to_tls("IP_domain1","port_domain1");<br>
# exit;<br>
#} else if(uri=~"@tls_domain2.net") {<br>
# t_relay_to_tls("IP_domain2","port_domain2");<br>
# exit;<br>
#}<br>
route(1);<br>
};<br>
<br>
# if the request is for other domain use UsrLoc<br>
# (in case, it does not work, use the following command<br>
# with proper names and addresses in it)<br>
if (uri==myself) {<br>
<br>
if (method=="REGISTER") {<br>
<br>
# Uncomment this if you want to use digest authentication<br>
if (www_authorize("<a href="http://192.168.2.55">192.168.2.55</a>", "subscriber")) {<br>
www_challenge("<a href="http://192.168.2.55">192.168.2.55</a>", "0");<br>
exit;<br>
};<br>
<br>
save("location");<br>
setflag(1);<br>
if(method=="INVITE")<br>
{<br>
record_route();<br>
};<br>
exit;<br>
};<br>
<br>
lookup("aliases");<br>
if (!uri==myself) {<br>
append_hf("P-hint: outbound alias\r\n"); <br>
route(1);<br>
};<br>
<br>
# native SIP destinations are handled using our USRLOC DB<br>
if (!lookup("location")) {<br>
sl_send_reply("404", "Not Found");<br>
exit;<br>
};<br>
append_hf("P-hint: usrloc applied\r\n"); <br>
};<br>
<br>
route(1);<br>
}<br>
<br>
<br>
route[1] {<br>
# send it out now; use stateful forwarding as it works reliably<br>
# even for UDP2TCP<br>
if (!t_relay()) {<br>
sl_reply_error();<br>
};<br>
exit;<br>
}<br>
<br>
<br>
<br>
Bye<br clear="all"><br>-- <br> Thanks and Regards with cheers<br>Sunkara Ravi Prakash (Voip Developer)<br>Hyperion Technology<br><a href="http://www.hyperion-tech.com">www.hyperion-tech.com</a><br><b>