<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You don't say if this is a NAT problem or not. <br>
I would start with devices non-NATed (to sort out rtpproxy issues).<br>
I think rtpproxy got video support a while back, but I haven't tested
it. <br>
If it works with non-NAted, you may want to review your NAT handling
based on the Getting Started guide.<br>
g-)<br>
<br>
<br>
Steven Wong wrote:
<blockquote cite="mid936785.28094.qm@web35603.mail.mud.yahoo.com"
 type="cite">
  <div>Hello All:</div>
  <div>&nbsp;</div>
  <div>You will find enclosed our ser.cfg file that I have adapted from
a very generous SIP user from the Internet.<br>
&nbsp;&nbsp; <br>
This ser.cfg file work perfectly with Audio (IP Phone and Softphone).
But when I am trying to use a Video Phone (we did try with GrandStream
GXV-3000 Video Phone), it just giving us Audio but NOT Video. I did
also try the same GrandStream GXV-3000 Video Phone with FreeWorldDialup
and it is working fine with Video.</div>
  <div>&nbsp;</div>
  <div>We have checked the etherreal output&nbsp;while trying to make a call
and we are&nbsp;having&nbsp;this type of errors on the etherreal:</div>
  <div>&nbsp;</div>
  <div>-----</div>
  <div>
  <div>RTP Protocol</div>
  <div>Source IP (The IP of the Video Phone) and Destination IP (The IP
of the SER Server)&nbsp;------&shy; Payload Type = Unknown (126)</div>
  <div>&nbsp;</div>
  <div>ICMP Protocol</div>
  <div>Source IP (The IP of the SER Server) and Destination IP (The IP
of the Video Phone)&nbsp;------&shy;Destination Unreachable&nbsp;(Port Unreacheable)</div>
  <div>&nbsp;</div>
  <div>These 2 errors repeated six time before it stop with a good
signal of:</div>
  <div>&nbsp;</div>
  <div>Payload Type = ITU-T G.711 PCMU</div>
  <div>&nbsp;</div>
  <div>Then the audio start but without audio.<br>
---</div>
  <div><br>
Would you please tell us what is going wrong with this ser.cfg file?
your answer is greatly appreciated.<br>
&nbsp;&nbsp; <br>
Many thanks,<br>
&nbsp;&nbsp; <br>
Steven Wong</div>
  </div>
  <div>&nbsp;</div>
  <div>--------------------------------------------------------------------------</div>
  <div>debug=3<br>
fork=yes<br>
log_stderror=no</div>
  <div>check_via=no<br>
dns=no<br>
rev_dns=no</div>
  <div>listen=XXX.XXX.XXX.XXX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # INSERT YOUR IP ADDRESS HERE<br>
# port=5060<br>
children=3</div>
  <div>alias="<span id="lw_1172198623_0"
 style="border-bottom: 1px dashed rgb(0, 102, 204);">HOST.DOMAINNAME.COM</span>"<br>
alias="XXX.XXX.XXX.XXX"</div>
  <div>fifo="/tmp/ser_fifo"<br>
fifo_db_url="mysql://ser:PASSWORD@localhost/ser"</div>
  <div>loadmodule "/usr/local/lib/ser/modules/mysql.so"<br>
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/auth.so"<br>
loadmodule "/usr/local/lib/ser/modules/auth_db.so"<br>
loadmodule "/usr/local/lib/ser/modules/uri.so"<br>
loadmodule "/usr/local/lib/ser/modules/uri_db.so"<br>
loadmodule "/usr/local/lib/ser/modules/nathelper.so"<br>
loadmodule "/usr/local/lib/ser/modules/textops.so"<br>
loadmodule "/usr/local/lib/ser/modules/acc.so"</div>
  <div>modparam("auth_db|uri_db|usrloc", "db_url",
"mysql://ser:PASSWORD@localhost/ser")<br>
modparam("auth_db", "calculate_ha1", 1)<br>
modparam("auth_db", "password_column", "password")</div>
  <div>modparam("nathelper", "natping_interval", 30) <br>
