[asterisk-bugs] [JIRA] (ASTERISK-26599) res_pjsip: High startup time using local configuration files

Hector Royo Concepcion (JIRA) noreply at issues.asterisk.org
Mon Dec 5 03:34:11 CST 2016


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

Hector Royo Concepcion commented on ASTERISK-26599:
---------------------------------------------------

Right now I'm starting Asterisk without loading the file where my 3000 endpoints are defined.

When Asterisk is fully loaded and running, I load the endpoints file. By doing this I'm getting startup times of <1min including the endpoints load, and apparently, it is fully functional.

But, is this recommendable? 

If I just start Asterisk and let it load the endpoints from file, it takes 5mins and 35 seconds.

> res_pjsip: High startup time using local configuration files
> ------------------------------------------------------------
>
>                 Key: ASTERISK-26599
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26599
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.11.2
>            Reporter: Hector Royo Concepcion
>         Attachments: pjsip_wizard_sample.conf
>
>
> I have an Asterisk Box configured with PJSIP, and around 3000 unqualified endpoints, configured via static config files.
> Since I updated from 13.9.0 to 13.11.2 I've found that Asteriskk startup time has increased a lot (from <1min to 4-5min). CLI output shows:
> {panel}
> == Endpoint XXXX is now Reachable 
> {panel}
> For each of the 3000 endpoints, which takes a lot of time.
> I've been reading the Changelog for version 13.11.2. There have been improvements to Realtime performance that may affect configurations based on local files . If I comment the following line (1449) on res/res_pjsip/pjsip_options.c:
> {panel}
>  //                      update_all_unqualified_endpoints();
> {panel}
> ...my asterisk starts again in less than 1 minute, and it's fully functional.
> Shouldn't this line only be executed if Realtime is used? Is it really needed for a configuration based on static local files?



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



More information about the asterisk-bugs mailing list