add extraction of caller_id
fix copy2buffer