[Kamailio-Devel] 200 ok to pua does not work

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 12 20:41:56 CET 2008


Hello Juha,

On 12/12/08 21:12, Juha Heinanen wrote:
> i have noticed that there has been some messages about not matching 200
> ok (or something like that).  perhaps what i'm seeing is related:
>
> - i send PUBLISH to kamailio via pua_mi interface
>
> - kamailio pua module sends PUBLISH back to kamailio
>
> - kamailio replies with 200 ok to itself
>
> - this 200 ok is either never passed to pua or pua does not match it,
>   because pua keeps on re-sending PUBLISH
>
> i don't see the problem every time, but quite often.
>
> does this look like what other people have reported?
>   
it is a report, indeed. In that case, the reply is matched, but because 
of a race (200ok comes back very quickly), the transaction is added to 
retransmission handler after reply was processed. Happens like that:
- tm sends the message
- cpu is taken because it does i/o
- reply comes and it is handled by another process
- first process takes the cpu and adds the transaction in retransmission 
timer

I tried couple of patches, but had not much time to investigate and test 
it here. Not sure it is the same case for you. Debug messages can show that.

Cheers,
Daniel

> -- juha
>
> Frame 1186 (561 bytes on wire, 561 bytes captured)
> Linux cooked capture
> Internet Protocol, Src: 192.97.99.10 (192.97.99.10), Dst: 127.0.0.1 (127.0.0.1)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: vtsas (5070)
> Session Initiation Protocol
>     Request-Line: PUBLISH sip:jh at vm.test.fi SIP/2.0
>     Message Header
>         Via: SIP/2.0/UDP 192.97.99.10;branch=z9hG4bK3c94.f162e742.0
>         To: sip:jh at vm.test.fi
>         From: sip:jh at vm.test.fi;tag=ba4e950faf8e59dc272cc7720248bc15-fe82
>         CSeq: 10 PUBLISH
>         Call-ID: 7b77bffe
>         Content-Length: 48
>         User-Agent: OpenXg Kamailio (1.4.2-tls (i386/linux))
>         Max-Forwards: 70
>         Event: message-summary
>         Expires: 7776001
>         SIP-If-Match: a.1229106036.11033.1.4
>         Content-Type: application/simple-message-summary
>         P-Flags: 0
>     Message Body
>         Messages-Waiting: no\r\n
>         Voice-Message: 0/1 (0/0)\r\n
>
> Frame 1187 (420 bytes on wire, 420 bytes captured)
> Linux cooked capture
> Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 192.97.99.10 (192.97.99.10)
> User Datagram Protocol, Src Port: vtsas (5070), Dst Port: sip (5060)
> Session Initiation Protocol
>     Status-Line: SIP/2.0 200 OK
>     Message Header
>         Via: SIP/2.0/UDP 192.97.99.10;branch=z9hG4bK3c94.f162e742.0
>         To: sip:jh at vm.test.fi;tag=42ebb7240680380346545013c91dac8c.f86c
>         From: sip:jh at vm.test.fi;tag=ba4e950faf8e59dc272cc7720248bc15-fe82
>         CSeq: 10 PUBLISH
>         Call-ID: 7b77bffe
>         Expires: 7776001
>         SIP-ETag: a.1229106036.11038.1.5
>         Server: OpenXg Kamailio (1.4.2-tls (i386/linux))
>         Content-Length: 0
>
> Frame 1188 (561 bytes on wire, 561 bytes captured)
> Linux cooked capture
> Internet Protocol, Src: 192.97.99.10 (192.97.99.10), Dst: 127.0.0.1 (127.0.0.1)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: vtsas (5070)
> Session Initiation Protocol
>     Request-Line: PUBLISH sip:jh at vm.test.fi SIP/2.0
>     Message Header
>         Via: SIP/2.0/UDP 192.97.99.10;branch=z9hG4bK3c94.f162e742.0
>         To: sip:jh at vm.test.fi
>         From: sip:jh at vm.test.fi;tag=ba4e950faf8e59dc272cc7720248bc15-fe82
>         CSeq: 10 PUBLISH
>         Call-ID: 7b77bffe
>         Content-Length: 48
>         User-Agent: OpenXg Kamailio (1.4.2-tls (i386/linux))
>         Max-Forwards: 70
>         Event: message-summary
>         Expires: 7776001
>         SIP-If-Match: a.1229106036.11033.1.4
>         Content-Type: application/simple-message-summary
>         P-Flags: 0
>     Message Body
>         Messages-Waiting: no\r\n
>         Voice-Message: 0/1 (0/0)\r\n
>
> Frame 1189 (561 bytes on wire, 561 bytes captured)
> Linux cooked capture
> Internet Protocol, Src: 192.97.99.10 (192.97.99.10), Dst: 127.0.0.1 (127.0.0.1)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: vtsas (5070)
> Session Initiation Protocol
>     Request-Line: PUBLISH sip:jh at vm.test.fi SIP/2.0
>     Message Header
>         Via: SIP/2.0/UDP 192.97.99.10;branch=z9hG4bK3c94.f162e742.0
>         To: sip:jh at vm.test.fi
>         From: sip:jh at vm.test.fi;tag=ba4e950faf8e59dc272cc7720248bc15-fe82
>         CSeq: 10 PUBLISH
>         Call-ID: 7b77bffe
>         Content-Length: 48
>         User-Agent: OpenXg Kamailio (1.4.2-tls (i386/linux))
>         Max-Forwards: 70
>         Event: message-summary
>         Expires: 7776001
>         SIP-If-Match: a.1229106036.11033.1.4
>         Content-Type: application/simple-message-summary
>         P-Flags: 0
>     Message Body
>         Messages-Waiting: no\r\n
>         Voice-Message: 0/1 (0/0)\r\n
>
> Frame 1190 (561 bytes on wire, 561 bytes captured)
> Linux cooked capture
> Internet Protocol, Src: 192.97.99.10 (192.97.99.10), Dst: 127.0.0.1 (127.0.0.1)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: vtsas (5070)
> Session Initiation Protocol
>     Request-Line: PUBLISH sip:jh at vm.test.fi SIP/2.0
>     Message Header
>         Via: SIP/2.0/UDP 192.97.99.10;branch=z9hG4bK3c94.f162e742.0
>         To: sip:jh at vm.test.fi
>         From: sip:jh at vm.test.fi;tag=ba4e950faf8e59dc272cc7720248bc15-fe82
>         CSeq: 10 PUBLISH
>         Call-ID: 7b77bffe
>         Content-Length: 48
>         User-Agent: OpenXg Kamailio (1.4.2-tls (i386/linux))
>         Max-Forwards: 70
>         Event: message-summary
>         Expires: 7776001
>         SIP-If-Match: a.1229106036.11033.1.4
>         Content-Type: application/simple-message-summary
>         P-Flags: 0
>     Message Body
>         Messages-Waiting: no\r\n
>         Voice-Message: 0/1 (0/0)\r\n
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
>
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list