[asterisk-users] res_pjsip/pjsip_configuration.c: Unable to create ast_sip_contact_status for contact

Dmitriy Serov serov.d.p at gmail.com
Mon Jan 11 07:35:42 CST 2016


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 at 87.255.225.xxxx:5060
[2016-01-11 15:33:00] VERBOSE[2703] res_pjsip_registrar.c: Added contact 
'sip:17378 at 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 at 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.



More information about the asterisk-users mailing list