debug feature:add debug function
sipcall feature:add mutex to protect shared data