[asterisk-bugs] [JIRA] (ASTERISK-30124) res_pjsip_outbound_registration: reload causes assertion in devmode and DO_CRASH

Benjamin Keith Ford (JIRA) noreply at issues.asterisk.org
Thu Jul 7 08:18:08 CDT 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Keith Ford updated ASTERISK-30124:
-------------------------------------------

    Description: 
* Note that devmode and DO_CRASH must be enabled for the crash to happen.

What happened was I commented out some sections in pjsip.conf for a defunct registration that is no longer used.

Specifically, this was what I commented out, and the only change between the reload:

{noformat}
[reg_losangeles1.voip.ms]
type = registration
retry_interval = 20
max_retries = 10
contact_user = REDACTED
expiration = 120
transport = transport-udp
outbound_auth = auth_reg_losangeles1.voip.ms
client_uri = sip:REDACTED at losangeles1.voip.ms
server_uri = sip:losangeles1.voip.ms

[auth_reg_losangeles1.voip.ms]
type = auth
password = REDACTED
username = REDACTED

[REDACTED]
type = aor
contact = sip:losangeles1.voip.ms
qualify_frequency = 60

[REDACTED]
type = identify
endpoint = REDACTED
match = losangeles1.voip.ms

[REDACTED](endpoint)
context = REDACTED
dtmf_mode = inband
aors = REDACTED
{noformat}

When I did "pjsip reload", that then triggered an assertion.

I think the above is relevant because PJSIP was trying to do something with the stuff above and that was what got removed on the reload.

Backtrace attached.

  was:
What happened was I commented out some sections in pjsip.conf for a defunct registration that is no longer used.

Specifically, this was what I commented out, and the only change between the reload:

{noformat}
[reg_losangeles1.voip.ms]
type = registration
retry_interval = 20
max_retries = 10
contact_user = REDACTED
expiration = 120
transport = transport-udp
outbound_auth = auth_reg_losangeles1.voip.ms
client_uri = sip:REDACTED at losangeles1.voip.ms
server_uri = sip:losangeles1.voip.ms

[auth_reg_losangeles1.voip.ms]
type = auth
password = REDACTED
username = REDACTED

[REDACTED]
type = aor
contact = sip:losangeles1.voip.ms
qualify_frequency = 60

[REDACTED]
type = identify
endpoint = REDACTED
match = losangeles1.voip.ms

[REDACTED](endpoint)
context = REDACTED
dtmf_mode = inband
aors = REDACTED
{noformat}

When I did "pjsip reload", that then triggered an assertion.

I think the above is relevant because PJSIP was trying to do something with the stuff above and that was what got removed on the reload.

Backtrace attached.


> res_pjsip_outbound_registration: reload causes assertion in devmode and DO_CRASH
> --------------------------------------------------------------------------------
>
>                 Key: ASTERISK-30124
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30124
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_outbound_registration
>    Affects Versions: 18.9.0
>            Reporter: N A
>            Assignee: Unassigned
>         Attachments: pwg2fjegpe.txt
>
>
> * Note that devmode and DO_CRASH must be enabled for the crash to happen.
> What happened was I commented out some sections in pjsip.conf for a defunct registration that is no longer used.
> Specifically, this was what I commented out, and the only change between the reload:
> {noformat}
> [reg_losangeles1.voip.ms]
> type = registration
> retry_interval = 20
> max_retries = 10
> contact_user = REDACTED
> expiration = 120
> transport = transport-udp
> outbound_auth = auth_reg_losangeles1.voip.ms
> client_uri = sip:REDACTED at losangeles1.voip.ms
> server_uri = sip:losangeles1.voip.ms
> [auth_reg_losangeles1.voip.ms]
> type = auth
> password = REDACTED
> username = REDACTED
> [REDACTED]
> type = aor
> contact = sip:losangeles1.voip.ms
> qualify_frequency = 60
> [REDACTED]
> type = identify
> endpoint = REDACTED
> match = losangeles1.voip.ms
> [REDACTED](endpoint)
> context = REDACTED
> dtmf_mode = inband
> aors = REDACTED
> {noformat}
> When I did "pjsip reload", that then triggered an assertion.
> I think the above is relevant because PJSIP was trying to do something with the stuff above and that was what got removed on the reload.
> Backtrace attached.



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



More information about the asterisk-bugs mailing list