[Home]

Summary:ASTERISK-11786: Dial(<channel>|<time>|m) terminates MOH before call is answered on early "Call <> left from hold>"
Reporter:darkpsi (darkpsi)Labels:
Date Opened:2008-04-05 09:59:44Date Closed:2011-06-07 14:08:22
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_dial
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Was having problem with "MOH instead of ring" stopping prematurely because SIP provider sends "call left from hold" before "call was answered".

Solution / Hack was to suppress AST_CONTROL_UNHOLD if OPT_MUSICBACK is enabled.

Seems to work in my case, but not certain as to full ramifications.  Does remote side sending "left from hold" mean anything prior to "call was answered" in some other circumstance?

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

BEFORE:

   -- Called <sip_provider>/<phone_number>
   -- Started music on hold, class '<music_class>', on channel 'IAX2/<internal_channel>'
   -- SIP/<external_channel> is ringing
   -- Call on SIP/<external_channel> left from hold
   -- Stopped music on hold on IAX2/<internal_channel>
   -- SIP/<external_channel> is making progress passing it to IAX2/<internal_channel>
   -- Call on SIP/<external_channel> left from hold
   -- SIP/<external_channel> answered IAX2/<internal_channel>

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

CHANGE: (app_dial.c)

case AST_CONTROL_UNHOLD:
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Call on %s left from hold\n", c->name);
add >>> if ( !ast_test_flag(outgoing, OPT_MUSICBACK) )
ast_indicate(in, AST_CONTROL_UNHOLD);
break;

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

AFTER:

   -- Called <sip_provider>/<phone_number>
   -- Started music on hold, class '<music_class>', on channel 'IAX2/<internal_channel>'
   -- SIP/<external_channel> is ringing
   -- Call on SIP/<external_channel> left from hold
   -- SIP/<external_channel> is making progress passing it to IAX2/<internal_channel>
   -- Call on SIP/<external_channel> left from hold
   -- SIP/<external_channel> answered IAX2/<internal_channel>
   -- Stopped music on hold on IAX2/<internal_channel>
Comments:By: Tilghman Lesher (tilghman) 2008-04-06 10:37:16

Is there a reason why you filed this issue as private?

By: Joshua C. Colp (jcolp) 2008-04-07 08:32:50

I saw no reason to have this be private.

1. Please try the latest 1.4
2. If this still happens provide complete console output
3. As well provide an iax2 debug

By: Jason Parker (jparker) 2008-05-01 15:07:26

Closing due to lack of response.

Please reopen if you are able to provide the requested information.