Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
serov.d.p at gmail.com
Guest





PostPosted: Mon Jan 11, 2016 8:36 am    Post subject: [asterisk-users] res_pjsip/pjsip_configuration.c: Unable to Reply with quote

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.

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
george.joseph at fairv...
Guest





PostPosted: Mon Jan 11, 2016 2:12 pm    Post subject: [asterisk-users] res_pjsip/pjsip_configuration.c: Unable to Reply with quote

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

On Mon, Jan 11, 2016 at 6:35 AM, Dmitriy Serov <serov.d.p@gmail.com (serov.d.p@gmail.com)> wrote:
Quote:
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. ([email]sip%3A17378@87.255.225.[/email])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. ([email]sip%3A17378@87.255.225.[/email])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.

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services