<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hm, a beer is fine ;-) However, maybe I'm the one owing you one. Are you 
saying that an unmodified version of the onsip config file has this issue (that 
route(4) is called twice)?&nbsp; </DIV>
<DIV>g-(</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=alberto.ipt@telefonica.net 
  href="mailto:alberto.ipt@telefonica.net">Alberto</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=greger@teigre.com 
  href="mailto:greger@teigre.com">Greger V. Teigre</A> ; <A 
  title=serusers@lists.iptel.org 
  href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 22, 2005 05:08 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Serusers] One path of RTP 
  traffic (possible bug?????)</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial>Thank you very much....... </FONT><FONT 
  color=#0000ff><FONT face=Arial color=#000000>I owe you a beer (or 
  juice)</FONT></FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>The problem was the line 272 ( of onSIP SER Getting 
  Started, PSTN Gateway).Each time we call the function route(5) we have called 
  previously the route(4) but inside of the function route(5) there are a call 
  to the function route(4) another time, I called two times the route(4) as your 
  you said.</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Best Regards,</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>--</FONT></DIV>
  <DIV><FONT face=Arial>Alberto</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV>----- Original Message ----- </DIV>
  <BLOCKQUOTE dir=ltr 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=greger@teigre.com href="mailto:greger@teigre.com">Greger V. 
    Teigre</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=alberto.ipt@telefonica.net 
    href="mailto:alberto.ipt@telefonica.net">Alberto</A> ; <A 
    title=serusers@lists.iptel.org 
    href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 22, 2005 3:40 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Serusers] One path of RTP 
    traffic (possible bug?????)</DIV>
    <DIV><BR></DIV>
    <DIV>You probably call fix_nated_sdp() twice in your config.</DIV>
    <DIV>g-)</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>---- Original Message ----<BR>From: Alberto<BR>To: Alberto ; <A 
    href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR>Sent: Thursday, 
    September 22, 2005 01:09 PM<BR>Subject: Re: [Serusers] One path of RTP 
    traffic (possible bug?????)<BR><BR>&gt; I have examine the packet INVITE and 
    have seen the next:<BR>&gt; <BR>&gt; AA.AA.AA.AA = public IP address of 
    SER/Mediaproxy Server.<BR>&gt; BB.BB.BB.BB = public IP address of endpoint 
    (the endopoint is behind<BR>&gt; nat) <BR>&gt; CC.CC.CC.CC = public IP 
    address of SIP SERVER(carrier)<BR>&gt; <BR>&gt; When the SER follows the 
    INVITE message, rewrites the field Contact<BR>&gt; and <BR>&gt; fill it with 
    the public ip address of sip client. Can this to be my<BR>&gt; problem? 
    <BR>&gt; <BR>&gt; In this same message into SDP, in Contact information, the 
    SER change<BR>&gt; this field BUT write the <BR>&gt; ip address two times. 
    Can this a bug?<BR>&gt; <BR>&gt; Thank at all,<BR>&gt; --<BR>&gt; 
    Alberto<BR>&gt; <BR>&gt; ----------------<BR>&gt; INVITE from endpoint to 
    SER:<BR>&gt;&nbsp;&nbsp; Session Initiation 
    Protocol<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Request-Line: INVITE 
    sip:932215863@AA.AA.AA.AA 
    SIP/2.0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Method: 
    INVITE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Resent 
    Packet: False<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Message 
    Header<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Via: 
    SIP/2.0/UDP<BR>&gt; 192.168.100.55:5060;branch=z9hG4bK-63bf38d4;rport 
    <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From: 
    &lt;sip:1000@AA.AA.AA.AA&gt;;tag=c1342f3464087414o0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    To: 
    &lt;sip:932215863@AA.AA.AA.AA&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Call-ID: 
    d7eca5b4-6a866f94@192.168.100.55<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    CSeq: 102 INVITE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Max-Forwards: 70<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Contact: 
    &lt;sip:1000@192.168.100.55:5060&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Expires: 240<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    User-Agent: 
    Linksys/PAP2-2.0.12(LS)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Content-Length: 428<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, 
    REFER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Supported: 
    x-sipura<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Content-Type: application/sdp<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Message 
    body<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Session 
    Description 
    Protocol<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session Description Protocol Version (v): 
    0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner/Creator, Session Id (o): - 6735673 6735673 IN IP4<BR>&gt; 
    192.168.100.55 
    <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Username: 
    -<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session ID: 
    6735673<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session Version: 
    6735673<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Network Type: 
    IN<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Address Type: 
    IP4<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Address: 
    192.168.100.55<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session Name (s): 
    -<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Information (c): IN IP4 
    192.168.100.55<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Network Type: 
    IN<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Address Type: 
    IP4<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Address: 
    192.168.100.55<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    ........................<BR>&gt; <BR>&gt; INVITE from SER to SIP 
    SERVER(CARRIER):<BR>&gt; Session Initiation 
    Protocol<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Request-Line: INVITE 
    sip:932215863@CC.CC.CC.CC:5060 
    SIP/2.0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Method: 
    INVITE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Resent 
    Packet: False<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Message 
    Header<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Record-Route:<BR>&gt; 
    &lt;sip:932215863@AA.AA.AA.AA:5060;nat=yes;ftag=c1342f3464087414o0;lr=on&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Via: SIP/2.0/UDP 
    AA.AA.AA.AA;branch=z9hG4bKa01c.50c2aac6.0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Via: SIP/2.0/UDP<BR>&gt; 
    192.168.100.55:5060;received=BB.BB.BB.BB;branch=z9hG4bK-63bf38d4;rport=60413<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    From: 
    &lt;sip:1000@AA.AA.AA.AA&gt;;tag=c1342f3464087414o0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    To: 
    &lt;sip:932215863@AA.AA.AA.AA&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Call-ID: 
    d7eca5b4-6a866f94@192.168.100.55<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    CSeq: 102 INVITE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Max-Forwards: 16<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Contact: 
    &lt;sip:1000@BB.BB.BB.BB:60413&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Expires: 240<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    User-Agent: 
    Linksys/PAP2-2.0.12(LS)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Content-Length: 445<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, 
    REFER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Supported: 
    x-sipura<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Content-Type: application/sdp<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Message 
    body<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Session 
    Description 
    Protocol<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session Description Protocol Version (v): 
    0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner/Creator, Session Id (o): - 6735673 6735673 IN IP4<BR>&gt; 
    192.168.100.55 
    <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Username: 
    -<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session ID: 
    6735673<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session Version: 
    6735673<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Network Type: 
    IN<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Address Type: 
    IP4<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Owner Address: 
    192.168.100.55<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Session Name (s): 
    -<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Information (c): IN IP4 
    AA.AA.AA.AAAA.AA.AA.AA<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Network Type: 
    IN<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Address Type: 
    IP4<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Connection Address: AA.AA.AA.AAAA.AA.AA.AA&nbsp;&nbsp;&nbsp; <BR>&gt; 
    &lt;---------- BUG???????? <BR>&gt; <BR>&gt; <BR>&gt; ----- Original Message 
    -----<BR>&gt; From: Alberto<BR>&gt; To: serusers@lists.iptel.org<BR>&gt; Sent: 
    Thursday, September 22, 2005 10:55 AM<BR>&gt; Subject: [Serusers] One path 
    of RTP traffic<BR>&gt; <BR>&gt; <BR>&gt; Hi,<BR>&gt; I have a SER + 
    Mediaproxy. I have not any problem the call between<BR>&gt; SIP clients 
    (behind or not the NATs) <BR>&gt; but when I try to call to PSTN (via cisco) 
    I only have RTP traffic<BR>&gt; from SIP client to PSTN. <BR>&gt; <BR>&gt; 
    Summarizing, the path of rtp traffic would have to be from:<BR>&gt; 
    <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    up:&nbsp;&nbsp;&nbsp; SIP Client ----&gt; SER ---&gt; 
    GW-PSTN<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; down:&nbsp; 
    SIP Client &lt;---- SER &lt;--- GW-PSTN<BR>&gt; <BR>&gt; but, really 
    is:<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    up:&nbsp;&nbsp;&nbsp; SIP Client ----&gt; SER ---&gt; 
    GW-PSTN<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; down:&nbsp; 
    SIP Client &lt;------------- GW-PSTN<BR>&gt; <BR>&gt; I use the 
    command:<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    rewritehostport("212.xxx.xxx.xxx:5060");<BR>&gt; <BR>&gt; when I match a 
    geographic number.<BR>&gt; <BR>&gt; The complete scheme is:<BR>&gt; 
    <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SIP Client ---- NAT --------- 
    SER+Mediaproxy -------- SIP Server<BR>&gt; --- GWPSTN <BR>&gt; <BR>&gt; 
    <BR>&gt; <BR>&gt; Some idea?<BR>&gt; <BR>&gt; 
Thanks,</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>