[Home]

Summary:ASTERISK-10210: SIP or IAX2 ext. unavailable - chanisavail dies. If I unplug my Iaxy then calls don't go to my VM...
Reporter:Roger Telegan (rogertelegan)Labels:
Date Opened:2007-08-30 21:01:26Date Closed:2011-06-07 14:03:18
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_chanisavail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) iax.log
Description:Asterisk 1.4.11  if I unplug a device -- let's say my extension. When calls try to route to my ext. they should go to my Voice Mail because I am not here. But they don't the calls just die...



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

[Aug 29 14:58:50] DEBUG[17620]: pbx.c:1809 pbx_extension_helper: Launching 'Answer'
   -- Executing [430@from-inside:1] Answer("IAX2/259-10", "") in new stack [Aug 29 14:58:50] DEBUG[17620]: chan_iax2.c:3353 iax2_answer: Answering IAX2 call [Aug 29 14:58:50] DEBUG[17620]: devicestate.c:304 __ast_device_state_changed_literal: Notification of state change to be queued on device/channel IAX2/259-10 [Aug 29 14:58:50] DEBUG[13274]: devicestate.c:161 ast_device_state: No provider found, checking channel drivers for IAX2 - 259 [Aug 29 14:58:50] DEBUG[13274]: chan_iax2.c:10229 iax2_devicestate: Checking device state for device 259 [Aug 29 14:58:50] DEBUG[13274]: chan_iax2.c:10237 iax2_devicestate: iax2_devicestate: Found peer. What's device state of 259? addr=-698618299, defaddr=0 maxms=2000, lastms=40 [Aug 29 14:58:50] DEBUG[13274]: channel.c:1078 channel_find_locked: Avoiding initial deadlock for channel '0x822ceb0'
[Aug 29 14:58:50] DEBUG[17620]: pbx.c:1809 pbx_extension_helper: Launching 'ChanIsAvail'
   -- Executing [430@from-inside:2] ChanIsAvail("IAX2/259-10", "IAX2/212") in new stack [Aug 29 14:58:50] DEBUG[17620]: pbx.c:2407 __ast_pbx_run: Spawn extension (from-inside,430,2) exited non-zero on 'IAX2/259-10'
 == Spawn extension (from-inside, 430, 2) exited non-zero on 'IAX2/259-10'
[Aug 29 14:58:50] DEBUG[17620]: channel.c:1547 ast_softhangup_nolock: Soft-Hanging up channel 'IAX2/259-10'
[Aug 29 14:58:50] DEBUG[17620]: pbx.c:1809 pbx_extension_helper: Launching 'Hangup'
   -- Executing [h@from-inside:1] Hangup("IAX2/259-10", "") in new stack [Aug 29 14:58:50] DEBUG[17620]: pbx.c:2530 __ast_pbx_run: Spawn extension (from-inside,h,1) exited non-zero on 'IAX2/259-10'
 == Spawn extension (from-inside, h, 1) exited non-zero on 'IAX2/259-10'
[Aug 29 14:58:50] DEBUG[17620]: channel.c:1764 ast_hangup: Hanging up channel 'IAX2/259-10'
[Aug 29 14:58:50] DEBUG[17620]: chan_iax2.c:3099 iax2_hangup: We're hanging up IAX2/259-10 now...
Comments:By: David Faulk (dfaulk) 2007-08-31 09:27:06

This is part of a macro which firsts  checks ChanisAvail to see check ddevice state , if the device is unavailable it should route the call to voicemail. Instead the macro gets to chanisavail and just exits. In this instance its try to check the state of an IAX2 channel.

By: snuffy (snuffy) 2007-09-02 22:42:35

I've had a similar problem, but i was using Zap channels.
So atm i've given up on it within 1.2/1.4

By: Joshua C. Colp (jcolp) 2007-09-04 08:03:16

Please provide the dialplan logic involved here for testing purposes, and a complete dialplan log with debug on and an iax2 debug.

By: David Faulk (dfaulk) 2007-09-06 14:20:05

I have attached a file named iax.log with dialplan debug and iax2 debug while this issue is occuring.

By: Tilghman Lesher (tilghman) 2007-12-05 09:42:05.000-0600

We still need to see the actual dialplan code, not just the output.

By: Joshua C. Colp (jcolp) 2008-01-08 14:31:09.000-0600

Suspended due to lack of dialplan.