[SR-Users] Relaying ACK to Asterisk

Igor Potjevlesch igor.potjevlesch at gmail.com
Tue Sep 23 17:34:38 CEST 2014


Hello Klaus,

Initial ACK sent by the UAC looks like this:

Request-Line: ACK sip:700ABCDEFGHIJ@<IP_ASTERISK/KAMAILIO>:4060 SIP/2.0
        Method: ACK
        Request-URI: sip:700ABCDEFGHIJ@<IP_ASTERISK/KAMAILIO>:4060

Message Header
        Via: SIP/2.0/UDP <IP_UAC>:5060;branch=z9hG4bK-8b319388;rport
            Transport: UDP
            Sent-by Address: <IP_UAC>
            Sent-by port: 5060
            Branch: z9hG4bK-8b319388
            RPort: rport
        From:  22 <sip:ABCDEFGHIJ at sip.fqdn.tld>;tag=189f3d3bf3f9656o0
            SIP Display info:  22 
            SIP from address: sip:ABCDEFGHIJ at sip.fqdn.tld
                SIP from address User Part: ABCDEFGHIJ
                SIP from address Host Part: sip.fqdn.tld
            SIP from tag: 189f3d3bf3f9656o0
        To: <sip:123 at sip.fqdn.tld>;tag=as091754f8
            SIP to address: sip:123 at sip.fqdn.tld
                SIP to address User Part: 123
                SIP to address Host Part: sip.fqdn.tld
            SIP to tag: as091754f8
        Call-ID: 39fe9b57-95f574a2@<IP_UAC>
        CSeq: 102 ACK
            Sequence Number: 102
            Method: ACK
        Max-Forwards: 70
        Route: <sip:<IP_ASTERISK/KAMAILIO>;lr=on>
            Route URI: sip:<IP_ASTERISK/KAMAILIO>;lr=on
                Route Host Part: <IP_ASTERISK/KAMAILIO>
                Route URI parameter: lr=on
        Proxy-Authorization: Digest
username="ABCDEFGHIJ",realm="sip.fqdn.tld",nonce="VCGIx1Qhh5sqtS7GwGWBKTLvJX
7H3Oqe",uri="sip:123 at sip.fqdn.tld",algorithm=MD5,response="103a027b58eb628ea
003dd827ea1d669"
            Authentication Scheme: Digest
            Username: "ABCDEFGHIJ"
            Realm: "sip.fqdn.tld"
            Nonce Value: "VCGIx1Qhh5sqtS7GwGWBKTLvJX7H3Oqe"
            Authentication URI: "sip:123 at sip.fqdn.tld"
            Algorithm: MD5
            Digest Authentication Response:
"103a027b58eb628ea003dd827ea1d669"
        Contact:  22 <sip:ABCDEFGHIJ@<IP_UAC>:5060>
            SIP Display info:  22 
            Contact URI: sip:ABCDEFGHIJ@<IP_UAC>:5060
                Contact URI User Part: ABCDEFGHIJ
                Contact URI Host Part: <IP_UAC>
                Contact URI Host Port: 5060
        User-Agent: Linksys/WRP400-2.00.32
        Content-Length: 0

Next, the ACK on lo interface who loops:
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060) <--
here the Dst Port has already been modified by Kamailio.

Session Initiation Protocol (ACK)
    Request-Line: ACK sip:<IP_ASTERISK/KAMAILIO>;lr=on SIP/2.0
Method: ACK
        Request-URI: sip:<IP_ASTERISK/KAMAILIO>;lr=on
            Request-URI Host Part: <IP_ASTERISK/KAMAILIO>
Message Header
        Via: SIP/2.0/UDP
