[asterisk-bugs] [JIRA] (ASTERISK-25466) pjsip: Invalid state of endpoint added to text config and reload

Dmitriy Serov (JIRA) noreply at issues.asterisk.org
Fri Nov 6 12:22:33 CST 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228197#comment-228197 ] 

Dmitriy Serov commented on ASTERISK-25466:
------------------------------------------

I was able to find a way to repeat on a clean server. The next sequence of actions:
1. start asterisk with any pjsip config (i used the attached to this issue).
2. in text config add TWO (more than one) endpoints
3. pjsip reload
4. pjsip show endpoint admin
5. see Invalid status on first endpoint and unavailable on second.

used text of two endpoints:
{noformat}
; admin phone: 9999 type: friend
[admin](device-auth)
username=admin
password=secret1
[admin](device-endpoint)
aors=admin
auth=admin
set_var=CHANNEL(namedcallgroup)=g54,g54-1128
accountcode=9999
set_var=fromDeviceId=683
set_var=fromUserId=54
[admin](device-aor)
;mailboxes=9999 at local

; ivmaster phone: 9737 type: friend
[ivmaster](device-auth)
username=ivmaster
password=secret2
[ivmaster](device-endpoint)
aors=ivmaster
auth=ivmaster
set_var=CHANNEL(namedcallgroup)=g84,g84-1142
accountcode=9737
set_var=fromDeviceId=697
set_var=fromUserId=84
[ivmaster](device-aor)
;mailboxes=9737 at local
{noformat}

I very much hope that this will help to find and fix the problem. Looking forward to testing the patch.

> pjsip: Invalid state of endpoint added to text config and reload
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-25466
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25466
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.6.0
>            Reporter: Dmitriy Serov
>            Assignee: Unassigned
>         Attachments: debug.log, pjsip_general.inc
>
>
> steps to repeat:
> 1. adding new device enpoint in text config pjsip.conf. For example, "test1"
> 2. module reload res_pjsip.so
> 3. pjsip show endpoint test1
> State of endpoint is "Invalid".
> the only way to fix i know: asterisk restart :(
> This error appeared not so long ago and very critical, because it blocks the registration of new users



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list