modparam("nathelper", "ping_nated_only", 1)&nbsp;&nbsp; <br>
modparam("nathelper", "rtpproxy_sock", "unix:/var/run/rtpproxy.sock")</div>
  <div>modparam("usrloc", "db_mode", 2)</div>
  <div>modparam("registrar", "nat_flag", 6)</div>
  <div>modparam("rr", "enable_full_lr", 1)<br>
#---Accounting params<br>
modparam("acc", "log_level", 1)<br>
modparam("acc", "log_flag", 1)</div>
  <div># -------------------------&nbsp; request routing logic
-------------------</div>
  <div># main routing logic</div>
  <div>route{</div>
  <div>&nbsp;# initial sanity checks -- messages with<br>
&nbsp;# max_forwards==0, or excessively long requests<br>
&nbsp;if (!mf_process_maxfwd_header("10")) {<br>
&nbsp;&nbsp;sl_send_reply("483","Too Many Hops");<br>
&nbsp;&nbsp;break;<br>
&nbsp;};<br>
&nbsp;if (msg:len &gt;=&nbsp; max_len ) {<br>
&nbsp;&nbsp;sl_send_reply("513", "Message too big");<br>
&nbsp;&nbsp;break;<br>
&nbsp;};<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # !! Nathelper<br>
&nbsp;# Special handling for NATed clients; first, NAT test is<br>
&nbsp;# executed: it looks for via!=received and RFC1918 addresses<br>
&nbsp;# in Contact (may fail if line-folding is used); also,<br>
&nbsp;# the received test should, if completed, should check all<br>
&nbsp;# vias for rpesence of received<br>
&nbsp;if (nat_uac_test("3")) {<br>
&nbsp;&nbsp;# Allow RR-ed requests, as these may indicate that<br>
&nbsp;&nbsp;# a NAT-enabled proxy takes care of it; unless it is<br>
&nbsp;&nbsp;# a REGISTER<br>
&nbsp;&nbsp;if (method == "REGISTER" || ! search("^Record-Route:")) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log("LOG: Someone trying to register from private IP,
rewriting\n");</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # This will work only for user agents that support
symmetric<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # communication. We tested quite many of them and majority is<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # smart enough to be symmetric. In some phones it takes a
configuration<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # option. With Cisco 7960, it is called NAT_Enable=Yes, with
kphone it is<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # called "symmetric media" and "symmetric signalling".</div>
  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_nated_contact(); # Rewrite contact with source IP of
signalling<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method == "INVITE") {<br>
&nbsp;&nbsp;&nbsp;fix_nated_sdp("1"); # Add direction=active to SDP<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; force_rport(); # Add rport parameter to topmost Via<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setflag(6);&nbsp;&nbsp;&nbsp; # Mark as NATed<br>
&nbsp;&nbsp;};<br>
&nbsp;};</div>
  <div>&nbsp;# we record-route all messages -- to make sure that<br>
&nbsp;# subsequent messages will go through our proxy; that's<br>
&nbsp;# particularly good if upstream and downstream entities<br>
&nbsp;# use different transport protocol<br>
&nbsp;if (!method=="REGISTER") record_route();&nbsp;</div>
  <div>&nbsp;# subsequent messages withing a dialog should take the<br>
&nbsp;# path determined by record-routing<br>
&nbsp;if (loose_route()) {<br>
&nbsp;&nbsp;# mark routing logic in request<br>
&nbsp;&nbsp;append_hf("P-hint: rr-enforced\r\n"); <br>
&nbsp;&nbsp;route(1);<br>
&nbsp;&nbsp;break;<br>
&nbsp;};</div>
  <div>&nbsp;setflag(1);<br>
&nbsp;if (!uri==myself) {<br>
&nbsp;&nbsp;# mark routing logic in request<br>
&nbsp;&nbsp;append_hf("P-hint: outbound\r\n"); <br>
&nbsp;&nbsp;route(1);<br>
&nbsp;&nbsp;break;<br>
&nbsp;};</div>
  <div>&nbsp;# if the request is for other domain use UsrLoc<br>
&nbsp;# (in case, it does not work, use the following command<br>
&nbsp;# with proper names and addresses in it)<br>
&nbsp;if (uri==myself) {</div>
  <div>&nbsp;&nbsp;if (method=="REGISTER") {</div>
  <div># Uncomment this if you want to use digest authentication<br>
&nbsp;&nbsp;&nbsp;if (!www_authorize("<span id="lw_1172198623_1"
 style="border-bottom: 1px dashed rgb(0, 102, 204);">HOST.DOMAINNAME.COM</span>",
"subscriber")) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;www_challenge("<span id="lw_1172198623_2"
 style="border-bottom: 1px dashed rgb(0, 102, 204);">HOST.DOMAINNAME.COM</span>",
"0");<br>
&nbsp;&nbsp;&nbsp;&nbsp;break;<br>
&nbsp;&nbsp;&nbsp;};</div>
  <div>&nbsp;&nbsp;&nbsp;save("location");<br>
&nbsp;&nbsp;&nbsp;break;<br>
&nbsp;&nbsp;};</div>
  <div>&nbsp;&nbsp;lookup("aliases");<br>
&nbsp;&nbsp;if (!uri==myself) {<br>
&nbsp;&nbsp;&nbsp;append_hf("P-hint: outbound alias\r\n"); <br>
&nbsp;&nbsp;&nbsp;route(1);<br>
&nbsp;&nbsp;&nbsp;break;<br>
&nbsp;&nbsp;};</div>
  <div>&nbsp;&nbsp;# native SIP destinations are handled using our USRLOC DB<br>
&nbsp;&nbsp;if (!lookup("location")) {<br>
&nbsp;&nbsp;&nbsp;sl_send_reply("404", "Not Found");<br>
&nbsp;&nbsp;&nbsp;break;<br>
&nbsp;&nbsp;};<br>
&nbsp;};<br>
&nbsp;append_hf("P-hint: usrloc applied\r\n"); <br>
&nbsp;route(1);<br>
}</div>
  <div>route[1] <br>
{<br>
&nbsp;# !! Nathelper<br>
&nbsp;if (uri=~<a class="moz-txt-link-rfc2396E" href="mailto:[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)">"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)"</a>
&amp;&amp; !search("^Route:")){<br>
&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("479", "We don't forward to private IP addresses");<br>
&nbsp;&nbsp;&nbsp;&nbsp; break;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
&nbsp;<br>
&nbsp;# if client or server know to be behind a NAT, enable relay<br>
&nbsp;if (isflagset(6)) {<br>
&nbsp;&nbsp;&nbsp;&nbsp; force_rtp_proxy();<br>
&nbsp;};</div>
  <div>&nbsp;# NAT processing of replies; apply to all transactions (for
example,<br>
&nbsp;# re-INVITEs from public to private UA are hard to identify as<br>
&nbsp;# NATed at the moment of request processing); look at replies<br>
&nbsp;t_on_reply("1");</div>
  <div>&nbsp;# send it out now; use stateful forwarding as it works reliably<br>
&nbsp;# even for UDP2TCP<br>
&nbsp;if (!t_relay()) {<br>
&nbsp;&nbsp;sl_reply_error();<br>
&nbsp;};<br>
}</div>
  <div># !! Nathelper<br>
onreply_route[1] {<br>
&nbsp;&nbsp;&nbsp; # NATed transaction ?<br>
&nbsp;&nbsp;&nbsp; if (isflagset(6) &amp;&amp; status =~ "(183)|2[0-9][0-9]") {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_nated_contact();<br>
&nbsp;force_rtp_proxy();<br>
&nbsp;&nbsp;&nbsp; # otherwise, is it a transaction behind a NAT and we did not<br>
&nbsp;&nbsp;&nbsp; # know at time of request processing ? (RFC1918 contacts)<br>
&nbsp;&nbsp;&nbsp; } else if (nat_uac_test("1")) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_nated_contact();<br>
&nbsp;&nbsp;&nbsp; };<br>
}<br>
--------------------------------------------------------------------------</div>
  <p> </p>
  <hr size="1">The fish are biting.<br>
  <a
 href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50">
Get more visitors</a> on your site using <a
 href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&amp;cmp=Yahoo&amp;ctv=Q107Tagline&amp;s=Y&amp;s2=EM&amp;b=50">Yahoo!
Search Marketing.</a>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>