[OpenSIPS-Users] how to cancel an INVITE before the callee receive it?

merlin.li at tsingch.com merlin.li at tsingch.com
Thu Mar 5 11:16:09 CET 2015


Hi Chircu,

Thanks again.
Yes, i totally agree with you that the CANCEL must be sent by the caller.
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.
The process flow is :
1. caller send  invite to openips
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
3. caller send the cancel request
4. opensips received the cancel request in the thread 2,  but thread 1 still in the while loop

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?
Note: the callee is still offline at this moment , so i can not send 404 to it.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150305/21d0fdaa/attachment-0001.htm>


More information about the Users mailing list