[Home]

Summary:ASTERISK-12588: crash when subscribe to pattern match for a hint
Reporter:pj (pj)Labels:
Date Opened:2008-08-15 13:13:32Date Closed:2008-08-16 07:43:25
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Subscriptions
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) gdb.txt
( 1) gdb2.txt
( 2) pbx.c.patch
Description:I'm using this ael syntax for pattern match for hint
       hint(SIP/${EXTEN}) _ZXX => NoOP;
when I tried to subscribe, it causes asterisk to crash.

subscribe to "normal" match hints using this ...
       hint(SIP/761) 761 => NoOP;
... works fine.

pattern match for hints feature was added into trunk in rev. 109970





****** ADDITIONAL INFORMATION ******

 '_ZXX' =>         hint: SIP/${EXTEN}                            [pbx_ael]
                   1. NoOP()                                     [pbx_ael]
Comments:By: Digium Subversion (svnbot) 2008-08-15 14:14:09

Repository: asterisk
Revision: 138124

U   trunk/main/pbx.c

------------------------------------------------------------------------
r138124 | tilghman | 2008-08-15 14:14:08 -0500 (Fri, 15 Aug 2008) | 4 lines

e->data can be NULL, so use the safe version of ast_strdup()
(closes issue ASTERISK-12588)
Reported by: pj

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=138124

By: pj (pj) 2008-08-16 03:57:38

thanks for fix for crash when subscribe to pattern match for a hint.
another issues still exists:

- crash when do 'ael reload', if I have pattern match for hints in extensions.ael:
hint(SIP/${EXTEN}) _ZXX => NoOP;
gdb2.txt uploaded

- when use pattern match for hints, all subcribed lines have status 'idle', even in case, that peers are not registered.


   -= Registered Asterisk Dial Plan Hints =-
                   628@linestates          : SIP/${EXTEN}          State:Idle            Watchers  1
                   734@linestates          : SIP/${EXTEN}          State:Idle            Watchers  1
                   777@linestates          : SIP/${EXTEN}          State:Idle            Watchers  1
                   772@linestates          : SIP/${EXTEN}          State:Idle            Watchers  1
                   743@linestates          : SIP/${EXTEN}          State:Idle            Watchers  2
                   693@linestates          : SIP/${EXTEN}          State:Idle            Watchers  1
                   455@linestates          : SIP/${EXTEN}          State:Idle            Watchers  2
                   408@linestates          : SIP/${EXTEN}          State:Idle            Watchers  1
                   324@linestates          : SIP/${EXTEN}          State:Idle            Watchers  2
                   322@linestates          : SIP/${EXTEN}          State:Idle            Watchers  1
                   958@linestates          : Meetme:100            State:Unavailable     Watchers  1
                  _ZXX@linestates          : SIP/${EXTEN}          State:Idle            Watchers  0


By: Digium Subversion (svnbot) 2008-08-16 07:43:24

Repository: asterisk
Revision: 138409

U   trunk/main/pbx.c

------------------------------------------------------------------------
r138409 | tilghman | 2008-08-16 07:43:22 -0500 (Sat, 16 Aug 2008) | 3 lines

Also make sure hinting won't crash on reload.
(Closes issue ASTERISK-12588)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=138409