ast_log(LOG_DEBUG,"Matched %s call - their tag is %s Our tag is %s\n",ast_test_flag(&sip_pvt_ptr->flags[0],SIP_OUTGOING)?"OUTGOING":"INCOMING",sip_pvt_ptr->theirtag,sip_pvt_ptr->tag);
if(sip_pvt_ptr->owner){
while(ast_channel_trylock(sip_pvt_ptr->owner)){
ast_mutex_unlock(&sip_pvt_ptr->lock);
usleep(1);
ast_mutex_lock(&sip_pvt_ptr->lock);
if(!sip_pvt_ptr->owner)
break;
}
ast_log(LOG_DEBUG,"Matched %s call - their tag is %s Our tag is %s\n",