<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi ALL; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have been trying to work with ser+mediaproxy but
I have one way audio problem</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have the following network:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>UA (private ip)--------------------unix nat
router------------------(public-ip)ser+mediaproxy-------------------------------UA(public
ip)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) I donot use any db for domain.so , what is
it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2) I run it with /etc/init.d/mediaproxy
suuceccfully. how do you run it??????????? </FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>3) It appears ser canot find mediaproxy while I can
run it successfully.I got the following errors :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>0(5982) DBT:dbt_load_file: request for table
[domain]<BR> 0(5982) DBT:dbt_load_file: db is
[/usr/local/etc/ser/]<BR> 0(5982) DBT:dbt_load_file: loading file
[/usr/local/etc/ser/]<BR> 0(5982) DTB:dbt_db_get_table: domain</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Content of [domain]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 0(5982) DBT:db_query: table not
loaded!<BR> 0(5982) DBT:db_query: error while quering
table!<BR> 0(5982) is_local(): Error while querying
database<BR> 0(5982) parse_headers: flags=33554432<BR> 0(5982)
DBT:db_query: table not loaded!<BR> 0(5982) DBT:db_query: error while
quering table!<BR> 0(5982) is_local(): Error while querying
database<BR> 0(5982) error: mediaproxy/sendMediaproxyCommand(): can't
connect to MediaProxy</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>**********************************************************************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>MY ser.cfg is also as follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>check_via=no # (cmd. line:
-v)<BR>dns=no #
(cmd. line: -r)<BR>rev_dns=no # (cmd. line:
-R)<BR>port=5060<BR>#children=4<BR>fifo="/tmp/ser_fifo"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># ------------------ module loading
----------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># Uncomment this if you want to use SQL
database<BR>#loadmodule "/usr/local/lib/ser/modules/mysql.so"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>loadmodule
"/usr/local/lib/ser/modules/sl.so"<BR>loadmodule
"/usr/local/lib/ser/modules/tm.so"<BR>loadmodule
"/usr/local/lib/ser/modules/rr.so"<BR>loadmodule
"/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule
"/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule
"/usr/local/lib/ser/modules/registrar.so"<BR>#loadmodule
"/usr/local/lib/ser/modules/nathelper.so"<BR>loadmodule
"/usr/local/lib/ser/modules/mediaproxy.so"<BR>loadmodule
"/usr/local/lib/ser/modules/domain.so"<BR>loadmodule
"/usr/local/lib/ser/modules/dbtext.so"<BR>loadmodule
"/usr/local/lib/ser/modules/textops.so"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># Uncomment this if you want digest
authentication<BR># mysql.so must be loaded !<BR>#loadmodule
"/usr/local/lib/ser/modules/auth.so"<BR>#loadmodule
"/usr/local/lib/ser/modules/auth_db.so"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># ----------------- setting module-specific
parameters ---------------</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># -- usrloc params --</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>modparam("usrloc", "db_mode",
0)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Uncomment this if you want to use SQL
database<BR># for persistent storage and comment the previous line</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#modparam("usrloc", "db_mode", 2)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># -- 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")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># -- rr params --<BR># add value to ;lr param to
make some broken UAs happy<BR>modparam("rr", "enable_full_lr", 1)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#NAT & RT<BR>#modparam("registrar", "nat_flag",
6)<BR>modparam("mediaproxy", "natping_interval",30)<BR>modparam("mediaproxy",
"mediaproxy_socket", "var/run/mediaproxy.sock")<BR>modparam("mediaproxy",
"sip_asymmetrics",
"/usr/local/etc/ser/mediaproxy/sip-asymmetric-clients")<BR>modparam("mediaproxy",
"rtp_asymmetrics",
"usr/local/etc/ser/mediaproxy/rtp-asymmetric-clients")</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># ------------------------- request routing
logic -------------------</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># main routing logic</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>route{</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> #
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>
break;<BR>
};<BR> if ( msg:len > max_len )
{<BR>
sl_send_reply("513", "Message too
big");<BR>
break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # we
record-route all messages -- to make sure that</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
record_route();<BR> # loose-route
processing<BR> if (loose_route())
{<BR>
t_relay();<BR>
break;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> # 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> log(1, "REQUEST FOR
SERVED DOMAIN------------------");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
if(method=="REGISTER"){<BR>
if
(client_nat_test("3")){<BR>
setflag(6);<BR>
force_rport();<BR>
fix_contact();<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
save("location");<BR>
break;<BR>
}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if(!lookup("location"))
{<BR>
sl_send_reply("404", "not
found");<BR>
break();<BR>
}</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR> };</DIV>
<DIV> </DIV>
<DIV> if
(method=="INVITE"){<BR>
record_route();<BR> };</DIV>
<DIV> </DIV>
<DIV> if (client_nat_test("3")
&& !search("^Record-Route:"))
{<BR>
force_rport();<BR>
fix_contact();<BR>
};</DIV>
<DIV> </DIV>
<DIV> if
(method=="INVITE")
{<BR>
t_on_reply("1");<BR>
};</DIV>
<DIV> </DIV>
<DIV> if
(method=="INVITE" || method=="ACK")
{<BR>
use_media_proxy();<BR>
};</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> #we forwad to current uri now; use stateful forwarding;
that<BR> # works reliably even if we
forward from TCP to UDP<BR> if
(!t_relay()) {<BR>
if (method=="INVITE" ||
method=="ACK"){<BR>
end_media_session();<BR>
};<BR>
sl_reply_error();<BR> };</DIV>
<DIV> </DIV>
<DIV><BR>}</DIV>
<DIV> </DIV>
<DIV>onreply_route[1]{<BR> if(status=~"[12][0-9][0-9]"){</DIV>
<DIV> </DIV>
<DIV> if (client_nat_test("1"))
{<BR>
fix_contact();<BR>
};<BR> use_media_proxy();<BR>
};</DIV>
<DIV> </DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Warmest Regards</DIV>
<DIV>mohammad</DIV>
<DIV></FONT> </DIV></DIV></BODY></HTML>