?????? ????, ????? ) I made several tests and found where is the problem: When username is the same for both accounts - acc_id is always from first account and = 0 When username is different - acc_id is correct. It seems that pjsip lib identify account only by username, but should use domain also. It looks like a bug. Best regards, Mihail Laba