<div dir="ltr"><div>Hi,</div>
<div> </div>
<div>here is the trace of the end of the call. 486 is recieved from the destination, kamailio sends ACK to it. then kamailio sends the 486 to the origination and recieves an ACK for it. (the scenario is behind the companies gateway....)</div>

<div> </div>
<div><strong><font style="BACKGROUND-COLOR:#ffffff" color="#666666">No.     Time        Source                Destination           Protocol Length Info<br>     19 5.199372    172.16.10.2           172.16.60.161         SIP      533    Status: 486 Busy Here</font></strong></div>

<div><strong><font style="BACKGROUND-COLOR:#ffffff" color="#666666">Frame 19: 533 bytes on wire (4264 bits), 533 bytes captured (4264 bits)<br>    Arrival Time: Jan 23, 2012 11:49:29.701743000 Jerusalem Standard Time<br>
    Epoch Time: 1327312169.701743000 seconds<br>    [Time delta from previous captured frame: 1.208615000 seconds]<br>    [Time delta from previous displayed frame: 1.208615000 seconds]<br>    [Time since reference or first frame: 5.199372000 seconds]<br>
    Frame Number: 19<br>    Frame Length: 533 bytes (4264 bits)<br>    Capture Length: 533 bytes (4264 bits)<br>    [Frame is marked: False]<br>    [Frame is ignored: False]<br>    [Protocols in frame: eth:ip:udp:sip]<br>
    [Coloring Rule Name: UDP]<br>    [Coloring Rule String: udp]<br>Ethernet II, Src: Cisco_2e:84:80 (00:11:5c:2e:84:80), Dst: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>    Destination: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>
        Address: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Source: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>        Address: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Type: IP (0x0800)<br>Internet Protocol Version 4, Src: 172.16.10.2 (172.16.10.2), Dst: 172.16.60.161 (172.16.60.161)<br>    Version: 4<br>    Header length: 20 bytes<br>    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))<br>
        0000 00.. = Differentiated Services Codepoint: Default (0x00)<br>        .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)<br>    Total Length: 519<br>    Identification: 0x3289 (12937)<br>
    Flags: 0x02 (Don&#39;t Fragment)<br>        0... .... = Reserved bit: Not set<br>        .1.. .... = Don&#39;t fragment: Set<br>        ..0. .... = More fragments: Not set<br>    Fragment offset: 0<br>    Time to live: 253<br>
    Protocol: UDP (17)<br>    Header checksum: 0xaa98 [correct]<br>        [Good: True]<br>        [Bad: False]<br>    Source: 172.16.10.2 (172.16.10.2)<br>    Destination: 172.16.60.161 (172.16.60.161)<br>User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)<br>
    Source port: sip (5060)<br>    Destination port: sip (5060)<br>    Length: 499<br>    Checksum: 0x2e26 [validation disabled]<br>        [Good Checksum: False]<br>        [Bad Checksum: False]<br>Session Initiation Protocol<br>
    Status-Line: SIP/2.0 486 Busy Here<br>        Status-Code: 486<br>        [Resent Packet: False]<br>    Message Header<br>        Call-ID: 6998600418003572708-1327312311-1053<br>        From: &lt;sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone&gt;;tag=6998600418003572708<br>
            SIP from address: sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone<br>                SIP from address User Part: 506775651;ss7-cpc=10;cpc=ordinary<br>                SIP from address Host Part: 172.16.10.2<br>
            SIP tag: 6998600418003572708<br>        To: &lt;<a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone&gt;;tag=9304443427217266661<br>            SIP to address: <a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone<br>
                SIP to address User Part: 39955011<br>                SIP to address Host Part: 172.16.60.161<br>            SIP tag: 9304443427217266661<br>        CSeq: 1 INVITE<br>            Sequence Number: 1<br>            Method: INVITE<br>
        Via: SIP/2.0/UDP 172.16.60.161;received=172.16.60.161;branch=z9hG4bKba0a.ac0fb354.2,SIP/2.0/UDP 172.16.10.2:5060;branch=z9hG4bK-612006000000d7e4-ac100a02-1<br>            Transport: UDP<br>            Sent-by Address: 172.16.60.161<br>
            Received: 172.16.60.161<br>            Branch: z9hG4bKba0a.ac0fb354.2<br>            Transport: UDP<br>            Sent-by Address: 172.16.10.2<br>            Sent-by port: 5060<br>            Branch: z9hG4bK-612006000000d7e4-ac100a02-1<br>
        Supported: timer,100rel<br>        Reason: Q.850;cause=17;text=&quot;UserBusy&quot;<br>            Reason Protocols: Q.850<br>            Cause: 17(0x11)[User busy]<br>        Content-Length: 0</font></strong></div>

