[asterisk-users] unable to get channel lock BAD BAD BAD

Tim Uckun timuckun at gmail.com
Tue Nov 14 14:50:56 MST 2006


I am seeing the following in my log file (standard trixbox install).
One seems to be complaining about an error in the dialplan but it
won't tell me what file or what line. The other (maybe related) is
complaining about a channel lock.

How to do go about trying to figure out what the problem is and how to solve it?

---------------Logfile--------------------------------------------

Nov 14 07:20:19 WARNING[14067] ast_expr2.fl: ast_yyerror(): syntax
error: syntax error, unexpected $end, expecting TOK_MINUS or TOK_COMPL
or TOK_LP or TOKEN; Input:
"" != "
      ^
Nov 14 07:20:20 WARNING[14067] ast_expr2.fl: If you have questions,
please refer to doc/README.variables in the asterisk source.
Nov 14 07:20:44 ERROR[24091] chan_sip.c: We could NOT get the channel
lock for SIP/101-082695f0!
Nov 14 07:20:44 ERROR[24091] chan_sip.c: SIP MESSAGE JUST IGNORED: ACK
Nov 14 07:20:44 ERROR[24091] chan_sip.c: BAD! BAD! BAD!
Nov 14 07:20:45 ERROR[24091] chan_sip.c: We could NOT get the channel
lock for SIP/101-082695f0!
Nov 14 07:20:45 ERROR[24091] chan_sip.c: SIP MESSAGE JUST IGNORED: ACK
Nov 14 07:20:45 ERROR[24091] chan_sip.c: BAD! BAD! BAD!
Nov 14 07:20:46 ERROR[24091] chan_sip.c: We could NOT get the channel
lock for SIP/101-082695f0!
Nov 14 07:20:46 ERROR[24091] chan_sip.c: SIP MESSAGE JUST IGNORED: ACK
Nov 14 07:20:46 ERROR[24091] chan_sip.c: BAD! BAD! BAD!

--------------LInes in the dialplan with != in them------------------

asterisk -r -x 'show dialplan' | grep !=


  's' =>            1. GotoIf($["${REALCALLERIDNUM:1:2}" != ""]?start)
[pbx_config]
                    2. GotoIf($["${REALCALLERIDNUM:1:2}" != ""]?start)
[pbx_config]
                    2.
GotoIf($["${CALLERID(name):0:${LEN(${RGPREFIX})}}" !=
"${RGPREFIX}"]?4:3) [pbx_config]
                    2.
Set(VMGAIN=${IF($["foo${VM_GAIN}"!="foo"]?"g(${VM_GAIN})":"")})
[pbx_config]
  'docfu' =>        1.
Set(RTCFU=${IF($["${VMBOX}"!="novm"]?${RINGTIMER}:"")}) [pbx_config]
                    6. Set(RT=${IF($[$["${VMBOX}"!="novm"] |
$["foo${CFUEXT}"!="foo"]]?${RINGTIMER}:"")}) [pbx_config]
                    10. GosubIf($[$["${DIALSTATUS}"="NOANSWER"] &
$["foo${CFUEXT}"!="foo"]]?docfu|1) [pbx_config]
                    31. GotoIf($[$["${CALLTRACE_HUNT}" != "" ] &
$["${RingGroupMethod}" = "hunt" ]]?32:35 ) [pbx_config]
                    35. GotoIf($[$["${CALLTRACE_HUNT}" != "" ] &
$["${RingGroupMethod}" = "memoryhunt" ]]?36:50 ) [pbx_config]
                    2.
GotoIf($["${CALLERID(name):0:${LEN(${RGPREFIX})}}" !=
"${RGPREFIX}]"?NEWPREFIX) [pbx_config]
                    2.
GotoIf($["${CALLERID(name):0:${LEN(${RGPREFIX})}}" !=
"${RGPREFIX}]"?NEWPREFIX) [pbx_config]


More information about the asterisk-users mailing list