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

Serinf BCO (JIRA) noreply at issues.asterisk.org
Mon Apr 25 04:17:56 CDT 2016


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

Serinf BCO edited comment on ASTERISK-25621 at 4/25/16 4:16 AM:
----------------------------------------------------------------

I confirm we have the exact same problem as Neil describe. It happen not frequently, about 1 time per month and a complete rebbot of the server is require. It could happen many minutes after a reload but not immediately. In the log we see this:
{noformat}[2016-04-24 09:15:10] ERROR[13545] res_pjsip/pjsip_options.c: Unable to apply outbound proxy on request to qualify contact sip:539 at 172.16.101.34:5060{noformat}

At this time Asterisk does not work, not calls could be made. We need to restart all system. After a restart this line continue to be written in the asterisk log but calls could be made. A complete flush of the asdb doesn't help in our case. We need to restart the phones to force inscription and get rid of this.

For more details I had already post this issue on the asterisk and Freepbx forums here: 
http://forums.asterisk.org/viewtopic.php?f=1&t=92546
http://community.freepbx.org/t/pjsip-bug-or-misconfig-after-upgrade-registrar-suddenly-change-with-outbound-proxy-set/27585
http://community.freepbx.org/t/issues-with-freepbx-12-upgraded-system-pjsip-registration-and-new-extensions-showing/26770

Asterisk 13.2.0
About 250 phones (Polycom)



was (Author: serinfbco):
I confirm we have the exact same problem as Neil describe. It happen not frequently, about 1 time per month and a complete rebbot of the server is require. It could happen many minutes after a reload but not immediately. In the log we see this:
[2016-04-24 09:15:10] ERROR[13545] res_pjsip/pjsip_options.c: Unable to apply outbound proxy on request to qualify contact sip:539 at 172.16.101.34:5060

At this time Asterisk does not work, not calls could be made. We need to restart all system. After a restart this line continue to be written in the asterisk log but calls could be made. A complete flush of the asdb doesn't help in our case. We need to restart the phones to force inscription and get rid of this.

For more details I had already post this issue on the asterisk and Freepbx forums here: 
http://forums.asterisk.org/viewtopic.php?f=1&t=92546
http://community.freepbx.org/t/pjsip-bug-or-misconfig-after-upgrade-registrar-suddenly-change-with-outbound-proxy-set/27585
http://community.freepbx.org/t/issues-with-freepbx-12-upgraded-system-pjsip-registration-and-new-extensions-showing/26770

Asterisk 13.2.0
About 250 phones (Polycom)


> 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