<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20150305181456959619 { }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><br><span></span></div><blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div><div class="FoxDiv20150305181456959619">
<div><span></span>Hi <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Chircu,</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Thanks again.</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Yes, i totally agree with you that the CANCEL must be sent by the caller.</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">The problem is the caller sent the cancel request, and the opensips also can receive it, but it can not break the while loop in the route block.</span></div><div>The process flow is :</div><div>1. caller send invite to openips</div><div>2. opensips start a thread 1 to porcess the invite(i don't know whether the opensips start a new thread, just a guess ), into the while loop if the callee is offline</div><div>3. caller send the cancel request</div><div>4. opensips received the cancel request in the thread 2, but thread 1 still in the while loop</div><div><br></div><div>My question is how can i terminate the while loop in the thread 1(or terminate the whole transation) when opensips receive the CANCEL request?</div><div>Note: the callee is still offline at this moment , so i can not send 404 to it.</div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><br></div></div></div></blockquote>
</div></div></blockquote>
</body></html>