<div><strong><font style="BACKGROUND-COLOR:#ffffff" color="#666666">No.     Time        Source                Destination           Protocol Length Info<br>     20 5.199640    172.16.60.161         172.16.10.2           SIP      416    Request: ACK <a href="mailto:sip%3A0504014041@172.16.10.2">sip:0504014041@172.16.10.2</a>;user=phone</font></strong></div>

<div><strong><font style="BACKGROUND-COLOR:#ffffff" color="#666666">Frame 20: 416 bytes on wire (3328 bits), 416 bytes captured (3328 bits)<br>    Arrival Time: Jan 23, 2012 11:49:29.702011000 Jerusalem Standard Time<br>
    Epoch Time: 1327312169.702011000 seconds<br>    [Time delta from previous captured frame: 0.000268000 seconds]<br>    [Time delta from previous displayed frame: 0.000268000 seconds]<br>    [Time since reference or first frame: 5.199640000 seconds]<br>
    Frame Number: 20<br>    Frame Length: 416 bytes (3328 bits)<br>    Capture Length: 416 bytes (3328 bits)<br>    [Frame is marked: False]<br>    [Frame is ignored: False]<br>    [Protocols in frame: eth:ip:udp:sip]<br>
    [Coloring Rule Name: UDP]<br>    [Coloring Rule String: udp]<br>Ethernet II, Src: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5), Dst: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>    Destination: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>
        Address: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Source: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>        Address: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Type: IP (0x0800)<br>Internet Protocol Version 4, Src: 172.16.60.161 (172.16.60.161), Dst: 172.16.10.2 (172.16.10.2)<br>    Version: 4<br>    Header length: 20 bytes<br>    Differentiated Services Field: 0x10 (DSCP 0x04: Unknown DSCP; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))<br>
        0001 00.. = Differentiated Services Codepoint: Unknown (0x04)<br>        .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)<br>    Total Length: 402<br>    Identification: 0x0f78 (3960)<br>
    Flags: 0x00<br>        0... .... = Reserved bit: Not set<br>        .0.. .... = Don&#39;t fragment: Not set<br>        ..0. .... = More fragments: Not set<br>    Fragment offset: 0<br>    Time to live: 64<br>    Protocol: UDP (17)<br>
    Header checksum: 0xcb0f [correct]<br>        [Good: True]<br>        [Bad: False]<br>    Source: 172.16.60.161 (172.16.60.161)<br>    Destination: 172.16.10.2 (172.16.10.2)<br>User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)<br>
    Source port: sip (5060)<br>    Destination port: sip (5060)<br>    Length: 382<br>    Checksum: 0x5975 [validation disabled]<br>        [Good Checksum: False]<br>        [Bad Checksum: False]<br>Session Initiation Protocol<br>
    Request-Line: ACK <a href="mailto:sip%3A0504014041@172.16.10.2">sip:0504014041@172.16.10.2</a>;user=phone SIP/2.0<br>        Method: ACK<br>        Request-URI: <a href="mailto:sip%3A0504014041@172.16.10.2">sip:0504014041@172.16.10.2</a>;user=phone<br>
            Request-URI User Part: 0504014041<br>            Request-URI Host Part: 172.16.10.2<br>        [Resent Packet: False]<br>        [Request Frame: 18]<br>        [Response Time (ms): 1238]<br>    Message Header<br>
        Call-ID: 6998600418003572708-1327312311-1053<br>        From: &lt;sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone&gt;;tag=6998600418003572708<br>            SIP from address: sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone<br>
                SIP from address User Part: 506775651;ss7-cpc=10;cpc=ordinary<br>                SIP from address Host Part: 172.16.10.2<br>            SIP tag: 6998600418003572708<br>        To: &lt;<a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone&gt;;tag=9304443427217266661<br>
            SIP to address: <a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone<br>                SIP to address User Part: 39955011<br>                SIP to address Host Part: 172.16.60.161<br>
            SIP tag: 9304443427217266661<br>        CSeq: 1 ACK<br>            Sequence Number: 1<br>            Method: ACK<br>        Via: SIP/2.0/UDP 172.16.60.161;branch=z9hG4bKba0a.ac0fb354.2<br>            Transport: UDP<br>
            Sent-by Address: 172.16.60.161<br>            Branch: z9hG4bKba0a.ac0fb354.2<br>        Max-Forwards: 69<br>        Content-Length: 0</font></strong></div>
<div><strong><font style="BACKGROUND-COLOR:#ffffff" color="#666666">No.     Time        Source                Destination           Protocol Length Info<br>     21 5.199772    172.16.60.161         172.16.10.2           SIP      454    Status: 486 Busy Here</font></strong></div>

