Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Missing constants in dialplan raise ambiguous error

#1

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.

Reported by Jay Phillips · November 6th, 2007 @ 09:41 PM

State: resolved
Milestone: none
Assigned to: Jay Phillips Jay Phillips

Activity

  1. Jay Phillips
    Jay Phillips
    • State changed from new to open
    • Milestone cleared.

    November 6th, 2007 @ 09:43 PM

  2. Jay Phillips
    Jay Phillips
    • Assigned user set to Jay Phillips

    November 8th, 2007 @ 05:13 PM

  3. Jay Phillips
    Jay Phillips
    #<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
    

    November 8th, 2007 @ 06:56 PM

  4. Jay Phillips
    Jay Phillips
    • State changed from open to resolved

    November 8th, 2007 @ 07:46 PM

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.