Res_pjsip/pjsip_configuration.c: Unable To Create Ast_sip_contact_status For Contact

Home » Asterisk Users » Res_pjsip/pjsip_configuration.c: Unable To Create Ast_sip_contact_status For Contact
Asterisk Users 1 Comment

Hello.

Asterisk 13.7 (branch 13), res_pjsip

Log file contains a lot of lines:
[2016-01-11 15:33:00] ERROR[2862] res_pjsip/pjsip_configuration.c:
Unable to create ast_sip_contact_status for contact
17378/sip:17378@87.255.225.xxxx:5060
[2016-01-11 15:33:00] VERBOSE[2703] res_pjsip_registrar.c: Added contact
‘sip:17378@87.255.225.xxxx:5060’ to AOR ‘17378’ with expiration of 5 seconds
[2016-01-11 15:33:00] VERBOSE[2862] res_pjsip/pjsip_configuration.c:
Contact 17378/sip:17378@87.255.225.xxxx:5060 has been created

/res/res_pjsip/pjsip_configuration.c
/*! \brief Function called when a contact is deleted */
static void persistent_endpoint_contact_deleted_observer(const void *object)
{
const struct ast_sip_contact *contact = object;
struct ast_sip_contact_status *contact_status;

contact_status ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), CONTACT_STATUS, ast_sorcery_object_get_id(contact));
if (!contact_status) {
ast_log(LOG_ERROR, “Unable to create ast_sip_contact_status for contact %s/%s\n”,
contact->aor, contact->uri);
return;
}

1. Where is copy/paste error in log msg I guess.
2. And whether the log in this case? Think before adding the contact it should remove it and logging msg because not finds. Or not so simple?
Why so many ERROR line in log?

Thanks.

One thought on - Res_pjsip/pjsip_configuration.c: Unable To Create Ast_sip_contact_status For Contact

  • Hi Dmitriy,

    I think you’re seeing ASTERISK-25675.

    If you check out the 13.7 branch, you should not see this issue. It’s in the 13 branch only and I submitted review 1973 to back out an earlier patch that causes it. The fix should get merged into 13 in the next day or so.

    You can pull it in the mean time with ‘git review -d 1973’

    george