<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Hello,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">We are using dipatcher to limit the concurrent number of calls, problem is that from time to time</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"> calls remain stuck in state 1 and it breaks our concurrent limits..I was not able to make a kamailio</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0);
background-color: transparent; font-style: normal;">log with high debug as it happens randomly. Attached is a tcpdump flow:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><div style="background-color: transparent;"><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">Conv.| Time | serverA | Provider |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | | | RemoteEnd |
</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |938.355 | INVITE SDP (g729 g711U GSM X-NSERTPType-100 te...hone-eventRT) </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (5050) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |938.357 | 100 Trying| | |</font></div><div style="background-color:
transparent;"><font face="times new roman, new york, times, serif"> | |(5050) ------------------> (5060) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |938.420 | INVITE SDP (g711U g729 telephone-eventRTPType-...)|</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5050) ------------------> (5060) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |938.422 | 100 trying -- your call is important to us
|</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (5050) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |938.422 | INVITE SDP (g711U g729 telephone-eventRTPType-...)|</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (1416) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |938.908 |
INVITE SDP (g711U g729 telephone-eventRTPType-...)| </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (1416) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |939.908 | INVITE SDP (g711U g729 telephone-eventRTPType-...)|</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (1416) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113
|941.906 | INVITE SDP (g711U g729 telephone-eventRTPType-...)|</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (1416) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |945.907 | INVITE SDP (g711U g729 telephone-eventRTPType-...)|</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (1416) | |</font></div><div style="background-color: transparent;"><font face="times new
roman, new york, times, serif">112 |948.358 | CANCEL | | |SIP Request</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) <-------------------------------------- (61016) |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |948.359 | CANCEL | | |SIP Request</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> |
|(5060) ------------------> (5050) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |948.359 | 200 canceling | |SIP Status</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) --------------------------------------> (61016) |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |948.359 | 487 Request Terminated | |SIP
Status</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5050) ------------------> (5060) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |948.359 | 200 OK | | |SIP Status</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5050) ------------------> (5060) | |</font></div><div style="background-color: transparent;"><font
face="times new roman, new york, times, serif">112 |948.359 | ACK | | |SIP Request</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (5050) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |948.360 | 487 Request Terminated | |SIP Status</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">
| |(5060) --------------------------------------> (61016) |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |948.360 | CANCEL | | |SIP Request</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5050) ------------------> (5060) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">113 |948.360 | 200 canceling |
|SIP Status</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) ------------------> (5050) | |</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">112 |948.365 | ACK | | |SIP Request</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"> | |(5060) <-------------------------------------- (61016) |</font></div><div
style="background-color: transparent;"><br></div><div><br></div><div><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;">dialog:: hash=136:689416016
state:: 1
ref_count:: 3
timestart:: 0
timeout:: 0
callid:: 745eed805cad6b9a3e1727d169cf3461@<span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; line-height: normal; white-space: normal;">serverA</span>:5050
from_uri:: sip:<span style="line-height: 1.3em; background-color: transparent;">fromnumber</span><span style="line-height: 1.3em; background-color: transparent;">@serverA:5050</span><br> from_tag:: as53f6bee4
caller_contact:: sip:fromnumber@serverA:5050
caller_cseq:: 102
caller_route_set::
caller_bind_addr:: udp:<span style="line-height: 1.3em; background-color: transparent;">serverA</span><span style="line-height: 1.3em; background-color: transparent;">:5060</span><br> callee_bind_addr::
to_uri:: sip:internalnr@<span style="line-height: 1.3em; background-color: transparent;">serverA</span><span style="line-height: 1.3em; background-color: transparent;">:5060</span><br> to_tag::
callee_contact::
callee_cseq::
callee_route_set::</pre><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;"><br></pre><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;">As you see the remoteEnd does not answer at all to this request (due to network issue most likely)</pre><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;">and the provider sends a CANCEL after approx 3 seconds.</pre><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;">From what I see the INVITE that is sent from asterisk towards kamailio
remains stuck <font face="times new roman, new york, times, serif">(</font><span style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;">938.420).</span></pre><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;"><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;">We are using Kamailio 3.1.6. <span style="line-height: 1.3em; background-color: transparent;">Any idea what could be the reason for this? </span></pre><pre class="code-java" style="margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;"><span style="line-height: 1.3em; background-color: transparent;"><br></span></pre><pre class="code-java" style="margin-top: 0px;
margin-bottom: 0px; padding: 0px; line-height: 1.3em; max-height: 30em; overflow: auto; word-wrap: normal;"><span style="line-height: 1.3em; background-color: transparent;">Thank you.</span></pre></pre></div></div></div></div></body></html>