Hi, You can use the cb.on_call_tsx_state and do something like this on the callback: // check incoming responses if (tsx->method.id == PJSIP_INVITE_METHOD && tsx->role == PJSIP_ROLE_UAC && e->body.tsx_state.type == PJSIP_EVENT_RX_MSG && tsx->status_code == PJSIP_SC_PAYMENT_REQUIRED) { // TODO handle 402 here } I hope this helps, Rafael Maia From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org] On Behalf Of cg_vanderbent at mail.com Sent: ter?a-feira, 9 de Novembro de 2010 08:01 To: pjsip at lists.pjsip.org Subject: How to catch 402 Payment Required? Hi, My callback connected to config.cb.on_call_state (config of type pjsua_config), never catches a 402 Payment Required which is sent by the SIP server (as my colleague assures me). I only get a call_info.status PJSIP_INV_STATE_NULL (0), call_info.last_status is also PJSIP_INV_STATE_NULL, and that's it. How do I catch 402 and other errors, instead of just a PJSIP_INV_STATE_NULL. Thanks for listening! Cornelis -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101110/409eb87d/attachment.html>