Hi all,
Let me describe my scenario first.
if the callee is not online, opensips will wait for 30s.
During the 30s, if the callee be online, opensips will send the invite to it.
$avp(timeout) = 30 ;
while( !lookup("location","m") ){
if( $avp(timeout)==0 ){
send_reply("420","Can not find the callee!");
exit;
}
sleep("1");
$avp(timeout) = $avp(timeout)-1;
}
This works well, the only problem is the caller can not cancel it during that
30s
t_cancel_branch() only can be used in onreply_route, but at that time, callee
is offline.
My question is :
Is it possible that terminate a request in route block?
[email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users