Hi Bogdan
Yes, UAS is an opensips too, by chance. 
RegardsHamid R. Hashmi

Date: Wed, 9 Sep 2015 14:47:10 +0300
From: bog...@opensips.org
To: hamid2kv...@hotmail.com; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] ACK did not Receive on Proxy and get in loop


  
    
  
  
    Hi Hamid,

    

    I see the UAS is breaking the contact by re-writing it with the IP
    of the proxy. Is the UAS an opensips too, by chance ?

    

    Regards,

    Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
    On 09.09.2015 14:21, Hamid Hashmi
      wrote:

    
    
      
      Bogdan
        

          I used local cache to store the Request URI and then changed
          the contact Header of 200 OK at Proxy by replacing the contact
          from RURI. It worked for me. But you can see in 200 OK
          UAS-Proxy that UAS is changing the Contact with proxy IP. 
        

        
        
          Bob-Proxy
          

            
          SIP/2.0 200 OK
          Via: SIP/2.0/UDP
              proxy.com:7000;branch=z9hG4bK9347.84c78b97.0
          Via: SIP/2.0/UDP
              sipuas.com:7000;branch=z9hG4bK9347.4f022b62.0
          Via: SIP/2.0/UDP
              proxy.com:7000;branch=z9hG4bK9347.74c78b97.0
          Via: SIP/2.0/UDP
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413>
          Record-Route:
<sip:923071000...@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2>
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true>
          Contact:
<sip:923071000202@139.190.68.251:34580;transport=UDP>
          To:
              <sip:923071000...@sip.realm.com:7000>;tag=ab9efd6a
          From:
              "+923071000201"
              <sip:+923071000...@sip.realm.com>;tag=1397829413
          Call-ID: 146889629
          CSeq: 21 INVITE
          Allow: INVITE, ACK,
              CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO,
              SUBSCRIBE
          Content-Type:
              application/sdp
          Supported: replaces,
              norefersub, extended-refer, timer, outbound, path,
              X-cisco-serviceuri
          User-Agent: Zoiper
              r30645
          Allow-Events:
              presence, kpml
          Content-Length: 243
          

            
          proxy-UAS
          

            
          SIP/2.0 200 OK
          Via: SIP/2.0/UDP
              sipuas.com:7000;branch=z9hG4bK9347.4f022b62.0
          Via: SIP/2.0/UDP
              proxy.com:7000;branch=z9hG4bK9347.74c78b97.0
          Via: SIP/2.0/UDP
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413>
          Record-Route:
<sip:923071000...@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2>
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true>
          Contact:
<sip:923071000202@139.190.68.251:34580;transport=UDP>
          To:
              <sip:923071000...@sip.realm.com:7000>;tag=ab9efd6a
          From:
              "+923071000201"
              <sip:+923071000...@sip.realm.com>;tag=1397829413
          Call-ID: 146889629
          CSeq: 21 INVITE
          Allow: INVITE, ACK,
              CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO,
              SUBSCRIBE
          Content-Type:
              application/sdp
          Supported: replaces,
              norefersub, extended-refer, timer, outbound, path,
              X-cisco-serviceuri
          User-Agent: Zoiper
              r30645
          Allow-Events:
              presence, kpml
          Content-Length: 243
          

            
          UAS-Proxy
          

            
          SIP/2.0 200 OK
          Via: SIP/2.0/UDP
              proxy.com:7000;branch=z9hG4bK9347.74c78b97.0
          Via: SIP/2.0/UDP
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413>
          Record-Route:
<sip:923071000...@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2>
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true>
          Contact:
              <sip:923071000...@proxy.com:7000;transport=UDP>
          To:
              <sip:923071000...@sip.realm.com:7000>;tag=ab9efd6a
          From:
              <sip:923071000...@sip.realm.com:7000>;tag=1397829413
          Call-ID: 146889629
          CSeq: 21 INVITE
          Allow: INVITE, ACK,
              CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO,
              SUBSCRIBE
          Content-Type:
              application/sdp
          Supported: replaces,
              norefersub, extended-refer, timer, outbound, path,
              X-cisco-serviceuri
          User-Agent: Zoiper
              r30645
          Allow-Events:
              presence, kpml
          Content-Length: 257
          

            
          Proxy-Alice #
                remove_hf("Contact");  append_hf("Contact:
                <$var(uri)>;transport=UDP>/r/n");
          

            
          SIP/2.0 200 OK
          Via: SIP/2.0/UDP
172.16.37.66:5065;received=203.215.176.22;rport=33611;branch=z9hG4bK266489159
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413>
          Record-Route:
<sip:923071000...@sipuas.com:7000;lr;ftag=1397829413;did=bbf.3846c9b2>
          Record-Route:
              <sip:proxy.com:7000;lr;ftag=1397829413;EdgeProxy=true>
          To:
              <sip:923071000...@sip.realm.com:7000>;tag=ab9efd6a
          From:
              <sip:923071000...@sip.realm.com:7000>;tag=1397829413
          Call-ID: 146889629
          CSeq: 21 INVITE
          Allow: INVITE, ACK,
              CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO,
              SUBSCRIBE
          Content-Type:
              application/sdp
          Supported: replaces,
              norefersub, extended-refer, timer, outbound, path,
              X-cisco-serviceuri
          User-Agent: Zoiper
              r30645
          Allow-Events:
              presence, kpml
          Content-Length: 257
          Contact:
                <sip:923071000202@139.190.68.251:34580;transport=UDP> 
          

          
          

            
          Regards
          Hamid R. Hashmi
          

        
      
    
    
                                          
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to