Summary:ASTERISK-01975: X100P Ring/Off-hook in strange state 6
Reporter:tekati (tekati)Labels:
Date Opened:2004-07-08 16:15:56Date Closed:2011-06-07 14:05:31
Versions:Frequency of
Description:With the 07/07/04 CVS head I get random pickups of a X100P card which then goes through and rings my phone.  I then get a "Please hangup and dial your operator" recording or that annoying tone you get when your phone has been off the hook too long.  I also get CallerID of "Out Of Area".  Below is a console screen of what my side looks like.

   -- Starting simple switch on 'Zap/1-1'
Jul  8 13:38:39 WARNING[1227885360]: chan_zap.c:4986 ss_thread: CallerID returned with error on channel 'Zap/1-1'
   -- Executing Wait("Zap/1-1", "1") in new stack
   -- Executing Zapateller("Zap/1-1", "answer|nocallerid") in new stack
Jul  8 13:38:42 WARNING[1227885360]: chan_zap.c:3258 zt_handle_event: Ring/Off-hook in strange state 6 on channel 1
   -- Executing PrivacyManager("Zap/1-1", "") in new stack
 == Parsing '/etc/asterisk/privacy.conf':   == Parsing '/etc/asterisk/privacy.conf': Found
   -- Playing 'privacy-unident' (language 'en')
   -- Playing 'privacy-prompt' (language 'en')
   -- Playing 'privacy-incorrect' (language 'en')
   -- Playing 'privacy-prompt' (language 'en')
   -- Playing 'privacy-incorrect' (language 'en')

*NOTE BELOW IS A NOOP WITH A TIMESTAMP-CALLERID notice the strange number and it is different each time.

   -- Executing NoOp("Zap/1-1", " | 20040708-133923") in new stack
   -- Executing GotoIf("Zap/1-1", "0?7:10") in new stack
   -- Goto (fxo-line1-in,s,10)
   -- Executing Macro("Zap/1-1", "record-on|661XXXXXXX|") in new stack
   -- Executing AGI("Zap/1-1", "set-timestamp.agi") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/set-timestamp.agi
   -- AGI Script set-timestamp.agi completed, returning 0
   -- Executing SetVar("Zap/1-1", "CALLFILENAME=20040708-133924--661XXXXXXX") in new stack
   -- Executing Monitor("Zap/1-1", "wav|20040708-133924--661XXXXXXX") in new stack
   -- Executing Dial("Zap/1-1", "Zap/3&Sip/2002|20") in new stack

Never had this issue before the new load of Asterisk.  This load I moved the Asterisk source directory and did a complete CVS checkout recompiled and have this issue.
Comments:By: Rob Gagnon (rgagnon) 2004-07-08 16:27:06

Please publish the CVS version of chan_zap.c and possible the associated contents of your extensions.conf file.

Current version of chan_zap.c is v1.291 and the log messages that are showing as from chan_zap.c do not come from those line numbers in current chan_zap.c.

You may want to update your chan_zap.c

Line 3258 of current file is "p->dop.dialstr[0] = '\0';"
Line 4986 of current file is "i = ZT_IOMUX_READ | ZT_IOMUX_SIGEVENT;"

The log messages you show come from lines 3324 and 5066 now.

edited on: 07-08-04 16:19

By: Mark Spencer (markster) 2004-07-09 04:29:54

This is a technical support issue and should be handled through technical support (support@digium.com) and not via the bug tracker.

If for any reason you are unable to get the assistance you need, you may find me on IRC.