[Home]

Summary:ASTERISK-08596: ael2 reload nukes subscription tables
Reporter:Dan Moschuk (dnatural)Labels:
Date Opened:2007-01-17 10:32:29.000-0600Date Closed:2007-01-22 14:10:00.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:PBX/pbx_ael
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) subscript.txt
Description:Whenever we reload the dialplan, subscriptions are also taken out.  This behavior does not happen on a server running 1.2.13 using the old-style .conf dialplans.  

Asterisk does send the correct notify to the phones (in this case Aastra 9133s) to resubscribe in 60 seconds, but the phones respond with a 489 and never re-subscribe.  Obviously a problem with the phone as well, but is it necessary to tear down subscriptions on ael2 reload?

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

May be related to ASTERISK-5889.  Attached is a trace showing a snip of the relevant packets.
Comments:By: Dan Moschuk (dnatural) 2007-01-19 17:28:34.000-0600

I've been able to fix this by simply commenting out the ast_context_destroy() calls on line 3920 and line 3957 (pbx/pbx_ael2.c).

It seems like ast_merge_contexts_and_delete() is responsible for saving hints during dialplan reloads.  Since this function calls ast_context_destroy() itself, the two in pbx_ael2.c are redundant.

By: Steve Murphy (murf) 2007-01-22 13:46:50.000-0600

dnatural-- many thanks. I've double checked, and this change looks totally appropriate. I've committed these changes in 1.4 via 51409, and in trunk via 51413. Looks like we can close this bug!