MWI subscribes, expires, does not re-subscribe (bug?)

My FreePBX subscribes to external MWI notifications with a line in SIP_gen_custom like this:
mwi =>

This works for an hour, until the subscription expires. Then the VOIP provider sends a notification that includes this:
Subscription-State: terminated;reason=timeout

Asterisk replies with a Bad Event like this:
Status-Line: SIP/2.0 489 Bad event

After that, Asterisk does not re-subscribe and does not receive MWI notifications until I do a reload or a restart.

Has anyone run into this before? Anyone have any ideas on how to solve it? I can’t find anything about this on any FreePBX or Asterisk sites, I’m stumped. Need help from someone smarter than I am.


The MWI functionality mentioned is rarely used so it’s entirely possible that there is a bug in chan_sip with it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.