<p>This has been happening since the asterisk 1.2 days, makes me believe it has something to do with Analog FXO ckts provided.</p>
<p>Mitul Limbani</p>
<div class="gmail_quote">On Sep 12, 2012 10:18 AM, &quot;Vladimir Mikhelson&quot; &lt;<a href="mailto:vlad@mikhelson.com">vlad@mikhelson.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Raj,<br>
<br>
I am just confirming it happens here as well.<br>
<br>
CentOS 5.7. Asterisk 1.8.15.1. DAHDI 2.6.1.<br>
<br>
Digium, Inc. Wildcard TDM410 4-port analog card (rev 11)<br>
<br>
Loadzone = us<br>
<br>
The problem started manifesting itself after I switched to 1.8.x from<br>
1.6.2.x<br>
<br>
Typical scenario: a caller apparently hangs up, dial plan goes into<br>
voice mail and records a 50 sec message with the CO tones. Then<br>
something happens and the line finally gets hung up.<br>
<br>
Regards,<br>
Vladimir<br>
<br>
<br>
<br>
<br>
On 9/11/2012 12:08 PM, Raj Mathur (राज माथुर) wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Asterisk 1.8.13 on Debian Testing (Wheezy), MTNL Mumbai.<br>
&gt; Digium, Inc. Wildcard AEX410 4-port analog card (PCI-Express)<br>
&gt;<br>
&gt; When Asterisk executes HangUp() on an incoming call, the line remains<br>
&gt; connected for the caller.<br>
&gt;<br>
&gt; Zone = in, opermode = INDIA.  Line set to fxsks.  Any help on where to<br>
&gt; start looking appreciated.<br>
&gt;<br>
&gt; Sample log:<br>
&gt; [Sep 11 22:06:18] DEBUG[4759]: chan_dahdi.c:11895 do_monitor: Monitor doohicky got event Ring Begin on channel 1<br>
&gt; [Sep 11 22:06:18] DEBUG[4759]: sig_analog.c:3621 analog_handle_init_event: channel (1) - signaling (5) - event (ANALOG_EVENT_RINGBEGIN)<br>
&gt; [Sep 11 22:06:19] DEBUG[4759]: chan_dahdi.c:11895 do_monitor: Monitor doohicky got event Ring/Answered on channel 1<br>
&gt; [Sep 11 22:06:19] DEBUG[4759]: sig_analog.c:3621 analog_handle_init_event: channel (1) - signaling (5) - event (ANALOG_EVENT_RINGOFFHOOK)<br>
&gt; [Sep 11 22:06:19] DEBUG[4759]: dsp.c:471 ast_tone_detect_init: Setup tone 1100 Hz, 500 ms, block_size=160, hits_required=21<br>
&gt; [Sep 11 22:06:19] DEBUG[4759]: dsp.c:471 ast_tone_detect_init: Setup tone 2100 Hz, 2600 ms, block_size=160, hits_required=116<br>
&gt; [Sep 11 22:06:19] DEBUG[4759]: dsp.c:1576 ast_dsp_set_busy_pattern: dsp busy pattern set to 0,0<br>
&gt; [Sep 11 22:06:19] DEBUG[4737]: devicestate.c:340 _ast_device_state: No provider found, checking channel drivers for DAHDI - 1<br>
&gt; [Sep 11 22:06:19] DEBUG[5414]: sig_analog.c:1769 __analog_ss_thread: __analog_ss_thread 1<br>
&gt;     -- Starting simple switch on &#39;DAHDI/1-1&#39;<br>
&gt; [Sep 11 22:06:19] DEBUG[4737]: devicestate.c:458 do_state_change: Changing state for DAHDI/1 - state 2 (In use)<br>
&gt; [Sep 11 22:06:19] DEBUG[4737]: devicestate.c:438 devstate_event: device &#39;DAHDI/1&#39; state &#39;2&#39;<br>
&gt; [Sep 11 22:06:19] DEBUG[5414]: sig_analog.c:2392 __analog_ss_thread: Receiving DTMF cid on channel DAHDI/1-1<br>
&gt; [Sep 11 22:06:19] DEBUG[4772]: app_queue.c:1487 handle_statechange: Device &#39;DAHDI/1&#39; changed to state &#39;2&#39; (In use) but we don&#39;t care because they&#39;re not a<br>
&gt; member of any queue.<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:3509 analog_exception: analog_exception 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:3603 analog_exception: Exception on 16, channel 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:2660 __analog_handle_event: __analog_handle_event 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:2687 __analog_handle_event: Got event ANALOG_EVENT_RINGBEGIN(12) on channel 1 (index 0)<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:3509 analog_exception: analog_exception 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:3603 analog_exception: Exception on 16, channel 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:2660 __analog_handle_event: __analog_handle_event 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:2687 __analog_handle_event: Got event ANALOG_EVENT_RINGOFFHOOK(2) on channel 1 (index 0)<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:3043 __analog_handle_event: Ring detected<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:2441 __analog_ss_thread: CID got string &#39;&#39;<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: callerid.c:207 callerid_get_dtmf: No cid detected<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:2443 __analog_ss_thread: CID is &#39;&#39;, flags 8<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: pbx.c:3239 ast_str_retrieve_variable: Result of &#39;EXTEN&#39; is &#39;s&#39;<br>
&gt; [Sep 11 22:06:21] DEBUG[4737]: devicestate.c:340 _ast_device_state: No provider found, checking channel drivers for DAHDI - 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;NoOp&#39;<br>
&gt; [Sep 11 22:06:21] DEBUG[4737]: devicestate.c:458 do_state_change: Changing state for DAHDI/1 - state 2 (In use)<br>
&gt; [Sep 11 22:06:21] DEBUG[4737]: devicestate.c:438 devstate_event: device &#39;DAHDI/1&#39; state &#39;2&#39;<br>
&gt;     -- Executing [s@incoming:1] NoOp(&quot;DAHDI/1-1&quot;, &quot;Incoming s&quot;) in new stack<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: pbx.c:4058 pbx_substitute_variables_helper_full: Function result is &#39;&#39;<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;Verbose&#39;<br>
&gt;     -- Executing [s@incoming:2] Verbose(&quot;DAHDI/1-1&quot;, &quot;CID &quot;) in new stack<br>
&gt; CID<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;Set&#39;<br>
&gt;     -- Executing [s@incoming:3] Set(&quot;DAHDI/1-1&quot;, &quot;SPYGROUP=queue-01&quot;) in new stack<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;Answer&#39;<br>
&gt;     -- Executing [s@incoming:4] Answer(&quot;DAHDI/1-1&quot;, &quot;&quot;) in new stack<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:1499 analog_answer: analog_answer 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: sig_analog.c:1530 analog_answer: Took DAHDI/1-1 off hook<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: chan_dahdi.c:4927 dahdi_enable_ec: Enabled echo cancellation on channel 1<br>
&gt; [Sep 11 22:06:21] DEBUG[4737]: devicestate.c:340 _ast_device_state: No provider found, checking channel drivers for DAHDI - 1<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: chan_dahdi.c:4946 dahdi_train_ec: No echo training requested<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: chan_dahdi.c:9403 dahdi_indicate: Requested indication -1 on channel DAHDI/1-1<br>
&gt; [Sep 11 22:06:21] DEBUG[4772]: app_queue.c:1487 handle_statechange: Device &#39;DAHDI/1&#39; changed to state &#39;2&#39; (In use) but we don&#39;t care because they&#39;re not a<br>
&gt; member of any queue.<br>
&gt; [Sep 11 22:06:21] DEBUG[4737]: devicestate.c:458 do_state_change: Changing state for DAHDI/1 - state 2 (In use)<br>
&gt; [Sep 11 22:06:21] DEBUG[4737]: devicestate.c:438 devstate_event: device &#39;DAHDI/1&#39; state &#39;2&#39;<br>
&gt; [Sep 11 22:06:21] DEBUG[4772]: app_queue.c:1487 handle_statechange: Device &#39;DAHDI/1&#39; changed to state &#39;2&#39; (In use) but we don&#39;t care because they&#39;re not a<br>
&gt; member of any queue.<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;AGI&#39;<br>
&gt;     -- Executing [s@incoming:5] AGI(&quot;DAHDI/1-1&quot;, &quot;/usr/local/lib/agi/office-hours.agi,custom/no-service&quot;) in new stack<br>
&gt;     -- Launched AGI Script /usr/local/lib/agi/office-hours.agi<br>
&gt;        &gt; /usr/local/lib/agi/office-hours.agi,custom/no-service: FILE custom/no-service<br>
&gt;  /usr/local/lib/agi/office-hours.agi,custom/no-service: Week day 2<br>
&gt;  /usr/local/lib/agi/office-hours.agi,custom/no-service: OS: 36000, OE: 79200, CUR: 79581<br>
&gt;     -- AGI Script Executing Application: (Playback) Options: (custom/test)<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: channel.c:5171 set_format: Set channel DAHDI/1-1 to write format slin<br>
&gt; [Sep 11 22:06:21] DEBUG[5414]: channel.c:3506 ast_settimeout: Scheduling timer at (50 requested / 50 actual) timer ticks per second<br>
&gt;     -- &lt;DAHDI/1-1&gt; Playing &#39;custom/test.slin&#39; (language &#39;en&#39;)<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: channel.c:3506 ast_settimeout: Scheduling timer at (52 requested / 52 actual) timer ticks per second<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: channel.c:3506 ast_settimeout: Scheduling timer at (0 requested / 0 actual) timer ticks per second<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: channel.c:3506 ast_settimeout: Scheduling timer at (0 requested / 0 actual) timer ticks per second<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: channel.c:3506 ast_settimeout: Scheduling timer at (0 requested / 0 actual) timer ticks per second<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: channel.c:5171 set_format: Set channel DAHDI/1-1 to write format ulaw<br>
&gt;     -- &lt;DAHDI/1-1&gt;AGI Script /usr/local/lib/agi/office-hours.agi completed, returning 0<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: pbx.c:3239 ast_str_retrieve_variable: Result of &#39;PASS&#39; is &#39;0&#39;<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: pbx.c:4126 pbx_substitute_variables_helper_full: Expression result is &#39;1&#39;<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;GotoIf&#39;<br>
&gt;     -- Executing [s@incoming:6] GotoIf(&quot;DAHDI/1-1&quot;, &quot;1 ?done&quot;) in new stack<br>
&gt;     -- Goto (incoming,s,12)<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;NoOp&#39;<br>
&gt;     -- Executing [s@incoming:12] NoOp(&quot;DAHDI/1-1&quot;, &quot;&quot;) in new stack<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: pbx.c:4230 pbx_extension_helper: Launching &#39;Hangup&#39;<br>
&gt;     -- Executing [s@incoming:13] Hangup(&quot;DAHDI/1-1&quot;, &quot;&quot;) in new stack<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: pbx.c:5047 __ast_pbx_run: Spawn extension (incoming,s,13) exited non-zero on &#39;DAHDI/1-1&#39;<br>
&gt;   == Spawn extension (incoming, s, 13) exited non-zero on &#39;DAHDI/1-1&#39;<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: channel.c:2683 ast_softhangup_nolock: Soft-Hanging up channel &#39;DAHDI/1-1&#39;<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: channel.c:2831 ast_hangup: Hanging up channel &#39;DAHDI/1-1&#39;<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: chan_dahdi.c:6149 dahdi_hangup: dahdi_hangup(DAHDI/1-1)<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: sig_analog.c:1282 analog_hangup: analog_hangup 1<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: sig_analog.c:1305 analog_hangup: Hangup: channel: 1 index = 0, normal = 1, callwait = 0, thirdcall = 0<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: chan_dahdi.c:4962 dahdi_disable_ec: Disabled echo cancellation on channel 1<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: chan_dahdi.c:6747 dahdi_setoption: Set option TONE VERIFY, mode: OFF(0) on DAHDI/1-1<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: chan_dahdi.c:6757 dahdi_setoption: Set option TDD MODE, value: OFF(0) on DAHDI/1-1<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: sig_analog.c:782 analog_update_conf: Updated conferencing on 1, with 0 conference users<br>
&gt;     -- Hanging up on &#39;DAHDI/1-1&#39;<br>
&gt;     -- Hungup &#39;DAHDI/1-1&#39;<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: res_odbc.c:1050 odbc_release_obj2: odbc_release_obj2(0x7f537401ac78) called (obj-&gt;txf = (nil))<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: cdr_radius.c:208 radius_log: Unable to create RADIUS record. CDR not recorded!<br>
&gt; [Sep 11 22:06:28] DEBUG[5414]: res_config_sqlite.c:834 cdr_handler: SQL query: INSERT INTO ast_cdr<br>
&gt; (dst,dcontext,channel,lastapp,start,answer,end,duration,billsec,disposition,amaflags,uniqueid) VALUES (&#39;s&#39;,&#39;incoming&#39;,&#39;DAHDI/1-1&#39;,&#39;Hangup&#39;,&#39;2012-09-11<br>
&gt; 22:06:19&#39;,&#39;2012-09-11 22:06:21&#39;,&#39;2012-09-11 22:06:28&#39;,&#39;9&#39;,&#39;7&#39;,&#39;ANSWERED&#39;,&#39;DOCUMENTATION&#39;,&#39;1347381379.5&#39;)<br>
&gt; [Sep 11 22:06:28] DEBUG[4737]: devicestate.c:340 _ast_device_state: No provider found, checking channel drivers for DAHDI - 1<br>
&gt; [Sep 11 22:06:28] DEBUG[4737]: devicestate.c:458 do_state_change: Changing state for DAHDI/1 - state 0 (Unknown)<br>
&gt; [Sep 11 22:06:28] DEBUG[4737]: devicestate.c:438 devstate_event: device &#39;DAHDI/1&#39; state &#39;0&#39;<br>
&gt; [Sep 11 22:06:28] DEBUG[4772]: app_queue.c:1487 handle_statechange: Device &#39;DAHDI/1&#39; changed to state &#39;0&#39; (Unknown) but we don&#39;t care because they&#39;re not<br>
&gt; a member of any queue.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; -- Raj<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>