Missing constants in dialplan raise ambiguous error
Reported by Jay Phillips | November 6th, 2007 @ 09:41 PM
When referencing a missing constant in the dialplan, the terminal output of Adhearsion gives the following error:
"Anonymous modules have no name to be referenced by"
This could potentially be fixed by defining const_missing within the ExecutionEnvironment and forcing a consistent exception to be raised.
Comments and changes to this ticket
-
Jay Phillips November 6th, 2007 @ 09:43 PM
- State changed from new to open
- Milestone cleared.
-
Jay Phillips November 8th, 2007 @ 05:13 PM
- Assigned user set to Jay Phillips
-
Jay Phillips November 8th, 2007 @ 06:56 PM
#<ArgumentError: Anonymous modules have no name to be referenced by> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:404:in `to_constant_name' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:214:in `qualified_name_for' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:476:in `const_missing' (eval):3:in `build' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/voip/dial_plan.rb:37:in `instance_eval' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/voip/dial_plan.rb:37:in `run' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/voip/dial_plan.rb:82:in `handle' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/voip/asterisk/agi_server.rb:15:in `serve' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/gserver.rb:211:in `start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/gserver.rb:208:in `initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/gserver.rb:208:in `new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/gserver.rb:208:in `start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/gserver.rb:198:in `initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/gserver.rb:198:in `new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/gserver.rb:198:in `start' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/voip/asterisk/agi_server.rb:42:in `start' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/initializer/asterisk.rb:24:in `join_server_thread_after_initialized' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/symbol.rb:10:in `call' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/symbol.rb:10:in `__send__' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/symbol.rb:10:in `to_proc' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/hooks.rb:16:in `each' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/hooks.rb:16:in `trigger_hooks' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/initializer.rb:158:in `trigger_after_initialized_hooks' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/initializer.rb:90:in `initialize' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/cli.rb:54:in `new' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/cli.rb:54:in `start' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/cli.rb:18:in `send' /Users/jicksta/Desktop/0.8.0/lib/adhearsion/cli.rb:18:in `execute!' /Users/jicksta/Desktop/0.8.0/bin/ahn:28
-
Jay Phillips November 8th, 2007 @ 07:46 PM
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 82 DBget AMI command is unusable #1 If you using AMI to execure DBget command, you will qu...
- 72 AMI lexer buffer offset I would probably choose #1...