<div><strong><font style="BACKGROUND-COLOR:#ffffff" color="#666666">Frame 21: 454 bytes on wire (3632 bits), 454 bytes captured (3632 bits)<br>    Arrival Time: Jan 23, 2012 11:49:29.702143000 Jerusalem Standard Time<br>
    Epoch Time: 1327312169.702143000 seconds<br>    [Time delta from previous captured frame: 0.000132000 seconds]<br>    [Time delta from previous displayed frame: 0.000132000 seconds]<br>    [Time since reference or first frame: 5.199772000 seconds]<br>
    Frame Number: 21<br>    Frame Length: 454 bytes (3632 bits)<br>    Capture Length: 454 bytes (3632 bits)<br>    [Frame is marked: False]<br>    [Frame is ignored: False]<br>    [Protocols in frame: eth:ip:udp:sip]<br>
    [Coloring Rule Name: UDP]<br>    [Coloring Rule String: udp]<br>Ethernet II, Src: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5), Dst: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>    Destination: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>
        Address: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Source: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>        Address: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Type: IP (0x0800)<br>Internet Protocol Version 4, Src: 172.16.60.161 (172.16.60.161), Dst: 172.16.10.2 (172.16.10.2)<br>    Version: 4<br>    Header length: 20 bytes<br>    Differentiated Services Field: 0x10 (DSCP 0x04: Unknown DSCP; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))<br>
        0001 00.. = Differentiated Services Codepoint: Unknown (0x04)<br>        .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)<br>    Total Length: 440<br>    Identification: 0x0f79 (3961)<br>
    Flags: 0x00<br>        0... .... = Reserved bit: Not set<br>        .0.. .... = Don&#39;t fragment: Not set<br>        ..0. .... = More fragments: Not set<br>    Fragment offset: 0<br>    Time to live: 64<br>    Protocol: UDP (17)<br>
    Header checksum: 0xcae8 [correct]<br>        [Good: True]<br>        [Bad: False]<br>    Source: 172.16.60.161 (172.16.60.161)<br>    Destination: 172.16.10.2 (172.16.10.2)<br>User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)<br>
    Source port: sip (5060)<br>    Destination port: sip (5060)<br>    Length: 420<br>    Checksum: 0x91b9 [validation disabled]<br>        [Good Checksum: False]<br>        [Bad Checksum: False]<br>Session Initiation Protocol<br>
    Status-Line: SIP/2.0 486 Busy Here<br>        Status-Code: 486<br>        [Resent Packet: False]<br>    Message Header<br>        Call-ID: 6998600418003572708-1327312311-1053<br>        From: &lt;sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone&gt;;tag=6998600418003572708<br>
            SIP from address: sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone<br>                SIP from address User Part: 506775651;ss7-cpc=10;cpc=ordinary<br>                SIP from address Host Part: 172.16.10.2<br>
            SIP tag: 6998600418003572708<br>        To: &lt;<a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone&gt;;tag=9304443427217266661<br>            SIP to address: <a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone<br>
                SIP to address User Part: 39955011<br>                SIP to address Host Part: 172.16.60.161<br>            SIP tag: 9304443427217266661<br>        CSeq: 1 INVITE<br>            Sequence Number: 1<br>            Method: INVITE<br>
        Via: SIP/2.0/UDP 172.16.10.2:5060;branch=z9hG4bK-612006000000d7e4-ac100a02-1<br>            Transport: UDP<br>            Sent-by Address: 172.16.10.2<br>            Sent-by port: 5060<br>            Branch: z9hG4bK-612006000000d7e4-ac100a02-1<br>
        Supported: timer,100rel<br>        Reason: Q.850;cause=17;text=&quot;UserBusy&quot;<br>            Reason Protocols: Q.850<br>            Cause: 17(0x11)[User busy]<br>        Content-Length: 0</font></strong></div>

<div><strong><font style="BACKGROUND-COLOR:#ffffff" color="#666666">No.     Time        Source                Destination           Protocol Length Info<br>     22 5.210511    172.16.10.2           172.16.60.161         SIP      520    Request: ACK sip:<a href="http://172.16.10.2:5060">172.16.10.2:5060</a></font></strong></div>

