[Home]

Summary:ASTERISK-25202: Hints extension state broken between 13.3.2 and 13.4
Reporter:Marek Cervenka (cervajs)Labels:
Date Opened:2015-06-25 07:38:00Date Closed:2015-06-27 10:31:14
Priority:MajorRegression?Yes
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:13.4.0 Frequency of
Occurrence
Constant
Related
Issues:
is caused byASTERISK-25040 pbx: Improve performance of reloads by making hint destruction more performant
Environment:centos6.6Attachments:( 0) ast13.3.txt
( 1) ast13.4.txt
( 2) ASTERISK-25202-11.diff
( 3) ASTERISK-25202-13.diff
( 4) full_pjsip_13-3-2.txt
( 5) full_pjsip_13-4.txt
( 6) Rusty_extensions.txt
( 7) Rusty_pjsip.txt
( 8) Rusty_sip.txt
Description:hints not working after upgrade to 13.4.0 from 13.3.2
{noformat}
[subscribe_1]
exten => 884,hint,sip/vr1a884&Custom:agent_1
exten => 885,hint,sip/vr1a885&Custom:agent_2
{noformat}
call from 885 to 884 (asterisk 13.3.2)
{noformat}
   -= Registered Asterisk Dial Plan Hints =-
885@subscribe_1     : sip/vr1a885&Custom:a  State:InUse           Presence:not_set         Watchers  0
884@subscribe_1     : sip/vr1a884&Custom:a  State:Ringing         Presence:not_set         Watchers  0
{noformat}
call from 885 to 884 (asterisk 13.4.0)
{noformat}
   -= Registered Asterisk Dial Plan Hints =-
885@subscribe_1     : sip/vr1a885&Custom:a  State:Idle            Presence:not_set         Watchers  0
884@subscribe_1     : sip/vr1a884&Custom:a  State:Idle            Presence:not_set         Watchers  0
{noformat}
Comments:By: Rusty Newton (rnewton) 2015-06-25 19:11:01.935-0500

That is odd. Can you easily grab a debug log of the call for comparison between the two?

That is, with verbose 5 or above and debug 5 or above..



By: Marek Cervenka (cervajs) 2015-06-26 08:16:12.459-0500

debug files added

By: Rusty Newton (rnewton) 2015-06-26 16:04:12.008-0500

Yup reproduced and verified it is broken between the versions you tested. 13.3.2 and 13.4.

By: Rusty Newton (rnewton) 2015-06-26 16:32:49.208-0500

Behavior is the same for chan_sip and chan_pjsip.

Adding full_pjsip_13-3-2.txt and full_pjsip_13-4.txt , for debug log comparison between the two.

By: Rusty Newton (rnewton) 2015-06-26 16:39:00.800-0500

Attaching

Rusty_extensions.txt (extensions.conf)
Rusty_pjsip.txt (pjsip.conf)
Rusty_sip.txt (sip.conf)

These can be used when reproducing the issue. Nothing really special in the configuration, just a fairly minimal configuration.

By: Matt Jordan (mjordan) 2015-06-26 17:05:50.569-0500

Attached are patches that I *think* will fix the issue.

The issue appears to be a regression introduced by making dialplan reloads work much better for hints. Unfortunately, when that patch went in, we lost case insensitivity for channel technology names as part of a hint. That results in 'SIP/foo' being picked up, but not 'sip/foo'.

By: Rusty Newton (rnewton) 2015-06-26 17:15:53.613-0500

Tested the patch in 13.4, appears to work for me. Now I get the appropriate states such as Ringing and InUse when making calls.

By: Marek Cervenka (cervajs) 2015-06-27 04:54:29.292-0500

tested patch for 13.4. works ok