[Users] test openser behind NAT not work

raviprakash sunkara sunkara.raviprakash.feb14 at gmail.com
Mon Dec 4 06:07:51 CET 2006


Hi SomSak,
Thanks for replying, Abd Don't forget while replying please put the Cc to
Users at openser.org...

See  Register, Invite and Cancel follow the Same RFC , When Comes to ACk and
Bye  it get different  RFC's......

U using  the RTP  or Media Proxy for your Media streaming.....




On 12/4/06, somsak vattanavakin <somsak at infowavenet.com> wrote:
>
> Hi Ravi
>
>   Thanks . after i saw log evenet on UAC .
> i do not sure that ACK message from CALLER can not reach CALLEE so,after
> about 30 second CALLEE HANGUP or not so i put some log .
>
>   in this case i do not sure also that my ADSL ROUTER(A) in front openser
> server is OK to handle SIP messages or not.
>
>   i think but do not test concept. that ACK message from CALLER is not
> handle propery . any idea
>
>
>
>
>
>   from CALLER UAC1(janny) file
>
> -------(1) INVITE Response 180 Ringing it seem OK -----
> [06-12-02]18:50:16.710 | Debug | RESIP:DUM | "### Calling CreateAppDialog
> ### SIP/2.0 180 Ringing
> Via: SIP/2.0/TCP
> 192.168.100.101:6090;received=124.120.171.220
> ;branch=z9hG4bK-d87543-af3a3525d4477d15-1--d87543-;rport=57489
> Record-Route: <sip:192.168.100.5;transport=tcp;lr;ftag=ec59120b>
> Contact:
> <sip:somsak at 124.120.171.220
> :57505;rinstance=c1da0732275186e1;transport=TCP>
> To: ""somsak""<sip:somsak at infowavenet.com>;tag=17458263
> From: ""janny""<sip:janny at infowavenet.com>;tag=ec59120b
> Call-ID: MTJhNGMzNmMyMTE1YTRkOWUzMGI4YjI4ZDJkNzRiY2E.
> CSeq: 2 INVITE
> User-Agent: X-Lite release 1006e stamp 34025
> -------end (1)
>
> ----- (2)  SEND ACK from UAC(1) to UAC(2) ------
> -- it seem that CONTACT use public IP address but ???
>
> [06-12-02]18:50:21.232 | Debug | RESIP:TRANSPORT | "Transmitting to [ V4
> 192.168.100.5:5060 TCP target domain=192.168.100.5 received on: Transport:
> [ V4 0.0.0.0:6090 TCP target domain=unspecified connectionId=0 ]
> connectionId=0 ] tlsDomain= via [ V4 192.168.100.101:6090 TCP target
> domain=192.168.100.5 connectionId=0 ]ACK
> sip:somsak at 124.120.171.220:57505;rinstance=c1da0732275186e1;transport=TCP
> SIP/2.0
> Via: SIP/2.0/TCP
> 192.168.100.101:6090
> ;branch=z9hG4bK-d87543-c85e822254767701-1--d87543-;rport
> Max-Forwards: 70
> Route: <sip:192.168.100.5;transport=tcp;lr;ftag=ec59120b>
> Contact: <sip:janny at 124.120.171.220:57489;transport=TCP>
> To: ""somsak""<sip:somsak at infowavenet.com>;tag=17458263
> From: ""janny""<sip:janny at infowavenet.com>;tag=ec59120b
> Call-ID: MTJhNGMzNmMyMTE1YTRkOWUzMGI4YjI4ZDJkNzRiY2E.
> CSeq: 2 ACK
> ----- end (2)
>
> ------(3)  OTHER ACK MESSAGES
> [06-12-02]18:50:42.303 | Debug | RESIP:TRANSPORT |
> "ConnectionBase::~ConnectionBase 02691E88" |
> [06-12-02]18:50:42.303 | Info | RESIP:TRANSACTION | "Sending
> ConnectionTerminated 3 to TUs" |
> [06-12-02]18:50:42.303 | Info | RESIP:TRANSACTION | "Try sending request
> to a different dns result" |
> [06-12-02]18:50:42.303 | Info | RESIP:TRANSACTION | "Ran out of dns
> entries for 192.168.100.5. Send 503" |
> [06-12-02]18:50:42.303 | Debug | RESIP | "Helper::makeResponse(SipReq:
> ACK somsak at 124.120.171.220:57505 tid=c85e822254767701 cseq=ACK
> contact=janny at 124.120.171.220:57489 / 2 from(tu) code=503 reason=" |
> [06-12-02]18:50:42.304 | Warning | RESIP:DNS | "local hostname does not
> contain a domain part" |
> [06-12-02]18:50:42.304 | Debug | RESIP:TRANSACTION | "Send to TU: TU:
> DialogUsageManager size=1 SIP/2.0 503 Service Unavailable
> Via: SIP/2.0/TCP
> 192.168.100.101:6090
> ;branch=z9hG4bK-d87543-c85e822254767701-1--d87543-;rport
> To: ""somsak""<sip:somsak at infowavenet.com>;tag=17458263
> From: ""janny""<sip:janny at infowavenet.com>;tag=ec59120b
> Call-ID: MTJhNGMzNmMyMTE1YTRkOWUzMGI4YjI4ZDJkNzRiY2E.
> CSeq: 2 ACK
> Warning: 499 IBT101 """"
> Content-Length: 0
>
>
> SIP/2.0 503 Service Unavailable
> Via: SIP/2.0/TCP
> 192.168.100.101:6090
> ;branch=z9hG4bK-d87543-c85e822254767701-1--d87543-;rport
> To: ""somsak""<sip:somsak at infowavenet.com>;tag=17458263
> From: ""janny""<sip:janny at infowavenet.com>;tag=ec59120b
> Call-ID: MTJhNGMzNmMyMTE1YTRkOWUzMGI4YjI4ZDJkNzRiY2E.
> CSeq: 2 ACK
> Warning: 499 IBT101 """"
> Content-Length: 0
>
> --------------- end (3)
>
> ----(4)  BYE MESSAGE
> --- same conact header use public IP ADDRESS
> [06-12-02]18:51:00.658 | Debug | RESIP:DUM | "SEND: BYE
> sip:somsak at 124.120.171.220:57505;rinstance=c1da0732275186e1;transport=TCP
> SIP/2.0
> Via: SIP/2.0/ ;branch=z9hG4bK-d87543-5658db5aee54231a-1--d87543-;rport
> Max-Forwards: 70
> Route: <sip:192.168.100.5;transport=tcp;lr;ftag=ec59120b>
> Contact: <sip:janny at 124.120.171.220:57489;addTransport>
> To: ""somsak""<sip:somsak at infowavenet.com>;tag=17458263
> From: ""janny""<sip:janny at infowavenet.com>;tag=ec59120b
> Call-ID: MTJhNGMzNmMyMTE1YTRkOWUzMGI4YjI4ZDJkNzRiY2E.
> CSeq: 3 BYE
>
> ----- end(4)
>
>
>   from CALLEE UAC2(somsak) log file
> ----- (5) many Retransmit message for INVITE from UAC1
> ----- it seem that UAC2 do not receive ACK from UAC1 right ?
>
> SIP/2.0 200 OK
> Via: SIP/2.0/TCP
> 192.168.100.5;branch=z9hG4bK79e6.4fc365a5.0;received=124.120.168.128;i=f
> Via: SIP/2.0/TCP
> 192.168.100.101:6090;received=124.120.171.220
> ;branch=z9hG4bK-d87543-af3a3525d4477d15-1--d87543-;rport=57489
> Record-Route: <sip:192.168.100.5;transport=tcp;lr=on;ftag=ec59120b>
> Contact:
> <sip:somsak at 124.120.171.220
> :57505;rinstance=c1da0732275186e1;transport=TCP>
> To: ""somsak""<sip:somsak at infowavenet.com>;tag=17458263
> From: ""janny""<sip:janny at infowavenet.com>;tag=ec59120b
> Call-ID: MTJhNGMzNmMyMTE1YTRkOWUzMGI4YjI4ZDJkNzRiY2E.
> CSeq: 2 INVITE
> ----- end(5)
>
> ----(6) UAC2 send BYE message
> [06-12-02]18:50:53.263 | Info | RESIP:DUM |
> """somsak""<sip:somsak at infowavenet.com>;tag=17458263 Sending BYE ACK not
> received" |
> [06-12-02]18:50:53.263 | Debug | RESIP:DUM | "SEND: BYE
> sip:janny at 124.120.171.220:57489;transport=TCP SIP/2.0
> Via: SIP/2.0/ ;branch=z9hG4bK-d87543-7541b52459249e06-1--d87543-;rport
> Max-Forwards: 70
> Route: <sip:192.168.100.5;transport=tcp;lr=on;ftag=ec59120b>
> Contact:
> <sip:somsak at 124.120.171.220
> :57505;rinstance=c1da0732275186e1;transport=TCP>
> To: ""janny""<sip:janny at infowavenet.com>;tag=ec59120b
> From: ""somsak""<sip:somsak at infowavenet.com>;tag=17458263
> Call-ID: MTJhNGMzNmMyMTE1YTRkOWUzMGI4YjI4ZDJkNzRiY2E.
> CSeq: 2 BYE
> User-Agent: X-Lite release 1006e stamp 34025
> Reason: SIP;description=""ACK not received""
> Content-Length: 0
> ---- end(6)
>
>
> Somsak Vattanavakin
>
> 2753-7 Ladprao 99-101
> Bangkok.10310 Thailand
> Tel. (66)0-29350016 , 0-25386251
> Fax. (66)0-25140253
> www.infowavenet.com
>
> > Hi Somsak
> > The Same issue is faced ,
> >
> > The in ur  FireWall/router, ...
> > In Router , openSER system is in DMZ mode, i'm Sure , Even through u did
> > like that...
> >
> > ADSL(A) Router is mis place the HeaderContact
> >
> > Change the Router... with Support the SIP with NAT... Cisco , Linksys,
> > Zoom,
> >
> > can u check the Dialog file UAC ( x-lite 3.0) ... U can see there for
> > invited... Ack and Bye Contact Header is misplacing into the private
> > ip,,,,,,
> >
> > Keep OpenSER direct to the Internet ( for testing ) ............
> > it will  work finely........
> >
>
>    sorry i can not direct INTERNET connect
>
>
>
> > On 12/2/06, somsak vattanavakin <somsak at infowavenet.com> wrote:
> >>
> >> Dear All
> >>
> >>
> >>    i will setup openser behind NAT like these
> >>
> >>
> >>
> >> OPENSER ---> ADSL ROUTER(A) <---> INTERNET  <---> ADSL ROUTER(B)<--
> >> UAC(1)
> >>                                                                  <--
> >> UAC(2)
> >>
> >>
> >>
> >> for UAC to talk each others in the same network with OPENSER
> server  and
> >> try to REGISTER AND INVITE IT OK .
> >>
> >> but if i use UACs that located behind ADSL ROUTER(B) for REGISTER it OK
> >> when UAC(1) INVITE UAC(2) it RING and session established can heard
> >> sound
> >>
> >> but after about 30 second the CALLEE UAC(2) is HANG UP while
> >> CALLER  UAC(1)
> >> still show established
> >>
> >> i saw some mail said that the problem may occour from ADSL ROUTER
> ITSELF
> >> (AGL problem)or some say that ACK problem.  if i connect UAC(1) and
> >> UAC(2)
> >> through ADSL ROUTER(B) to iptel.org and i use UAC(1) INVITE UAC(2) it
> >> work
> >> no problem  for 30 second disconnection . also if i use UAC(1) and
> >> UAC(2)
> >> conect to iptel.org through ADSL ROUTER(A) no problem . AT this point
> >> can I CONCLUDE THAT BOTH ADSL ROUTER  NO PROBLEM FOR SIP CONNECTION. is
> >> it
> >> TRUE ??
> >>
> >>
> >> Next i saw from LOG file it seem no ACK MESSAGE and error like these
> >> --  LOG FILE -------------
> >> ERROR: tcp_blocking_connect: poll error: flags 18
> >> ERROR: tcp_blocking_connect: SO_ERROR (111) Connection refused
> >> ERROR: tcpconn_connect: tcp_blocking_connect failed
> >> ERROR: tcp_send: connect failed
> >> ---
> >>
> >> for simply NAT testing i use openser.cfg like these
> >>
> >> ---------- OPENSER.CFG ---------
> >>   if (!method=="REGISTER")
> >>      record_route();
> >>   if (loose_route()) {
> >>         # mark routing logic in request
> >>         append_hf("P-hint: rr-enforced\r\n");
> >>         route(1);
> >>      };
> >>
> >>   if (!uri==myself) {
> >>         # mark routing logic in request
> >>         append_hf("P-hint: outbound\r\n");
> >>         route(1);
> >>         };
> >>
> >>         if (uri==myself) {
> >>         if (method=="REGISTER") {
> >>
> >>                 if (!www_authorize("infowavenet.com", "subscriber")) {
> >>                                 www_challenge("infowavenet.com", "0");
> >>                                 exit;
> >>                         };
> >>                         fix_nated_register();
> >>                         save("location");
> >>                         exec_msg("cat >> /tmp/test");
> >>                         exit;
> >>                 };
> >>
> >>                 lookup("aliases");
> >>                 if (!uri==myself) {
> >>                         append_hf("P-hint: outbound alias\r\n");
> >>                         route(1);
> >>                 };
> >>
> >>                 # native SIP destinations are handled using our USRLOC
> >> DB
> >>                 if (!lookup("location")) {
> >>                         sl_send_reply("404", "Not Found");
> >>                         exit;
> >>                 };
> >>                 append_hf("P-hint: usrloc applied\r\n");
> >>         };
> >>         route(1);
> >> }
> >>
> >>
> >> route[1] {
> >>         # send it out now; use stateful forwarding as it works reliably
> >>         # even for UDP2TCP
> >>             fix_nated_contact();
> >>         if(method == "INVITE")
> >>           { fix_nated_sdp("3"); }
> >>         if (!t_relay()) {
> >>         sl_reply_error();
> >>         } else { exec_msg("cat >> /tmp/test");}
> >>         exit;
> >> }
> >> ------------
> >>
> >>
> >> MY QUESTION:
> >>
> >>   1) can openser server is BEHIND NAT ADSL ROUTER and receive Call from
> >> UAC from other NAT ROUTER .
> >>
> >>   2) if so what the problem that CALLEE HANGUP every 30 seconds
> >>    ( i use XLITE v.3 for UAC )
> >>
> >>   3) if it possible can you fix openser.cfg that work for this
> situation
> >>
> >>
> >>
> >> Best
> >>
> >> Somsak Vattanavakin
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at openser.org
> >> http://openser.org/cgi-bin/mailman/listinfo/users
> >>
> >
> >
> >
> > --
> > Thanks and Regards
> > Ravi Prakash Sunkara
> > ravi.sunkara at hyperion-tech.com
> > M:+91 9985077535
> > O:+91 40 23114549
> > F:+91 40 40208727
> > ravi.sunkara at hyperion-tech.com
> > www.hyperion-tech.com
> >
>



-- 
Thanks and Regards
Ravi Prakash Sunkara
ravi.sunkara at hyperion-tech.com
M:+91 9985077535
O:+91 40 23114549
F:+91 40 40208727
ravi.sunkara at hyperion-tech.com
www.hyperion-tech.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20061204/57afc497/attachment.htm 


More information about the Users mailing list