<IP_ASTERISK/KAMAILIO>;branch=z9hG4bKe717.d7d6c57a10035735c483450629da8b62.0
            Transport: UDP
            Sent-by Address: <IP_ASTERISK/KAMAILIO>
            Branch: z9hG4bKe717.d7d6c57a10035735c483450629da8b62.0
        Via: SIP/2.0/UDP <IP_UAC>:5060;branch=z9hG4bK-2182fea0;rport=5060
            Transport: UDP
            Sent-by Address: <IP_UAC>
            Sent-by port: 5060
            Branch: z9hG4bK-2182fea0
            RPort: 5060
        From:  22 <sip:ABCDEFGHIJ at sip.fqdn.tld>;tag=8ab714d39e8cfdefo0
            SIP Display info:  22 
            SIP from address: sip:ABCDEFGHIJ at sip.fqdn.tld
                SIP from address User Part: ABCDEFGHIJ
                SIP from address Host Part: sip.fqdn.tld
            SIP from tag: 8ab714d39e8cfdefo0
        To: <sip:123 at sip.fqdn.tld>;tag=as116ed4ed
            SIP to address: sip:123 at sip.fqdn.tld
                SIP to address User Part: 123
                SIP to address Host Part: sip.fqdn.tld
            SIP to tag: as116ed4ed
        Call-ID: 66c39a3-eb259f5f@<IP_UAC>
        CSeq: 102 ACK
            Sequence Number: 102
            Method: ACK
        Max-Forwards: 69
        Proxy-Authorization: Digest
username="ABCDEFGHIJ",realm="sip.fqdn.tld",nonce="VCGI/FQhh9AbPlF1XLMvEaetTC
aGX9CM",uri="sip:123 at sip.fqdn.tld",algorithm=MD5,response="55ca32ecf5ab7b328
95fd2e545d7033c"
            Authentication Scheme: Digest
            Username: "ABCDEFGHIJ"
            Realm: "sip.fqdn.tld"
            Nonce Value: "VCGI/FQhh9AbPlF1XLMvEaetTCaGX9CM"
            Authentication URI: "sip:123 at sip.fqdn.tld"
            Algorithm: MD5
            Digest Authentication Response:
"55ca32ecf5ab7b32895fd2e545d7033c"
        Contact:  22 <sip:ABCDEFGHIJ@<IP_UAC>:5060>
            SIP Display info:  22 
            Contact URI: sip:ABCDEFGHIJ@<IP_UAC>:5060
                Contact URI User Part: ABCDEFGHIJ
                Contact URI Host Part: <IP_UAC>
                Contact URI Host Port: 5060
        User-Agent: Linksys/WRP400-2.00.32
        Content-Length: 0

Regards,

Igor.

-----Message d'origine-----
De : sr-users-bounces at lists.sip-router.org
[mailto:sr-users-bounces at lists.sip-router.org] De la part de Klaus Darilion
Envoyé : mardi 23 septembre 2014 16:04
À : Kamailio (SER) - Users Mailing List
Objet : Re: [SR-Users] Relaying ACK to Asterisk

dump the whole ACK packet received by Kamailio, and the packet looped by
Kamailio

regards
Klaus

On 20.08.2014 18:38, Igor Potjevlesch wrote:
> Hello,
> 
>  
> 
> I’m having trouble with this scenario (Kamailio and Asterisk are 
> working on the same server, Asterisk listens on 4060 instead of 5060): 
> the UAC sends an ACK request with the following R-URI:
> sip:955*95%23@<IP_ASTERISK/KAMAILIO>:4060
> <sip:955*95%23@%3cIP_ASTERISK/KAMAILIO%3e:4060>.
> 
> When I’m doing a capture on loopback interface, I just see an ACK 
> request from IP <IP_ASTERISK/KAMAILIO>:5060 to IP 
> <IP_ASTERISK/KAMAILIO>:5060.
> 
> So the ACK seems to loop inside Kamailio.
> 
>  
> 
> What could explain that the good port defined by the UAC is deleted?
> 
>  
> 
> Regards,
> 
>  
> 
> Igor.
> 
> 
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
> list sr-users at lists.sip-router.org 
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




More information about the sr-users mailing list