[asterisk-bugs] [JIRA] (ASTERISK-25621) res_pjsip: outbound_proxy arbitrarily and occasionally set to 'asterisk' during reload

Asterisk Team (JIRA) noreply at issues.asterisk.org
Tue Jan 5 12:00:33 CST 2016


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

Asterisk Team closed ASTERISK-25621.
------------------------------------


> res_pjsip: outbound_proxy arbitrarily and occasionally set to 'asterisk' during reload
> --------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-25621
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25621
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.6.0
>         Environment: CentOS release 6.6 (Final) Linux c6c17.c6tel.gs.rr 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Neil Sunerton
>            Assignee: Unassigned
>         Attachments: database-show.txt, pjsip.conf
>
>
> I'm having some odd problems with Asterisk 13.6 (and the same problem previously in Certified Asterisk 13.1-cert1). During some reloads the outbound_proxy value 'asterisk' is applied to all PJSIP endpoints resulting in the following in /var/log/asterisk/messages (the two entries appear for each and every defined endpoint):
> {noformat}
> [Nov 23 09:35:06] ERROR[1051] res_pjsip/pjsip_configuration.c: Invalid outbound proxy 'asterisk' specified on endpoint '2306...'
> [Nov 23 09:35:06] ERROR[1051] res_sorcery_config.c: Could not create an object of type 'endpoint' with id '2306...' from configuration file 'pjsip.conf'
> {noformat}
> Asterisk will then not process further calls. I can't tell if this is due to endpoints no longer existing or it's trying to route calls via the outbound proxy 'asterisk'. A restart is required to get things working again.
> {noformat}
> [Nov 23 09:34:19] ERROR[868] chan_pjsip.c: Failed to create outgoing session to endpoint '2306...'
> [Nov 23 09:34:19] WARNING[11137][C-000001b6] app_dial.c: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
> {noformat}
> My initial config did not specify an outbound_proxy as the documentation states it has a default values of the empty string. I have tried explicity setting outbound_proxy= for endpoint and aor types (I don't use any registration types) with no change.
> I typically have around 10 to 15 reloads per day with this problem occurring on roughly 10% of them. (By reload I mean asterisk -rx 'core reload')
> I cannot replicate on demand as it happens arbitrarily. It only happens on a live server with real users, which does have more use than my development server.
> Other relevant log entries:
> {noformat}
> [Nov 23 09:35:06] ERROR[10344] res_pjsip/pjsip_options.c: Unable to apply outbound proxy on request to qualify contact sip:2306...
> [Nov 23 09:35:06] ERROR[10344] res_pjsip.c: Unable to apply outbound proxy on request NOTIFY to endpoint 2306...
> {noformat}
> Data in astdb also changes such that both outbound_proxy and path change from "" to "asterisk" (I purge astdb if I do a restart):
> {noformat}
> /registrar/contact/2306...;@6d18ff3c9ad83dd313eff61b2b445375: {"qualify_timeout":"3.000000","outbound_proxy":"asterisk","expiration_time":"1449057422","path":"asterisk","qualify_frequency":"30","user_agent":"snom320/8.7.3.25.9","uri":"sip:2306... at 81.2...:2048;line=hmo728hd"}
> {noformat}
> I also make this observation in case it is relevant. I'm not specifying tone_zone as the default is the empty string.
> {noformat}
> [Nov 23 09:35:06] ERROR[4708] chan_pjsip.c: Unknown country code 'asterisk' for tonezone. Check indications.conf for available country codes.
> {noformat}
> For information, I have made two modifications to Asterisk source code before building:
> {noformat}
> [asterisk-13.6.0]# diff apps/app_queue-orig.c apps/app_queue.c 
> 6744c6744
> <                               if (ast_asprintf(&gosub_args, "%s,%s,1(%s)", gosubexec, what_is_s, gosub_argstart + 1) < 0) {
> ---
> >                               if (ast_asprintf(&gosub_args, "%s,%s,1", gosubexec, gosub_argstart + 1) < 0) {
> {noformat}
> {noformat}
> [asterisk-13.6.0]# diff include/asterisk/channel-orig.h include/asterisk/channel.h
> 161c161
> < #define AST_MAX_ACCOUNT_CODE    20  /*!< Max length of an account code */
> ---
> > #define AST_MAX_ACCOUNT_CODE    256 /*!< Max length of an account code */
> {noformat}
> On posting to Asterisk forum was told "This is not something anyone else has experienced and I'm not really sure how it would happen..."
> Attachments are obfuscated.



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



More information about the asterisk-bugs mailing list