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.

UserEvent appears to corrupt event parsing

#58

If a user invokes the AGI command UserEvent (http://www.voip-info.org/wiki/vi... two things happen:

  1. The UserEvent never appears to be processed in events.rb
  2. The next calls that come in after the first call with UserEvent, no longer have any events

It would appear that the UserEvent is causing Ragel to lose itself and then it no longer processes events.

First call:

http://gist.github.com/62417

Second call:

http://gist.github.com/62420

Reported by Jason Goecke · February 11th, 2009 @ 08:22 PM

State: duplicate
Milestone: 0.8.5
Assigned to: Ben Klang Ben Klang

Activity

  1. Jason Goecke
    Jason Goecke

    It appears that if a UserEvent is sent like this:

    exten => _X.,1,UserEvent(EVENTHIS|billing=yes)

    This is when Ragel gets confused. While on the other hand if you do something like:

    exten => _X.,1,UserEvent(LOGVARIABLES|invoice:yes)

    We then get the events in Adhearsion as follows:

    INFO event_logger: Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent: #<Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent:0x175f110 @headers={"invoice"=>"yes", "Privilege"=>"user,all", "UserEvent"=>"LOGVARIABLES"}, @name="UserEvent">

    Which corresponds to the AMI this way:

    Event: UserEvent Privilege: user,all UserEvent: LOGVARIABLES invoice:yes

    So, two things here:

    1. We need to ensure we document how to use custom events on the Wiki for Adhearsion to be done properly
    2. We need to ensure that the Ragel parsing is more robust so that it drops events not understood and moves on to the next one, as opposed to not parsing anything going forward

    February 11th, 2009 @ 08:28 PM

  2. Jay Phillips
    Jay Phillips
    • State changed from new to open

    March 24th, 2009 @ 06:47 PM

  3. Jay Phillips
  4. Ben Klang
    Ben Klang
    • Assigned user changed from Jay Phillips to Ben Klang
    • Milestone order changed from 0 to 0

    This is a duplicate of ticket #84 Unable to process UserEvent.

    August 7th, 2010 @ 01:57 PM

  5. Ben Klang
    Ben Klang
    • Milestone set to 0.8.5
    • State changed from open to duplicate
    • Milestone order changed from 2999 to 0

    August 7th, 2010 @ 02:02 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.