<!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.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<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 the following
network:</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>cisco ATA (valid ip)
---------------------------ser+rtpproxy---------------------------quintum
GW(valid ip)</FONT></DIV>
<DIV><FONT face=Arial
size=2>62.220.101.8
62.220.101.2
62.220.101.3</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>I want to pass media via ser+rtpproxy, ser can
communicate with rtpproxy via unix socket sucessfully.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The problem is when i call from ATA to quintum the
voice path is one way??????????/</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 and RTPPROXYLOG are 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>#<BR># $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15
andrei Exp $<BR>#<BR># simple quick-start config script<BR>#</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># ----------- global configuration parameters
------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>#debug=3 # debug level
(cmd line: -dddddddddd)<BR>#fork=yes<BR>#log_stderror=no # (cmd line:
-E)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/* Uncomment these lines to enter debugging mode
<BR>debug=7<BR>fork=no<BR>log_stderror=yes<BR>*/</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"</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><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># -- usrloc params --</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>modparam("usrloc", "db_mode",
0)</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># for persistent storage and comment the previous
line<BR>#modparam("usrloc", "db_mode", 2)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># ------------------------- request routing
logic -------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># main routing logic</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>route{</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> # 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> record_route(); <BR> # loose-route
processing<BR> if (loose_route())
{<BR> t_relay();<BR> break;<BR> };</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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------------------");<BR> <BR> if (uri=~"^sip:3000@
62.220.101.2"){ *********************SER VALID IP
ADDRESS***********************<BR>
rewritehost("62.220.101.3");****************************QUINTUM VALID IP
ADDRESS**********************<BR>
force_rtp_proxy();<BR> log(1, "-------MEDIA IS
BEINGED PROXIED--------------");<BR>
forward(62.220.101.3, 5060);********************************QUINTUM VALID IP
ADD**************************<BR>
break;<BR>
}; <BR> <BR> <BR></FONT><FONT face=Arial
size=2><BR> #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> sl_reply_error();<BR> };</DIV>
<DIV> </DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>++++++++++++++++++++++++++++++++++++++++++++++++++++RTYPROXY DEBUG
LOG+++++++++++++++++++++++++++++++++++++++</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV># rtpproxy -2f -l 62.220.101.2 -s unix:/var/run/rtpproxy.sock -t
40<BR>rtpproxy: rtpproxy started, pid 18398<BR>rtpproxy: new session <A
href="mailto:633554326@62.220.101.8">633554326@62.220.101.8</A>, tag 3269848300
requested<BR>rtpproxy: new session on a port 35000 created, tag
3269848300<BR>rtpproxy: pre-filling caller's address with
62.220.101.8:16384<BR>rtpproxy: session timeout<BR>rtpproxy: RTP stats: 0 in
from callee, 0 in from caller, 0 relayed, 0 dropped<BR>rtpproxy: RTCP stats: 0
in from callee, 0 in from caller, 0 relayed, 0 dropped<BR>rtpproxy: session on
ports 35000/0 is cleaned up</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></FONT><FONT face=Arial size=2>Appreciate any suggections</FONT></DIV>
<DIV><FONT face=Arial size=2>mohammad</FONT></DIV></DIV></DIV></BODY></HTML>