<div><font style="BACKGROUND-COLOR:#ffffff"><font color="#666666"><strong>Frame 22: 520 bytes on wire (4160 bits), 520 bytes captured (4160 bits)<br>    Arrival Time: Jan 23, 2012 11:49:29.712882000 Jerusalem Standard Time<br>
    Epoch Time: 1327312169.712882000 seconds<br>    [Time delta from previous captured frame: 0.010739000 seconds]<br>    [Time delta from previous displayed frame: 0.010739000 seconds]<br>    [Time since reference or first frame: 5.210511000 seconds]<br>
    Frame Number: 22<br>    Frame Length: 520 bytes (4160 bits)<br>    Capture Length: 520 bytes (4160 bits)<br>    [Frame is marked: False]<br>    [Frame is ignored: False]<br>    [Protocols in frame: eth:ip:udp:sip]<br>
    [Coloring Rule Name: UDP]<br>    [Coloring Rule String: udp]<br>Ethernet II, Src: Cisco_2e:84:80 (00:11:5c:2e:84:80), Dst: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>    Destination: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>
        Address: Silicom_05:b5:f5 (00:e0:ed:05:b5:f5)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Source: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>        Address: Cisco_2e:84:80 (00:11:5c:2e:84:80)<br>        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>
    Type: IP (0x0800)<br>Internet Protocol Version 4, Src: 172.16.10.2 (172.16.10.2), Dst: 172.16.60.161 (172.16.60.161)<br>    Version: 4<br>    Header length: 20 bytes<br>    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))<br>
        0000 00.. = Differentiated Services Codepoint: Default (0x00)<br>        .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)<br>    Total Length: 506<br>    Identification: 0x328a (12938)<br>
    Flags: 0x02 (Don&#39;t Fragment)<br>        0... .... = Reserved bit: Not set<br>        .1.. .... = Don&#39;t fragment: Set<br>        ..0. .... = More fragments: Not set<br>    Fragment offset: 0<br>    Time to live: 253<br>
    Protocol: UDP (17)<br>    Header checksum: 0xaaa4 [correct]<br>        [Good: True]<br>        [Bad: False]<br>    Source: 172.16.10.2 (172.16.10.2)<br>    Destination: 172.16.60.161 (172.16.60.161)<br>User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)<br>
    Source port: sip (5060)<br>    Destination port: sip (5060)<br>    Length: 486<br>    Checksum: 0xec7a [validation disabled]<br>        [Good Checksum: False]<br>        [Bad Checksum: False]<br>Session Initiation Protocol<br>
    Request-Line: ACK sip:<a href="http://172.16.10.2:5060">172.16.10.2:5060</a> SIP/2.0<br>        Method: ACK<br>        Request-URI: sip:<a href="http://172.16.10.2:5060">172.16.10.2:5060</a><br>            Request-URI Host Part: 172.16.10.2<br>
            Request-URI Host Port: 5060<br>        [Resent Packet: False]<br>        [Request Frame: 19]<br>        [Response Time (ms): 1249]<br>    Message Header<br>        Call-ID: 6998600418003572708-1327312311-1053<br>
        From: &lt;sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone&gt;;tag=6998600418003572708<br>            SIP from address: sip:506775651;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.2">ordinary@172.16.10.2</a>;user=phone<br>
                SIP from address User Part: 506775651;ss7-cpc=10;cpc=ordinary<br>                SIP from address Host Part: 172.16.10.2<br>            SIP tag: 6998600418003572708<br>        To: &lt;<a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone&gt;;tag=9304443427217266661<br>
            SIP to address: <a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone<br>                SIP to address User Part: 39955011<br>                SIP to address Host Part: 172.16.60.161<br>
            SIP tag: 9304443427217266661<br>        CSeq: 1 ACK<br>            Sequence Number: 1<br>            Method: ACK<br>        Via: SIP/2.0/UDP 172.16.10.2:5060;branch=z9hG4bK-612006000000d7e4-ac100a02-1<br>            Transport: UDP<br>
            Sent-by Address: 172.16.10.2<br>            Sent-by port: 5060<br>            Branch: z9hG4bK-612006000000d7e4-ac100a02-1<br>        Route: &lt;sip:172.16.60.161;lr=on;ftag=6998600418003572708;did=47.c7f00ed6&gt;<br>
        Max-Forwards: 70<br>        User-Agent: VCS  5.8.2.51-04<br>        Content-Length: 0<br></strong><br><br></font></font></div>
<div class="gmail_quote">On Mon, Jan 23, 2012 at 9:24 PM, Timo Reimann <span dir="ltr">&lt;<a href="mailto:sr@foo-lounge.de">sr@foo-lounge.de</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hey,<br><br><br>Am 23.01.2012 um 11:13 schrieb Uri Shacked:<br>
<div class="im">&gt; i use the dialog module.<br>&gt; i create the dialog using dlg_manage() right after the invite is recieved.<br>&gt; in a case where the final destination rejects the call (486 busy), i get the following error:<br>
&gt; &quot; WARNING: dialog [dlg_handlers.c:1054]: unable to find dialog for ACK with route param.....&quot;<br>&gt; i guess the dialog module deletes the dialog on the 486 reply and gives me this erro when an ACK for the 486 is recieved from the caller...<br>
<br></div>No, the module shouldn&#39;t behave like that. IIRC, a terminating dialog is tied to its underlying transaction and should stay alive until the transaction times out.<br><br>Does each ACK message include a proper dialog ID (i.e., To-tag, From-tag, and Call-ID corresponding to the 486 message)? Is the ACK routed statefully at all?<br>
<br><br>Cheers,<br><br>--Timo</blockquote></div><br></div>